|
...
|
...
|
@@ -211,11 +211,11 @@ export default { |
|
211
|
211
|
displayButtons() {
|
|
212
|
212
|
const f = this.statusFlags
|
|
213
|
213
|
return [
|
|
214
|
|
- { ...this.buttons[0], visible: f.isRefuse },
|
|
215
|
|
- { ...this.buttons[1], visible: true },
|
|
216
|
|
- { ...this.buttons[2], visible: f.isAudit && f.canExamine },
|
|
217
|
|
- { ...this.buttons[3], visible: f.isPass },
|
|
218
|
|
- { ...this.buttons[4], visible: f.isRefuse },
|
|
|
214
|
+ { ...this.buttons[0], visible: f.isRefuse && this.$auth.hasPermi('customer-credit-manage:customer-credit-plan:modify') },
|
|
|
215
|
+ { ...this.buttons[1], visible: this.$auth.hasPermi('customer-credit-manage:customer-credit-plan:review') },
|
|
|
216
|
+ { ...this.buttons[2], visible: f.isAudit && f.canExamine && this.$auth.hasPermi('customer-credit-manage:customer-credit-plan:approve') },
|
|
|
217
|
+ { ...this.buttons[3], visible: f.isPass && this.$auth.hasPermi('customer-credit-manage:customer-credit-plan:change') },
|
|
|
218
|
+ { ...this.buttons[4], visible: f.isRefuse && this.$auth.hasPermi('customer-credit-manage:customer-credit-plan:close') },
|
|
219
|
219
|
]
|
|
220
|
220
|
}
|
|
221
|
221
|
},
|
...
|
...
|
|