Commit 0de343e69b888712b6781646beb9d5f029dfed40

Authored by 史婷婷
1 parent 1ad1d94c

feat: 订货单-详情-按钮权限

Showing 1 changed file with 5 additions and 5 deletions
... ... @@ -100,11 +100,11 @@ export default {
100 100 const f = this.statusFlags;
101 101 console.log('displayButtons__f', f)
102 102 return [
103   - { ...this.buttons[0], visible: f.isRefuse && f.contractCreateBy },
104   - { ...this.buttons[1], visible: true },
105   - { ...this.buttons[2], visible: f.isAudit && f.canExamine },
106   - { ...this.buttons[3], visible: f.canDeliveryApply },
107   - { ...this.buttons[4], visible: f.isRefuse && f.contractCreateBy },
  103 + { ...this.buttons[0], visible: f.isRefuse && f.contractCreateBy && this.$auth.hasPermi('order-manage:order-list:modify') },
  104 + { ...this.buttons[1], visible: this.$auth.hasPermi('order-manage:order-list:review') },
  105 + { ...this.buttons[2], visible: f.isAudit && f.canExamine && this.$auth.hasPermi('order-manage:order-list:approve') },
  106 + { ...this.buttons[3], visible: f.canDeliveryApply && this.$auth.hasPermi('order-manage:order-list:apply') },
  107 + { ...this.buttons[4], visible: f.isRefuse && f.contractCreateBy && this.$auth.hasPermi('order-manage:order-list:cancel') },
108 108 ]
109 109 }
110 110 },
... ...