Commit 432f82c3351a5f7df643433813c0fc26fe89330f

Authored by 史婷婷
1 parent e5649f7b

feat: 外贸库存合同-详情 附件下载(缺少 双方盖章合同)

... ... @@ -73,13 +73,13 @@
73 73 </view>
74 74
75 75 <view class="section" v-if="detail.status === 'STANDARD'">
76   - <view class="row"><text class="label">规范性合同</text><text class="value" style="color: #3D48A3;">{{
  76 + <view class="row"><text class="label">规范性合同</text><text class="value act" @click="downloadFile(detail.standardFileId, detail.standardFileName)">{{
77 77 detail.standardFileName || '-' }}</text></view>
78 78 <view class="row"><text class="label">合同是否规范</text><text class="value">{{
79 79 detail.standardStandardized ? '是' : '否' }}</text></view>
80 80 </view>
81 81 <view class="section" v-if="detail.status === 'FORMAL'">
82   - <view class="row"><text class="label">规范性合同</text><text class="value" style="color: #3D48A3;">{{
  82 + <view class="row"><text class="label">规范性合同</text><text class="value act" @click="downloadFile(detail.formalFileId, detail.formalFileName)">{{
83 83 detail.formalFileName || '-' }}</text></view>
84 84 <view class="row"><text class="label">合同是否规范</text><text class="value">{{ detail.formalStandardized
85 85 ? '是' : '否' }}</text></view>
... ... @@ -138,6 +138,7 @@ import DetailButtons from '@/components/detail-buttons/index.vue'
138 138 import FileUpload from '@/components/file-upload/index.vue'
139 139 import SingleSelectSheet from '@/components/single-select/index.vue'
140 140 import { fillStandardApprovedName, fillFormalApprovedName } from '@/utils/dic.js'
  141 +import { downloadFile } from '@/utils/downloadFile.js'
141 142
142 143 export default {
143 144 name: 'ContractForeignStockDetail',
... ... @@ -465,6 +466,7 @@ export default {
465 466 uni.setStorageSync(CACHE_KEY, id)
466 467 uni.navigateTo({ url: '/pages/flow/audit_detail' })
467 468 },
  469 + downloadFile,
468 470 async loadDetail() {
469 471 if (!this.id) return
470 472 try {
... ... @@ -565,7 +567,8 @@ export default {
565 567 }
566 568
567 569 .label {
568   - width: 310rpx;
  570 + max-width: 310rpx;
  571 + margin-right: 20rpx;
569 572 color: rgba(0, 0, 0, 0.6);
570 573 font-size: 28rpx;
571 574 }
... ... @@ -577,6 +580,9 @@ export default {
577 580 font-size: 28rpx;
578 581 white-space: pre-wrap;
579 582 word-break: break-all;
  583 + &.act {
  584 + color: $theme-primary;
  585 + }
580 586 }
581 587
582 588 .customer {
... ...