Commit d48b9905400b0a005883d2e853b6339b7d6e0534

Authored by 史婷婷
1 parent deeeac1e

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

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