Commit 32b524ca48b1af30da28aa403127fade9f4ca201

Authored by 史婷婷
1 parent cec0c97a

feat: 经销库存合同 -详情 附件下载

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