Commit e5649f7b2134deca58d9ec2fe5f756aeeca8879a

Authored by 史婷婷
1 parent 31863eb1

feat: 外贸标准合同-详情 附件下载

... ... @@ -60,7 +60,7 @@
60 60 }}</text></view>
61 61 </view>
62 62 <view class="section" v-if="detail.status === 'STANDARD'">
63   - <view class="row"><text class="label">双方盖章合同</text><text class="value" style="color: #3D48A3;">{{
  63 + <view class="row"><text class="label">双方盖章合同</text><text class="value act" @click="downloadFile(detail.signedContractFileId, detail.signedContractFileName)">{{
64 64 detail.signedContractFileName || '-' }}</text></view>
65 65 <view class="row"><text class="label">规范性合同</text><text class="value act" @click="downloadFile(detail.standardFileId, detail.standardFileName)">{{
66 66 detail.standardFileName || '-' }}</text></view>
... ... @@ -121,6 +121,7 @@ import DetailButtons from '@/components/detail-buttons/index.vue'
121 121 import FileUpload from '@/components/file-upload/index.vue'
122 122 import SingleSelectSheet from '@/components/single-select/index.vue'
123 123 import { fillStandardApprovedName } from '@/utils/dic.js'
  124 +import { downloadFile } from '@/utils/downloadFile.js'
124 125
125 126 export default {
126 127 name: 'ContractForeignStdDetail',
... ... @@ -376,6 +377,7 @@ export default {
376 377 uni.setStorageSync(CACHE_KEY, this.getBusinessId())
377 378 uni.navigateTo({ url: '/pages/flow/audit_detail' })
378 379 },
  380 + downloadFile,
379 381 async loadDetail() {
380 382 if (!this.id) return
381 383 try {
... ... @@ -488,10 +490,13 @@ export default {
488 490 font-size: 28rpx;
489 491 white-space: pre-wrap;
490 492 word-break: break-all;
491   - .act {
  493 +
  494 +}
  495 +
  496 +.act {
492 497 color: $theme-primary;
493 498 }
494   -}
  499 +
495 500
496 501 .customer {
497 502 font-weight: 600;
... ...