Commit 7ca024e8c37bad52e48a1a3cea263d01fff6a9de

Authored by 史婷婷
1 parent a454aed8

feat: 订货单&规格变更单&撤销单-取消&确认变更按钮增加CreateBy判断

... ... @@ -94,8 +94,8 @@ export default {
94 94 isAudit: e === 'AUDIT',
95 95 canEdit: e === 'REFUSE' && !!m.changeCreateBy,
96 96 canAudit: e === 'AUDIT' && !!m.showExamine,
97   - canCancel: e === 'REFUSE',
98   - canConfirmChange: e === 'REFUSE' && !!m.output
  97 + canCancel: e === 'REFUSE' && !!m.changeCreateBy,
  98 + canConfirmChange: e === 'REFUSE' && !!m.output && !!m.changeCreateBy
99 99 }
100 100 },
101 101 displayButtons() {
... ...
... ... @@ -103,7 +103,7 @@ export default {
103 103 { ...this.buttons[1], visible: true },
104 104 { ...this.buttons[2], visible: f.isAudit && f.canExamine },
105 105 { ...this.buttons[3], visible: f.canDeliveryApply },
106   - { ...this.buttons[4], visible: f.isRefuse },
  106 + { ...this.buttons[4], visible: f.isRefuse && f.contractCreateBy },
107 107 ]
108 108 }
109 109 },
... ...
... ... @@ -58,7 +58,7 @@ export default {
58 58 isAudit: e === 'AUDIT',
59 59 canEdit: e === 'REFUSE' && !!m.revokeCreateBy,
60 60 canAudit: e === 'AUDIT' && !!m.showExamine,
61   - canCancel: e === 'REFUSE',
  61 + canCancel: e === 'REFUSE' && !!m.revokeCreateBy,
62 62 }
63 63 },
64 64 displayButtons() {
... ...