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