Showing
2 changed files
with
4 additions
and
2 deletions
| ... | ... | @@ -208,13 +208,14 @@ export default { |
| 208 | 208 | isPass: s === 'PASS', |
| 209 | 209 | isAudit: s === 'AUDIT', |
| 210 | 210 | canExamine: e, |
| 211 | + isAuditDetail: this.form.showExamineDetail || false, | |
| 211 | 212 | } |
| 212 | 213 | }, |
| 213 | 214 | displayButtons() { |
| 214 | 215 | const f = this.statusFlags |
| 215 | 216 | return [ |
| 216 | 217 | { ...this.buttons[0], visible: f.isRefuse && this.$auth.hasPermi('customer-credit-manage:customer-credit-plan:modify') }, |
| 217 | - { ...this.buttons[1], visible: this.$auth.hasPermi('customer-credit-manage:customer-credit-plan:review') }, | |
| 218 | + { ...this.buttons[1], visible: f.isAuditDetail && this.$auth.hasPermi('customer-credit-manage:customer-credit-plan:review') }, | |
| 218 | 219 | { ...this.buttons[2], visible: f.isAudit && f.canExamine && this.$auth.hasPermi('customer-credit-manage:customer-credit-plan:approve') }, |
| 219 | 220 | { ...this.buttons[3], visible: f.isPass && this.$auth.hasPermi('customer-credit-manage:customer-credit-plan:change') }, |
| 220 | 221 | { ...this.buttons[4], visible: f.isRefuse && this.$auth.hasPermi('customer-credit-manage:customer-credit-plan:close') }, | ... | ... |
| ... | ... | @@ -45,6 +45,7 @@ export default { |
| 45 | 45 | return { |
| 46 | 46 | isRefuse: e === 'REFUSE' || false, |
| 47 | 47 | isAudit: e === 'AUDIT' || false, |
| 48 | + isAuditDetail: m.showExamineDetail || false, | |
| 48 | 49 | canEdit: e === 'REFUSE' && m.delayedCreateBy || false, |
| 49 | 50 | canAudit: e === 'AUDIT' && m.showExamine || false, |
| 50 | 51 | canCancel: e === 'REFUSE' && m.delayedCreateBy || false, |
| ... | ... | @@ -54,7 +55,7 @@ export default { |
| 54 | 55 | const f = this.statusFlags |
| 55 | 56 | return [ |
| 56 | 57 | { ...this.buttons[0], visible: f.canEdit && this.$auth.hasPermi('shipping-plan-manage:delay-invoice:modify') }, |
| 57 | - { ...this.buttons[1], visible: this.$auth.hasPermi('shipping-plan-manage:delay-invoice:review') }, | |
| 58 | + { ...this.buttons[1], visible: f.isAuditDetail && this.$auth.hasPermi('shipping-plan-manage:delay-invoice:review') }, | |
| 58 | 59 | { ...this.buttons[2], visible: f.canAudit && this.$auth.hasPermi('shipping-plan-manage:delay-invoice:approve') }, |
| 59 | 60 | { ...this.buttons[3], visible: f.canCancel && this.$auth.hasPermi('shipping-plan-manage:delay-invoice:cancel') }, |
| 60 | 61 | ] | ... | ... |