Browse Source

修改bug

chenrui 3 months ago
parent
commit
84ab84279c

+ 1 - 1
src/views/numsGoodsShelves/shelfSet/basicInfoModal.vue

@@ -31,7 +31,7 @@
           </template>
           </template>
           <custList id="shelfSet-basicInfo-modal-custList" ref="custList" :isEnabled="true" @change="custChange"></custList>
           <custList id="shelfSet-basicInfo-modal-custList" ref="custList" :isEnabled="true" @change="custChange"></custList>
         </a-form-model-item>
         </a-form-model-item>
-        <a-form-model-item prop="showPrice">
+        <a-form-model-item prop="showPrice" v-if="$hasPermissions('B_shelfSet_priceSetting')">
           <template slot="label">
           <template slot="label">
             <a-tooltip placement="top">
             <a-tooltip placement="top">
               <template slot="title">
               <template slot="title">

+ 2 - 2
src/views/numsGoodsShelves/shelfSet/list.vue

@@ -84,7 +84,7 @@
             checkedChildren="启用"
             checkedChildren="启用"
             unCheckedChildren="停用"
             unCheckedChildren="停用"
             :disabled="record.state=='WRITE_OFF'||record.state=='SUSPEND'"
             :disabled="record.state=='WRITE_OFF'||record.state=='SUSPEND'"
-            v-if="record.state!=undefined"
+            v-if="$hasPermissions('B_shelfSet_enable')&&record.state!=undefined"
             @change="enableShelf(record)"
             @change="enableShelf(record)"
             :checked="record.state == 'ENABLE'"
             :checked="record.state == 'ENABLE'"
             :id="'shelfSetList-state-'+record.id"
             :id="'shelfSetList-state-'+record.id"
@@ -102,7 +102,7 @@
               size="small"
               size="small"
               type="link"
               type="link"
               class="button-primary"
               class="button-primary"
-              v-if="record.state!='WRITE_OFF'&&record.state!='SUSPEND'"
+              v-if="$hasPermissions('B_shelfSet_logout')&&record.state!='WRITE_OFF'&&record.state!='SUSPEND'"
               @click="handleCancel(record)">注销</a-button>
               @click="handleCancel(record)">注销</a-button>
           </div>
           </div>
         </template>
         </template>