Browse Source

修改bug

chenrui 1 year ago
parent
commit
2a0e0b38b0

+ 1 - 11
src/views/productManagement/priceChangeRecord/list.vue

@@ -194,7 +194,7 @@ export default {
       ]
       getCurrentDealer().then(res => {
         if (res.status == 200) {
-          if (res.data.dealerLevel && res.data.dealerLevel == 'PROVINCE') { //  省级
+          if (res.data.dealerLevel && (res.data.dealerLevel == 'PROVINCE' || res.data.dealerLevel == 'CITY')) { //  省级
             this.columns.push({
               title: '省级价',
               dataIndex: 'sdtermindfaldsdPrice',
@@ -213,16 +213,6 @@ export default {
                 { title: '变更后', scopedSlots: { customRender: 'afterCityPrice' }, width: '4%', align: 'right' }
               ]
             })
-          } else if (res.data.dealerLevel && res.data.dealerLevel == 'CITY') { //  市级
-            this.columns.push({
-              title: '市级价',
-              dataIndex: 'sdterminaldsdPrice',
-              align: 'center',
-              children: [
-                { title: '变更前', dataIndex: 'beforeCityPrice', width: '4%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
-                { title: '变更后', scopedSlots: { customRender: 'afterCityPrice' }, width: '4%', align: 'right' }
-              ]
-            })
           }
           if (res.data.isShowSpecialPrice && res.data.isShowSpecialPrice == '1') { //  是否展示特约价
             this.columns.push({

+ 1 - 5
src/views/productManagement/productInfoJg/list.vue

@@ -286,7 +286,7 @@ export default {
         { title: '产品图片', scopedSlots: { customRender: 'imageUrl' }, width: '6%', align: 'center' },
         { title: '操作', scopedSlots: { customRender: 'action' }, width: '12%', align: 'center' }
       ]
-      if (_this.currentDealerInfo.dealerLevel && _this.currentDealerInfo.dealerLevel == 'PROVINCE') { //  省级
+      if (_this.currentDealerInfo.dealerLevel && (_this.currentDealerInfo.dealerLevel == 'PROVINCE' || _this.currentDealerInfo.dealerLevel == 'CITY')) { //  省级
         if (this.isProPrice) {
           arr.push(
             { title: '省级价', dataIndex: 'provincePrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } }
@@ -297,10 +297,6 @@ export default {
             { title: '市级价', dataIndex: 'cityPrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } }
           )
         }
-      } else if (_this.currentDealerInfo.dealerLevel && _this.currentDealerInfo.dealerLevel == 'CITY' && _this.isCityPrice) { //  市级
-        arr.push(
-          { title: '市级价', dataIndex: 'cityPrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } }
-        )
       }
       if (_this.currentDealerInfo.isShowSpecialPrice && _this.currentDealerInfo.isShowSpecialPrice == '1' && _this.isSpecialPrice) { //  是否展示特约价
         arr.push({ title: '特约价', dataIndex: 'specialPrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })