Commit 7ca024e8c37bad52e48a1a3cea263d01fff6a9de
1 parent
a454aed8
feat: 订货单&规格变更单&撤销单-取消&确认变更按钮增加CreateBy判断
Showing
3 changed files
with
4 additions
and
4 deletions
| @@ -94,8 +94,8 @@ export default { | @@ -94,8 +94,8 @@ export default { | ||
| 94 | isAudit: e === 'AUDIT', | 94 | isAudit: e === 'AUDIT', |
| 95 | canEdit: e === 'REFUSE' && !!m.changeCreateBy, | 95 | canEdit: e === 'REFUSE' && !!m.changeCreateBy, |
| 96 | canAudit: e === 'AUDIT' && !!m.showExamine, | 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 | displayButtons() { | 101 | displayButtons() { |
| @@ -103,7 +103,7 @@ export default { | @@ -103,7 +103,7 @@ export default { | ||
| 103 | { ...this.buttons[1], visible: true }, | 103 | { ...this.buttons[1], visible: true }, |
| 104 | { ...this.buttons[2], visible: f.isAudit && f.canExamine }, | 104 | { ...this.buttons[2], visible: f.isAudit && f.canExamine }, |
| 105 | { ...this.buttons[3], visible: f.canDeliveryApply }, | 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,7 +58,7 @@ export default { | ||
| 58 | isAudit: e === 'AUDIT', | 58 | isAudit: e === 'AUDIT', |
| 59 | canEdit: e === 'REFUSE' && !!m.revokeCreateBy, | 59 | canEdit: e === 'REFUSE' && !!m.revokeCreateBy, |
| 60 | canAudit: e === 'AUDIT' && !!m.showExamine, | 60 | canAudit: e === 'AUDIT' && !!m.showExamine, |
| 61 | - canCancel: e === 'REFUSE', | 61 | + canCancel: e === 'REFUSE' && !!m.revokeCreateBy, |
| 62 | } | 62 | } |
| 63 | }, | 63 | }, |
| 64 | displayButtons() { | 64 | displayButtons() { |