Commit 2bcc5e5c1d4f1b36887c07acd3b64792ebdd141d

Authored by 史婷婷
1 parent c0eb883e

feat: 加工标准合同-详情 附件下载

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