Showing
1 changed file
with
11 additions
and
2 deletions
| @@ -72,13 +72,17 @@ | @@ -72,13 +72,17 @@ | ||
| 72 | </view> | 72 | </view> |
| 73 | 73 | ||
| 74 | <view class="section" v-if="detail.status === 'STANDARD'"> | 74 | <view class="section" v-if="detail.status === 'STANDARD'"> |
| 75 | - <view class="row"><text class="label">规范性合同</text><text class="value" style="color: #3D48A3;">{{ detail.standardFileName || '-' | 75 | + <view class="row"><text class="label">规范性合同</text><text class="value act" |
| 76 | + @click="downloadFile(detail.standardFileId, detail.standardFileName)" | ||
| 77 | + >{{ detail.standardFileName || '-' | ||
| 76 | }}</text></view> | 78 | }}</text></view> |
| 77 | <view class="row"><text class="label">合同是否规范</text><text class="value">{{ detail.standardStandardized ? '是' : '否' | 79 | <view class="row"><text class="label">合同是否规范</text><text class="value">{{ detail.standardStandardized ? '是' : '否' |
| 78 | }}</text></view> | 80 | }}</text></view> |
| 79 | </view> | 81 | </view> |
| 80 | <view class="section" v-if="detail.status === 'FORMAL'"> | 82 | <view class="section" v-if="detail.status === 'FORMAL'"> |
| 81 | - <view class="row"><text class="label">规范性合同</text><text class="value" style="color: #3D48A3;">{{ detail.formalFileName || '-' }}</text></view> | 83 | + <view class="row"><text class="label">规范性合同</text><text class="value act" |
| 84 | + @click="downloadFile(detail.formalFileId, detail.formalFileName)" | ||
| 85 | + >{{ detail.formalFileName || '-' }}</text></view> | ||
| 82 | <view class="row"><text class="label">合同是否规范</text><text class="value">{{ detail.formalStandardized ? '是' : '否' }}</text></view> | 86 | <view class="row"><text class="label">合同是否规范</text><text class="value">{{ detail.formalStandardized ? '是' : '否' }}</text></view> |
| 83 | </view> | 87 | </view> |
| 84 | <view class="section"> | 88 | <view class="section"> |
| @@ -133,6 +137,7 @@ import ProductRel from './productRel.vue' | @@ -133,6 +137,7 @@ import ProductRel from './productRel.vue' | ||
| 133 | import DetailButtons from '@/components/detail-buttons/index.vue' | 137 | import DetailButtons from '@/components/detail-buttons/index.vue' |
| 134 | import FileUpload from '@/components/file-upload/index.vue' | 138 | import FileUpload from '@/components/file-upload/index.vue' |
| 135 | import SingleSelectSheet from '@/components/single-select/index.vue' | 139 | import SingleSelectSheet from '@/components/single-select/index.vue' |
| 140 | +import { downloadFile } from '@/utils/downloadFile.js' | ||
| 136 | export default { | 141 | export default { |
| 137 | name: 'ContractStockDetail', | 142 | name: 'ContractStockDetail', |
| 138 | components: { ProductRel, DetailButtons, FileUpload, SingleSelectSheet }, | 143 | components: { ProductRel, DetailButtons, FileUpload, SingleSelectSheet }, |
| @@ -389,6 +394,7 @@ export default { | @@ -389,6 +394,7 @@ export default { | ||
| 389 | }) | 394 | }) |
| 390 | 395 | ||
| 391 | }, | 396 | }, |
| 397 | + downloadFile, | ||
| 392 | onSheetConfirm({ value, label }) { | 398 | onSheetConfirm({ value, label }) { |
| 393 | this.standardStandardized = value | 399 | this.standardStandardized = value |
| 394 | this.standardStandardizedName = label || '' | 400 | this.standardStandardizedName = label || '' |
| @@ -551,6 +557,9 @@ export default { | @@ -551,6 +557,9 @@ export default { | ||
| 551 | font-size: 28rpx; | 557 | font-size: 28rpx; |
| 552 | white-space: pre-wrap; | 558 | white-space: pre-wrap; |
| 553 | word-break: break-all; | 559 | word-break: break-all; |
| 560 | + &.act { | ||
| 561 | + color: $theme-primary; | ||
| 562 | + } | ||
| 554 | } | 563 | } |
| 555 | 564 | ||
| 556 | .customer { | 565 | .customer { |