Commit c0eb883e9ddf04a743596d2960709547ae33eaaf

Authored by 史婷婷
1 parent 32b524ca

feat: 经销未锁规合同 -详情 附件下载

... ... @@ -70,16 +70,18 @@
70 70 </view>
71 71
72 72 <view class="section" v-if="detail.status === 'STANDARD'">
73   - <view class="row"><text class="label">规范性合同</text><text class="value" style="color: #3D48A3;">{{
74   - detail.standardFileName || '-'
  73 + <view class="row"><text class="label">规范性合同</text><text class="value act"
  74 + @click="downloadFile(detail.standardFileId, detail.standardFileName)"
  75 + >{{ detail.standardFileName || '-'
75 76 }}</text></view>
76 77 <view class="row"><text class="label">合同是否规范</text><text class="value">{{
77 78 detail.standardStandardized ? '是' : '否'
78 79 }}</text></view>
79 80 </view>
80 81 <view class="section" v-if="detail.status === 'FORMAL'">
81   - <view class="row"><text class="label">规范性合同</text><text class="value" style="color: #3D48A3;">{{
82   - detail.formalFileName || '-' }}</text></view>
  82 + <view class="row"><text class="label">规范性合同</text><text class="value act"
  83 + @click="downloadFile(detail.formalFileId, detail.formalFileName)"
  84 + >{{ detail.formalFileName || '-' }}</text></view>
83 85 <view class="row"><text class="label">合同是否规范</text><text class="value">{{ detail.formalStandardized
84 86 ? '是' : '否' }}</text></view>
85 87 </view>
... ... @@ -136,6 +138,7 @@ import DetailButtons from '@/components/detail-buttons/index.vue'
136 138 import FileUpload from '@/components/file-upload/index.vue'
137 139 import SingleSelectSheet from '@/components/single-select/index.vue'
138 140 import { fillStandardApprovedName, fillFormalApprovedName } from '@/utils/dic.js'
  141 +import { downloadFile } from '@/utils/downloadFile.js'
139 142
140 143 export default {
141 144 name: 'ContractUnplanDetail',
... ... @@ -457,6 +460,7 @@ export default {
457 460 uni.setStorageSync(CACHE_KEY, id)
458 461 uni.navigateTo({ url: '/pages/flow/audit_detail' })
459 462 },
  463 + downloadFile,
460 464 async loadDetail() {
461 465 if (!this.id) return
462 466 try {
... ... @@ -571,6 +575,10 @@ export default {
571 575 font-size: 28rpx;
572 576 white-space: pre-wrap;
573 577 word-break: break-all;
  578 + &.act {
  579 + color: $theme-primary;
  580 + }
  581 +
574 582 }
575 583
576 584 .customer {
... ...