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