Commit d48b9905400b0a005883d2e853b6339b7d6e0534

Authored by 史婷婷
1 parent deeeac1e

feat: 撤销单-详情&审核详情-附件下载

@@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
22 </view> 22 </view>
23 23
24 <view class="section"> 24 <view class="section">
25 - <view class="row"><text class="label">撤销确认凭证</text><text class="value act">{{ form.confirmationVoucherFileName }}</text></view> 25 + <view class="row"><text class="label">撤销确认凭证</text><text class="value act" @click="downloadFile(form.confirmationVoucherFileId, form.confirmationVoucherFileName)">{{ form.confirmationVoucherFileName }}</text></view>
26 </view> 26 </view>
27 </view> 27 </view>
28 </scroll-view> 28 </scroll-view>
@@ -34,6 +34,7 @@ @@ -34,6 +34,7 @@
34 import { getDetailApi, cancelApi } from '@/api/revoke_list.js' 34 import { getDetailApi, cancelApi } from '@/api/revoke_list.js'
35 import Product from './product.vue' 35 import Product from './product.vue'
36 import DetailButtons from '@/components/detail-buttons/index.vue' 36 import DetailButtons from '@/components/detail-buttons/index.vue'
  37 +import { downloadFile } from '@/utils/downloadFile.js'
37 38
38 export default { 39 export default {
39 name: 'RevokeListDetail', 40 name: 'RevokeListDetail',
@@ -111,6 +112,7 @@ export default { @@ -111,6 +112,7 @@ export default {
111 uni.setStorageSync(CACHE_KEY, this.getBusinessId()) 112 uni.setStorageSync(CACHE_KEY, this.getBusinessId())
112 uni.navigateTo({ url: '/pages/flow/audit_detail' }) 113 uni.navigateTo({ url: '/pages/flow/audit_detail' })
113 }, 114 },
  115 + downloadFile,
114 onAudit() { 116 onAudit() {
115 const CACHE_KEY = 'sourceBusinessId' 117 const CACHE_KEY = 'sourceBusinessId'
116 uni.setStorageSync(CACHE_KEY, this.getBusinessId()) 118 uni.setStorageSync(CACHE_KEY, this.getBusinessId())
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 </view> 20 </view>
21 21
22 <view class="section"> 22 <view class="section">
23 - <view class="row"><text class="label">撤销确认凭证</text><text class="value act">{{ form.confirmationVoucherFileName }}</text></view> 23 + <view class="row"><text class="label">撤销确认凭证</text><text class="value act" @click="downloadFile(form.confirmationVoucherFileId, form.confirmationVoucherFileName)">{{ form.confirmationVoucherFileName }}</text></view>
24 </view> 24 </view>
25 25
26 </view> 26 </view>
@@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
29 <script> 29 <script>
30 import { getDetailApi } from '@/api/revoke_list.js' 30 import { getDetailApi } from '@/api/revoke_list.js'
31 import Product from './product.vue' 31 import Product from './product.vue'
  32 +import { downloadFile } from '@/utils/downloadFile.js'
32 33
33 export default { 34 export default {
34 name: 'RevokeListViewer', 35 name: 'RevokeListViewer',
@@ -61,6 +62,7 @@ export default { @@ -61,6 +62,7 @@ export default {
61 this.form = {} 62 this.form = {}
62 } 63 }
63 }, 64 },
  65 + downloadFile,
64 getFormValues() { 66 getFormValues() {
65 const m = this.form || {} 67 const m = this.form || {}
66 return JSON.parse(JSON.stringify(m)) 68 return JSON.parse(JSON.stringify(m))