Commit 94f301b9b2e364b399dbd3a4108fe8e3f50901f4

Authored by 史婷婷
1 parent 3c96cdce

feat: 外贸未锁规-详情 附件下载)(缺 双方盖章合同)

@@ -73,7 +73,7 @@ @@ -73,7 +73,7 @@
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 || '-' 77 detail.standardFileName || '-'
78 }}</text></view> 78 }}</text></view>
79 <view class="row"><text class="label">合同是否规范</text><text class="value">{{ 79 <view class="row"><text class="label">合同是否规范</text><text class="value">{{
@@ -81,7 +81,7 @@ @@ -81,7 +81,7 @@
81 }}</text></view> 81 }}</text></view>
82 </view> 82 </view>
83 <view class="section" v-if="detail.status === 'FORMAL'"> 83 <view class="section" v-if="detail.status === 'FORMAL'">
84 - <view class="row"><text class="label">规范性合同</text><text class="value" style="color: #3D48A3;">{{ 84 + <view class="row"><text class="label">规范性合同</text><text class="value act" @click="downloadFile(detail.formalFileId, detail.formalFileName)">{{
85 detail.formalFileName || '-' }}</text></view> 85 detail.formalFileName || '-' }}</text></view>
86 <view class="row"><text class="label">合同是否规范</text><text class="value">{{ detail.formalStandardized 86 <view class="row"><text class="label">合同是否规范</text><text class="value">{{ detail.formalStandardized
87 ? '是' : '否' }}</text></view> 87 ? '是' : '否' }}</text></view>
@@ -139,6 +139,7 @@ import DetailButtons from '@/components/detail-buttons/index.vue' @@ -139,6 +139,7 @@ import DetailButtons from '@/components/detail-buttons/index.vue'
139 import FileUpload from '@/components/file-upload/index.vue' 139 import FileUpload from '@/components/file-upload/index.vue'
140 import SingleSelectSheet from '@/components/single-select/index.vue' 140 import SingleSelectSheet from '@/components/single-select/index.vue'
141 import { fillStandardApprovedName, fillFormalApprovedName } from '@/utils/dic.js' 141 import { fillStandardApprovedName, fillFormalApprovedName } from '@/utils/dic.js'
  142 +import { downloadFile } from '@/utils/downloadFile.js'
142 143
143 export default { 144 export default {
144 name: 'ContractForeignUnplanDetail', 145 name: 'ContractForeignUnplanDetail',
@@ -444,6 +445,7 @@ export default { @@ -444,6 +445,7 @@ export default {
444 const match = (options || []).find(o => String(o.value) === String(current) || String(o.label) === String(current)) 445 const match = (options || []).find(o => String(o.value) === String(current) || String(o.label) === String(current))
445 this.sheet = { ...this.sheet, visible: true, title: '合同是否规范', options, value: match ? match.value : '' } 446 this.sheet = { ...this.sheet, visible: true, title: '合同是否规范', options, value: match ? match.value : '' }
446 }, 447 },
  448 + downloadFile,
447 handleButtonClick(btn) { 449 handleButtonClick(btn) {
448 if (!btn || btn.disabled) return 450 if (!btn || btn.disabled) return
449 if (typeof btn.onClick === 'function') return btn.onClick(this.detail, btn.params) 451 if (typeof btn.onClick === 'function') return btn.onClick(this.detail, btn.params)
@@ -589,6 +591,9 @@ export default { @@ -589,6 +591,9 @@ export default {
589 font-size: 28rpx; 591 font-size: 28rpx;
590 white-space: pre-wrap; 592 white-space: pre-wrap;
591 word-break: break-all; 593 word-break: break-all;
  594 + &.act {
  595 + color: $theme-primary;
  596 + }
592 } 597 }
593 598
594 .customer { 599 .customer {