浏览代码

特约价根据商户级别显示

chenrui 1 年之前
父节点
当前提交
856f084823

+ 1 - 1
src/views/dealerManagement/merchantInfoManagement/chooseTypeModal.vue

@@ -279,7 +279,7 @@ export default {
         this.$emit('close')
       } else {
         // 特约经销商   价格级别不能修改  省、市经销商时,不能选择特约价
-        if (this.$route.params.dealerLevel === 'special') {
+        if (this.$route.params.dealerLevel === 'SPECIAL') {
           this.form.priceLevel = 'SPECIAL'
           this.notArrFlag = true
         } else {

+ 1 - 1
src/views/dealerManagement/merchantInfoManagement/list.vue

@@ -248,7 +248,7 @@ export default {
     },
     // 经销权
     handleDistribution (row) {
-      this.$router.push({ name: `merchantInfoManagementSet`, params: { sn: row.dealerSn, name: row.dealerName, dealerLevel: row.dealerType1 } })
+      this.$router.push({ name: `merchantInfoManagementSet`, params: { sn: row.dealerSn, name: row.dealerName, dealerLevel: row.dealerLevel } })
     },
     // 差价
     handlePriceSpread (row) {

+ 2 - 2
src/views/dealerManagement/merchantInfoManagement/permissionSettingNew.vue

@@ -43,7 +43,7 @@
         <!-- 操作按钮 -->
         <div class="table-operator">
           <a-button type="primary" class="button-error" @click="chooseTModal">选择品类</a-button>
-          <span v-if="!showEmpty && $route.params.dealerLevel != 'special'">
+          <span v-if="!showEmpty && $route.params.dealerLevel != 'SPECIAL'">
             <a-button type="primary" class="button-info" @click="handleEdit()">批量编辑</a-button>
             <a-button type="primary" ghost class="button-error" @click="handleDel()">批量删除</a-button>
           </span>
@@ -116,7 +116,7 @@ export default {
       const _this = this
       // 操作按钮
       const actionFormat = function (record, data, h) {
-        if (_this.$route.params.dealerLevel != 'special') {
+        if (_this.$route.params.dealerLevel != 'SPECIAL') {
           return (
             <div>
               <a-button size="small" type="link" class="button-info" onClick={() => _this.handleEdit(record)}>编辑</a-button>