Commit 2a807f088934897bc52c8d668d8115eaba9ba391

Authored by 史婷婷
1 parent 157f6c7c

feat: 订货单-审核详情+申请发货--增加判断条件

Showing 1 changed file with 4 additions and 3 deletions
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 {{ getDicName('AUDIT_STATUS',form.examineStatus, dicOptions.AUDIT_STATUS) }} 12 {{ getDicName('AUDIT_STATUS',form.examineStatus, dicOptions.AUDIT_STATUS) }}
13 </text> 13 </text>
14 </text> 14 </text>
15 - 15 +
16 </view> 16 </view>
17 <view class="row"><text class="label">供货单位</text><text class="value">{{ getDicName('SUPPLIER', 17 <view class="row"><text class="label">供货单位</text><text class="value">{{ getDicName('SUPPLIER',
18 form.supplyUnit, dicOptions.SUPPLIER) }}</text></view> 18 form.supplyUnit, dicOptions.SUPPLIER) }}</text></view>
@@ -108,8 +108,9 @@ export default { @@ -108,8 +108,9 @@ export default {
108 return { 108 return {
109 isRefuse: e === 'REFUSE', 109 isRefuse: e === 'REFUSE',
110 isAudit: e === 'AUDIT', 110 isAudit: e === 'AUDIT',
  111 + isAuditDetail: !this.form.sampleOrder,
111 canExamine: d, 112 canExamine: d,
112 - canDeliveryApply: s === 'ISSUED' && (!this.form.freeze || false), 113 + canDeliveryApply: s === 'ISSUED' && (!this.form.freeze || false) && Number(this.form.totalQuantity) > 0,
113 contractCreateBy: this.form.contractCreateBy 114 contractCreateBy: this.form.contractCreateBy
114 } 115 }
115 }, 116 },
@@ -118,7 +119,7 @@ export default { @@ -118,7 +119,7 @@ export default {
118 console.log('displayButtons__f', f) 119 console.log('displayButtons__f', f)
119 return [ 120 return [
120 { ...this.buttons[0], visible: f.isRefuse && f.contractCreateBy && this.$auth.hasPermi('order-manage:order-list:modify') }, 121 { ...this.buttons[0], visible: f.isRefuse && f.contractCreateBy && this.$auth.hasPermi('order-manage:order-list:modify') },
121 - { ...this.buttons[1], visible: this.$auth.hasPermi('order-manage:order-list:review') }, 122 + { ...this.buttons[1], visible: f.isAuditDetail && this.$auth.hasPermi('order-manage:order-list:review') },
122 { ...this.buttons[2], visible: f.isAudit && f.canExamine && this.$auth.hasPermi('order-manage:order-list:approve') }, 123 { ...this.buttons[2], visible: f.isAudit && f.canExamine && this.$auth.hasPermi('order-manage:order-list:approve') },
123 { ...this.buttons[3], visible: f.canDeliveryApply && this.$auth.hasPermi('order-manage:order-list:apply') }, 124 { ...this.buttons[3], visible: f.canDeliveryApply && this.$auth.hasPermi('order-manage:order-list:apply') },
124 { ...this.buttons[4], visible: f.isRefuse && f.contractCreateBy && this.$auth.hasPermi('order-manage:order-list:cancel') }, 125 { ...this.buttons[4], visible: f.isRefuse && f.contractCreateBy && this.$auth.hasPermi('order-manage:order-list:cancel') },