Showing
1 changed file
with
10 additions
and
2 deletions
| @@ -60,7 +60,9 @@ statusStyl<template> | @@ -60,7 +60,9 @@ statusStyl<template> | ||
| 60 | </view> | 60 | </view> |
| 61 | 61 | ||
| 62 | <view class="section"> | 62 | <view class="section"> |
| 63 | - <view class="row"><text class="label">规范性合同</text><text class="value" style="color: #3D48A3;">{{ detail.standardFileName || '-' | 63 | + <view class="row"><text class="label">规范性合同</text><text class="value act" |
| 64 | + @click="downloadFile(detail.standardFileId, detail.standardFileName)" | ||
| 65 | + >{{ detail.standardFileName || '-' | ||
| 64 | }}</text></view> | 66 | }}</text></view> |
| 65 | <view class="row"><text class="label">合同是否规范</text><text class="value">{{ detail.standardStandardized ? '是' : '否' | 67 | <view class="row"><text class="label">合同是否规范</text><text class="value">{{ detail.standardStandardized ? '是' : '否' |
| 66 | }}</text></view> | 68 | }}</text></view> |
| @@ -117,6 +119,7 @@ import DetailButtons from '@/components/detail-buttons/index.vue' | @@ -117,6 +119,7 @@ import DetailButtons from '@/components/detail-buttons/index.vue' | ||
| 117 | import FileUpload from '@/components/file-upload/index.vue' | 119 | import FileUpload from '@/components/file-upload/index.vue' |
| 118 | import SingleSelectSheet from '@/components/single-select/index.vue' | 120 | import SingleSelectSheet from '@/components/single-select/index.vue' |
| 119 | import { fillStandardApprovedName } from '@/utils/dic.js' | 121 | import { fillStandardApprovedName } from '@/utils/dic.js' |
| 122 | +import { downloadFile } from '@/utils/downloadFile.js' | ||
| 120 | 123 | ||
| 121 | export default { | 124 | export default { |
| 122 | name: 'ContractProcessDetail', | 125 | name: 'ContractProcessDetail', |
| @@ -358,6 +361,7 @@ export default { | @@ -358,6 +361,7 @@ export default { | ||
| 358 | uni.setStorageSync(CACHE_KEY, id) | 361 | uni.setStorageSync(CACHE_KEY, id) |
| 359 | uni.navigateTo({ url: '/pages/flow/audit_detail' }) | 362 | uni.navigateTo({ url: '/pages/flow/audit_detail' }) |
| 360 | }, | 363 | }, |
| 364 | + downloadFile, | ||
| 361 | async loadDetail() { | 365 | async loadDetail() { |
| 362 | if (!this.id) return | 366 | if (!this.id) return |
| 363 | try { | 367 | try { |
| @@ -456,9 +460,10 @@ export default { | @@ -456,9 +460,10 @@ export default { | ||
| 456 | } | 460 | } |
| 457 | 461 | ||
| 458 | .label { | 462 | .label { |
| 459 | - width: 310rpx; | 463 | + max-width: 310rpx; |
| 460 | color: rgba(0, 0, 0, 0.6); | 464 | color: rgba(0, 0, 0, 0.6); |
| 461 | font-size: 28rpx; | 465 | font-size: 28rpx; |
| 466 | + margin-right: 20rpx; | ||
| 462 | } | 467 | } |
| 463 | 468 | ||
| 464 | .value { | 469 | .value { |
| @@ -468,6 +473,9 @@ export default { | @@ -468,6 +473,9 @@ export default { | ||
| 468 | font-size: 28rpx; | 473 | font-size: 28rpx; |
| 469 | white-space: pre-wrap; | 474 | white-space: pre-wrap; |
| 470 | word-break: break-all; | 475 | word-break: break-all; |
| 476 | + &.act { | ||
| 477 | + color: $theme-primary; | ||
| 478 | + } | ||
| 471 | } | 479 | } |
| 472 | 480 | ||
| 473 | .customer { | 481 | .customer { |