Commit 948aec745139a81154be61bd6d3d82c39452f535

Authored by 史婷婷
1 parent 0de343e6

feat: 规格变更单-列表&详情-按钮权限

@@ -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 },
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 <uni-search-bar v-model="searchKeyword" radius="6" placeholder="请输入订货单位或订单编号" clearButton="auto" 5 <uni-search-bar v-model="searchKeyword" radius="6" placeholder="请输入订货单位或订单编号" clearButton="auto"
6 cancelButton="none" bgColor="#F3F3F3" textColor="rgba(0,0,0,0.4)" @confirm="onSearchConfirm" 6 cancelButton="none" bgColor="#F3F3F3" textColor="rgba(0,0,0,0.4)" @confirm="onSearchConfirm"
7 @input="onSearchInput" /> 7 @input="onSearchInput" />
8 - <image class="tool-icon" src="/static/images/dev_manage/add_icon.png" @click="onAdd" /> 8 + <image v-if="$auth.hasPermi('order-manage:change-list:add')" class="tool-icon" src="/static/images/dev_manage/add_icon.png" @click="onAdd" />
9 <image class="tool-icon" src="/static/images/dev_manage/filter_icon.png" @click="openFilter" /> 9 <image class="tool-icon" src="/static/images/dev_manage/filter_icon.png" @click="openFilter" />
10 </view> 10 </view>
11 </view> 11 </view>