Showing
1 changed file
with
9 additions
and
2 deletions
| @@ -61,8 +61,9 @@ | @@ -61,8 +61,9 @@ | ||
| 61 | </view> | 61 | </view> |
| 62 | 62 | ||
| 63 | <view class="section" v-if="detail.status === 'STANDARD'"> | 63 | <view class="section" v-if="detail.status === 'STANDARD'"> |
| 64 | - <view class="row"><text class="label">规范性合同</text><text class="value" style="color: #3D48A3;">{{ | ||
| 65 | - detail.standardFileName || '-' }}</text></view> | 64 | + <view class="row"><text class="label">规范性合同</text><text class="value act" |
| 65 | + @click="downloadFile(detail.standardFileId, detail.standardFileName)" | ||
| 66 | + >{{detail.standardFileName || '-' }}</text></view> | ||
| 66 | <view class="row"><text class="label">合同是否规范</text><text class="value">{{ | 67 | <view class="row"><text class="label">合同是否规范</text><text class="value">{{ |
| 67 | detail.standardStandardized ? '是' : '否' }}</text></view> | 68 | detail.standardStandardized ? '是' : '否' }}</text></view> |
| 68 | </view> | 69 | </view> |
| @@ -121,6 +122,7 @@ import DetailButtons from '@/components/detail-buttons/index.vue' | @@ -121,6 +122,7 @@ import DetailButtons from '@/components/detail-buttons/index.vue' | ||
| 121 | import FileUpload from '@/components/file-upload/index.vue' | 122 | import FileUpload from '@/components/file-upload/index.vue' |
| 122 | import SingleSelectSheet from '@/components/single-select/index.vue' | 123 | import SingleSelectSheet from '@/components/single-select/index.vue' |
| 123 | import { getDicByCodes, getDicName } from '@/utils/dic.js' | 124 | import { getDicByCodes, getDicName } from '@/utils/dic.js' |
| 125 | +import { downloadFile } from '@/utils/downloadFile.js' | ||
| 124 | 126 | ||
| 125 | export default { | 127 | export default { |
| 126 | name: 'ContractRetailDetail', | 128 | name: 'ContractRetailDetail', |
| @@ -349,6 +351,7 @@ export default { | @@ -349,6 +351,7 @@ export default { | ||
| 349 | url: '/pages/contract_retail/modify' + query | 351 | url: '/pages/contract_retail/modify' + query |
| 350 | }) | 352 | }) |
| 351 | }, | 353 | }, |
| 354 | + downloadFile, | ||
| 352 | onUpload() { | 355 | onUpload() { |
| 353 | this.$refs.uploadPopup.open() | 356 | this.$refs.uploadPopup.open() |
| 354 | }, | 357 | }, |
| @@ -498,6 +501,10 @@ export default { | @@ -498,6 +501,10 @@ export default { | ||
| 498 | font-size: 28rpx; | 501 | font-size: 28rpx; |
| 499 | white-space: pre-wrap; | 502 | white-space: pre-wrap; |
| 500 | word-break: break-all; | 503 | word-break: break-all; |
| 504 | + | ||
| 505 | + &.act { | ||
| 506 | + color: $theme-primary; | ||
| 507 | + } | ||
| 501 | } | 508 | } |
| 502 | 509 | ||
| 503 | .customer { | 510 | .customer { |