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