Commit 64085952a0072feb6b6bb1e9f4b8933e4e191f5f

Authored by 史婷婷
1 parent d48b9905

feat:发货单-详情-附件下载

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