lilei 1 year ago
parent
commit
c12b2398d8

+ 1 - 1
public/version.json

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

+ 1 - 2
src/views/power/role/menuModal.vue

@@ -147,8 +147,7 @@ export default {
       console.log(this.menuData)
       if (newValue) { // 编辑
         if (this.$store.state.user.dealerLevel == 'SPECIAL') { // 特约经销商
-          const newChilderArr = this.filterTree(newValue.allMenuList)
-          this.treeData = newChilderArr
+          this.treeData = this.filterTree(newValue.allMenuList)
         } else {
           this.treeData = this.menuData.allMenuList
         }

+ 3 - 13
src/views/salesManagement/productPricing/list.vue

@@ -58,9 +58,9 @@
     <div style="padding: 10px 0;text-align: right;">
       <a-checkbox v-model="isCostPrice" v-if="$hasPermissions('M_ShowAllCost')"><span style="display: inline-block;">参考成本价</span></a-checkbox>
       <!-- 特约加盟商不可见市级价 -->
-      <a-checkbox v-model="isCityPrice" v-if="dealerData && dealerData.dealerLevel != 'SPECIAL'&&$hasPermissions('M_ShowAllCityPrice')"><span style="display: inline-block;">市级价</span></a-checkbox>
+      <a-checkbox v-model="isCityPrice" v-if="$store.state.user.dealerLevel != 'SPECIAL'&&$hasPermissions('M_ShowAllCityPrice')"><span style="display: inline-block;">市级价</span></a-checkbox>
       <!-- 是否展示特约价 -->
-      <a-checkbox v-model="isSpecialPrice" v-if="dealerData && dealerData.isShowSpecialPrice == '1'"><span style="display: inline-block;">特约价</span></a-checkbox>
+      <a-checkbox v-model="isSpecialPrice" v-if="$store.state.user.isShowSpecialPrice==1"><span style="display: inline-block;">特约价</span></a-checkbox>
       <a-checkbox v-model="isTerminalPrice"><span style="display: inline-block;">终端价/自定义终端价</span></a-checkbox>
     </div>
     <!-- 列表 -->
@@ -103,7 +103,6 @@ import { commonMixin } from '@/utils/mixin'
 import { STable, VSelect } from '@/components'
 import ProductType from '../../common/productType.js'
 import ProductBrand from '../../common/productBrand.js'
-import { getCurrentDealer } from '@/api/product'
 import { dealerProductPriceList } from '@/api/dealerProduct'
 import productSalesRecordModal from './productSalesRecordModal.vue'
 export default {
@@ -151,8 +150,7 @@ export default {
       isCostPrice: false,
       isCityPrice: false,
       isSpecialPrice: false,
-      isTerminalPrice: false,
-      dealerData: null
+      isTerminalPrice: false
     }
   },
   computed: {
@@ -224,14 +222,6 @@ export default {
       this.$nextTick(() => { // 页面渲染完成后的回调
         _this.setTableH()
       })
-      // 获取当前登录用户经销商等级
-      getCurrentDealer().then(res => {
-        if (res.status == 200) {
-          this.dealerData = res.data
-        } else {
-          this.dealerData = null
-        }
-      })
     },
     setTableH () {
       const tableSearchH = this.$refs.tableSearch.offsetHeight