Commit 0e10e4d26846d79c4bb02cca2cfeeae11176607d

Authored by 史婷婷
1 parent d160421d

feat: 客户资信、延期发货单--审核详情增加判断字段

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