Showing
1 changed file
with
3 additions
and
1 deletions
| @@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
| 19 | @split="splitFun" /> | 19 | @split="splitFun" /> |
| 20 | </view> | 20 | </view> |
| 21 | <view class="section"> | 21 | <view class="section"> |
| 22 | - <view class="row"><text class="label">签收单据</text><text class="value act">{{ form.fileName }}</text></view> | 22 | + <view class="row"><text class="label">签收单据</text><text class="value act" @click="downloadFile(form.fileId, form.fileName)">{{ form.fileName }}</text></view> |
| 23 | </view> | 23 | </view> |
| 24 | </view> | 24 | </view> |
| 25 | </scroll-view> | 25 | </scroll-view> |
| @@ -141,6 +141,7 @@ import Product from './product.vue' | @@ -141,6 +141,7 @@ import Product from './product.vue' | ||
| 141 | import DetailButtons from '@/components/detail-buttons/index.vue' | 141 | import DetailButtons from '@/components/detail-buttons/index.vue' |
| 142 | import FileUpload from '@/components/file-upload/index.vue' | 142 | import FileUpload from '@/components/file-upload/index.vue' |
| 143 | import { getShipmentPlanDetailApi, createApi } from '@/api/delay_invoice.js' | 143 | import { getShipmentPlanDetailApi, createApi } from '@/api/delay_invoice.js' |
| 144 | +import { downloadFile } from '@/utils/downloadFile.js' | ||
| 144 | 145 | ||
| 145 | export default { | 146 | export default { |
| 146 | name: 'InvoiceDetail', | 147 | name: 'InvoiceDetail', |
| @@ -220,6 +221,7 @@ export default { | @@ -220,6 +221,7 @@ export default { | ||
| 220 | onUpload() { | 221 | onUpload() { |
| 221 | this.$refs.uploadPopup && this.$refs.uploadPopup.open() | 222 | this.$refs.uploadPopup && this.$refs.uploadPopup.open() |
| 222 | }, | 223 | }, |
| 224 | + downloadFile, | ||
| 223 | closeUploadInfo() { | 225 | closeUploadInfo() { |
| 224 | this.uploadFile = { id: '', name: '' }; | 226 | this.uploadFile = { id: '', name: '' }; |
| 225 | this.$refs.uploadPopup && this.$refs.uploadPopup.close() | 227 | this.$refs.uploadPopup && this.$refs.uploadPopup.close() |