|
@@ -103,11 +103,11 @@ export default { |
|
@@ -103,11 +103,11 @@ export default { |
|
103
|
displayButtons() {
|
103
|
displayButtons() {
|
|
104
|
const f = this.statusFlags
|
104
|
const f = this.statusFlags
|
|
105
|
return [
|
105
|
return [
|
|
106
|
- { ...this.buttons[0], visible: f.canEdit },
|
|
|
|
107
|
- { ...this.buttons[1], visible: true },
|
|
|
|
108
|
- { ...this.buttons[2], visible: f.canAudit },
|
|
|
|
109
|
- { ...this.buttons[3], visible: f.canConfirmChange },
|
|
|
|
110
|
- { ...this.buttons[4], visible: f.canCancel },
|
106
|
+ { ...this.buttons[0], visible: f.canEdit && this.$auth.hasPermi('order-manage:change-list:modify') },
|
|
|
|
107
|
+ { ...this.buttons[1], visible: this.$auth.hasPermi('order-manage:change-list:review') },
|
|
|
|
108
|
+ { ...this.buttons[2], visible: f.canAudit && this.$auth.hasPermi('order-manage:change-list:approve') },
|
|
|
|
109
|
+ { ...this.buttons[3], visible: f.canConfirmChange && this.$auth.hasPermi('order-manage:change-list:confirm') },
|
|
|
|
110
|
+ { ...this.buttons[4], visible: f.canCancel && this.$auth.hasPermi('order-manage:change-list:cancel') },
|
|
111
|
]
|
111
|
]
|
|
112
|
}
|
112
|
}
|
|
113
|
},
|
113
|
},
|