浏览代码

修改bug

chenrui 3 月之前
父节点
当前提交
24a739d5d1

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1742196447399
+  "version": 1742264858900
 }

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

@@ -31,7 +31,7 @@
           </template>
           <custList id="shelfSet-basicInfo-modal-custList" ref="custList" :isEnabled="true" @change="custChange"></custList>
         </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">
             <a-tooltip placement="top">
               <template slot="title">

+ 9 - 3
src/views/numsGoodsShelves/shelfSet/list.vue

@@ -84,7 +84,7 @@
             checkedChildren="启用"
             unCheckedChildren="停用"
             :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)"
             :checked="record.state == 'ENABLE'"
             :id="'shelfSetList-state-'+record.id"
@@ -96,13 +96,19 @@
         <!-- 操作 -->
         <template slot="action" slot-scope="text, record">
           <div>
-            <a-button id="shelfSetList-setView" size="small" type="link" class="button-primary" @click="handleSet(record)">{{ record.state!='WRITE_OFF'&&record.state!='SUSPEND'?'货架设置':'查看' }}</a-button>
+            <a-button
+              id="shelfSetList-setView"
+              v-if="$hasPermissions('M_shelfSet_edit')"
+              size="small"
+              type="link"
+              class="button-primary"
+              @click="handleSet(record)">{{ record.state!='WRITE_OFF'&&record.state!='SUSPEND'?'货架设置':'查看' }}</a-button>
             <a-button
               :id="'shelfSetList-cancel-'+record.id"
               size="small"
               type="link"
               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>
           </div>
         </template>