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