Commit 432f82c3351a5f7df643433813c0fc26fe89330f

Authored by 史婷婷
1 parent e5649f7b

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

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