Преглед изворни кода

Merge branch 'feature_20260327_门店筛选增加金牌店等级' into uat(dev)

# Conflicts:
#	src/components/filtrate.vue
#	src/views/deviceWithin/index.vue
zhujindu пре 2 недеља
родитељ
комит
f1e58912fc

+ 84 - 7
src/components/filtrate.vue

@@ -46,7 +46,18 @@
         </p>
         </p>
         <van-checkbox-group v-model="storeLabelTypes" direction="horizontal">
         <van-checkbox-group v-model="storeLabelTypes" direction="horizontal">
           <div v-if="otherbqShow" style="width: 100%">
           <div v-if="otherbqShow" style="width: 100%">
-            <div class="checkbox" v-for="(item, index) in StoreLabels" :key="index">
+            <div class="checkbox" v-for="(item, index) in storeLabelsRegular" :key="index">
+              <van-checkbox :name="item.dictValue">{{ item.dictLabel }}</van-checkbox>
+            </div>
+            <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
+          </div>
+        </van-checkbox-group>
+        <p class="searchchecktitle" @click="otherjpdShow = !otherjpdShow">
+          &nbsp;金牌店等级<van-icon name="arrow-down" style="float: right" />
+        </p>
+        <van-checkbox-group v-model="jpdStoreLevelTypes" direction="horizontal">
+          <div v-if="otherjpdShow" style="width: 100%">
+            <div class="checkbox" v-for="(item, index) in jpdStoreLevels" :key="'jpd' + index">
               <van-checkbox :name="item.dictValue">{{ item.dictLabel }}</van-checkbox>
               <van-checkbox :name="item.dictValue">{{ item.dictLabel }}</van-checkbox>
             </div>
             </div>
             <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
             <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
@@ -167,6 +178,18 @@ export default {
         // this.CustomerName = '';
         // this.CustomerName = '';
         if (val) {
         if (val) {
           this.getStoreTypeList();
           this.getStoreTypeList();
+          this.storeName = localStorage.getItem('outvstoreName') || '';
+          this.chainName = localStorage.getItem('outvchainName') || '';
+          this.chainCode = localStorage.getItem('outvchainCode') || '';
+          this.storeLabelTypes = (localStorage.getItem('outvstoreLabelTypes') || '')
+            .split(',')
+            .filter(Boolean);
+          this.jpdStoreLevelTypes = (localStorage.getItem('outvjpdStoreLevelTypes') || '')
+            .split(',')
+            .filter(Boolean);
+          this.result = (localStorage.getItem('outvstoreCategoryList') || '')
+            .split(',')
+            .filter(Boolean);
         }
         }
       },
       },
       deep: true,
       deep: true,
@@ -185,6 +208,10 @@ export default {
       otherShow: false,
       otherShow: false,
       otherbqShow: true,
       otherbqShow: true,
       StoreLabels: [],
       StoreLabels: [],
+      storeLabelsRegular: [],
+      jpdStoreLevels: [],
+      jpdStoreLevelTypes: [],
+      otherjpdShow: true,
       result: [],
       result: [],
       otherkkdShow: true,
       otherkkdShow: true,
       storeTypeLists: [],
       storeTypeLists: [],
@@ -203,7 +230,18 @@ export default {
       this.otherShow = false;
       this.otherShow = false;
     }
     }
   },
   },
-  created() {},
+  created() {
+    this.storeName = localStorage.getItem('outvstoreName') || '';
+    this.chainName = localStorage.getItem('outvchainName') || '';
+    this.chainCode = localStorage.getItem('outvchainCode') || '';
+    this.storeLabelTypes = (localStorage.getItem('outvstoreLabelTypes') || '')
+      .split(',')
+      .filter(Boolean);
+    this.jpdStoreLevelTypes = (localStorage.getItem('outvjpdStoreLevelTypes') || '')
+      .split(',')
+      .filter(Boolean);
+    this.result = (localStorage.getItem('outvstoreCategoryList') || '').split(',').filter(Boolean);
+  },
   mounted() {
   mounted() {
     this.getStoreLabels();
     this.getStoreLabels();
   },
   },
@@ -212,9 +250,10 @@ export default {
       // flag 是否筛选列表
       // flag 是否筛选列表
       let params = {};
       let params = {};
       if (flag) {
       if (flag) {
+        var storeLabelTypes = this.storeLabelTypes.concat(this.jpdStoreLevelTypes);
         params = {
         params = {
           chainCode: this.chainCode ? this.chainCode : '',
           chainCode: this.chainCode ? this.chainCode : '',
-          storeLabelTypes: this.storeLabelTypes.join(','),
+          storeLabelTypes: storeLabelTypes.join(','),
           storeCategoryList: this.storeCategoryList,
           storeCategoryList: this.storeCategoryList,
         };
         };
       }
       }
@@ -224,8 +263,17 @@ export default {
       e._isScroller = true;
       e._isScroller = true;
     },
     },
     onsets() {
     onsets() {
+      localStorage.setItem('outvstoreName', '');
+      localStorage.setItem('outvchainName', '');
+      localStorage.removeItem('outvstoreLabelTypes');
+      localStorage.removeItem('outvjpdStoreLevelTypes');
+      localStorage.removeItem('outvstoreCategoryList');
+      localStorage.setItem('outvchainCode', '');
+      localStorage.setItem('lat', '');
+      localStorage.setItem('lon', '');
       this.result = [];
       this.result = [];
       this.storeLabelTypes = [];
       this.storeLabelTypes = [];
+      this.jpdStoreLevelTypes = [];
       this.storeCategoryList = this.result.join(',');
       this.storeCategoryList = this.result.join(',');
       this.chainName = '';
       this.chainName = '';
       this.chainCode = '';
       this.chainCode = '';
@@ -249,9 +297,17 @@ export default {
     onSearchm() {
     onSearchm() {
       var StoreLabelsArr = [];
       var StoreLabelsArr = [];
       for (var k = 0; k < this.storeLabelTypes.length; k++) {
       for (var k = 0; k < this.storeLabelTypes.length; k++) {
-        for (var k1 = 0; k1 < this.StoreLabels.length; k1++) {
-          if (this.StoreLabels[k1].dictValue == this.storeLabelTypes[k]) {
-            StoreLabelsArr.push(this.StoreLabels[k1].dictLabel);
+        for (var k1 = 0; k1 < this.storeLabelsRegular.length; k1++) {
+          if (this.storeLabelsRegular[k1].dictValue == this.storeLabelTypes[k]) {
+            StoreLabelsArr.push(this.storeLabelsRegular[k1].dictLabel);
+          }
+        }
+      }
+      var jpdStoreLabelsArr = [];
+      for (var k = 0; k < this.jpdStoreLevelTypes.length; k++) {
+        for (var k1 = 0; k1 < this.jpdStoreLevels.length; k1++) {
+          if (this.jpdStoreLevels[k1].dictValue == this.jpdStoreLevelTypes[k]) {
+            jpdStoreLabelsArr.push(this.jpdStoreLevels[k1].dictLabel);
           }
           }
         }
         }
       }
       }
@@ -263,6 +319,24 @@ export default {
           }
           }
         }
         }
       }
       }
+      if (StoreLabelsArr.length > 0) {
+        buryingPoint({
+          systemModel: '计划内',
+          buryingPointType: 1,
+          buryingPointValue: StoreLabelsArr.join(','),
+          buryingPointName: '标签',
+          buryingPointPosition: '计划内',
+        });
+      }
+      if (jpdStoreLabelsArr.length > 0) {
+        buryingPoint({
+          systemModel: '计划内',
+          buryingPointType: 1,
+          buryingPointValue: jpdStoreLabelsArr.join(','),
+          buryingPointName: '金牌店等级',
+          buryingPointPosition: '计划内',
+        });
+      }
       if (this.chainName != '' && this.chainName != 'null') {
       if (this.chainName != '' && this.chainName != 'null') {
         buryingPoint({
         buryingPoint({
           systemModel: '计划内',
           systemModel: '计划内',
@@ -275,6 +349,7 @@ export default {
       localStorage.setItem('outvstoreName', this.storeName);
       localStorage.setItem('outvstoreName', this.storeName);
       localStorage.setItem('outvchainName', this.chainName);
       localStorage.setItem('outvchainName', this.chainName);
       localStorage.setItem('outvstoreLabelTypes', this.storeLabelTypes);
       localStorage.setItem('outvstoreLabelTypes', this.storeLabelTypes);
+      localStorage.setItem('outvjpdStoreLevelTypes', this.jpdStoreLevelTypes);
       localStorage.setItem('outvstoreCategoryList', this.result);
       localStorage.setItem('outvstoreCategoryList', this.result);
       localStorage.setItem('outvchainCode', this.chainCode);
       localStorage.setItem('outvchainCode', this.chainCode);
       this.closePopup(true);
       this.closePopup(true);
@@ -289,7 +364,9 @@ export default {
     },
     },
     getStoreLabels() {
     getStoreLabels() {
       getStoreLabels().then((res) => {
       getStoreLabels().then((res) => {
-        this.StoreLabels = res.data;
+        this.StoreLabels = res.data || [];
+        this.storeLabelsRegular = this.StoreLabels.filter((item) => item.ifJpdStoreLevel != '1');
+        this.jpdStoreLevels = this.StoreLabels.filter((item) => item.ifJpdStoreLevel == '1');
       });
       });
     },
     },
     getStoreTypeList() {
     getStoreTypeList() {

+ 102 - 11
src/views/deviceOutside/index.vue

@@ -584,7 +584,18 @@
         </p>
         </p>
         <van-checkbox-group v-model="storeLabelTypes" direction="horizontal">
         <van-checkbox-group v-model="storeLabelTypes" direction="horizontal">
           <div v-if="otherbqShow" style="width: 100%">
           <div v-if="otherbqShow" style="width: 100%">
-            <div class="checkbox" v-for="(item, index) in StoreLabels" :key="index">
+            <div class="checkbox" v-for="(item, index) in storeLabelsRegular" :key="index">
+              <van-checkbox :name="item.dictValue">{{ item.dictLabel }}</van-checkbox>
+            </div>
+            <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
+          </div>
+        </van-checkbox-group>
+        <p class="searchchecktitle" @click="otherjpdShow = !otherjpdShow">
+          &nbsp;金牌店等级<van-icon name="arrow-down" style="float: right" />
+        </p>
+        <van-checkbox-group v-model="jpdStoreLevelTypes" direction="horizontal">
+          <div v-if="otherjpdShow" style="width: 100%">
+            <div class="checkbox" v-for="(item, index) in jpdStoreLevels" :key="'jpd' + index">
               <van-checkbox :name="item.dictValue">{{ item.dictLabel }}</van-checkbox>
               <van-checkbox :name="item.dictValue">{{ item.dictLabel }}</van-checkbox>
             </div>
             </div>
             <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
             <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
@@ -818,6 +829,10 @@ export default {
       storeCategoryList: '',
       storeCategoryList: '',
       result: [],
       result: [],
       StoreLabels: [],
       StoreLabels: [],
+      storeLabelsRegular: [],
+      jpdStoreLevels: [],
+      jpdStoreLevelTypes: [],
+      otherjpdShow: true,
       CustomerName: '',
       CustomerName: '',
       lat: '',
       lat: '',
       lon: '',
       lon: '',
@@ -829,12 +844,26 @@ export default {
   },
   },
   watch: {
   watch: {
     $route(to, from) {
     $route(to, from) {
+      if (from.path == '/deviceWithin/index') {
+        localStorage.setItem('outvstoreName', '');
+        localStorage.setItem('outvchainName', '');
+        localStorage.removeItem('outvstoreLabelTypes');
+        localStorage.removeItem('outvjpdStoreLevelTypes');
+        localStorage.removeItem('outvstoreCategoryList');
+        localStorage.setItem('outvchainCode', '');
+        localStorage.setItem('outvsortType', '');
+        localStorage.setItem('outsortParam', '');
+        localStorage.setItem('lat', '');
+        localStorage.setItem('lon', '');
+      }
       this.storeName = localStorage.getItem('outvstoreName');
       this.storeName = localStorage.getItem('outvstoreName');
       if (
       if (
         localStorage.getItem('outvchainName') &&
         localStorage.getItem('outvchainName') &&
         localStorage.getItem('outvchainName') != 'null'
         localStorage.getItem('outvchainName') != 'null'
       ) {
       ) {
         this.chainName = localStorage.getItem('outvchainName');
         this.chainName = localStorage.getItem('outvchainName');
+      } else {
+        this.chainName = '';
       }
       }
       if (localStorage.getItem('lat') != null) {
       if (localStorage.getItem('lat') != null) {
         this.lat = localStorage.getItem('lat');
         this.lat = localStorage.getItem('lat');
@@ -843,12 +872,26 @@ export default {
         this.lat = '';
         this.lat = '';
         this.lon = '';
         this.lon = '';
       }
       }
-      if (localStorage.getItem('outvstoreLabelTypes') != null) {
-        this.storeLabelTypes = localStorage.getItem('outvstoreLabelTypes').split(',');
+      const storedStoreLabels = localStorage.getItem('outvstoreLabelTypes');
+      if (storedStoreLabels != null && storedStoreLabels !== '') {
+        this.storeLabelTypes = storedStoreLabels
+          .split(',')
+          .map((it) => it.trim())
+          .filter((it) => it);
       } else {
       } else {
         this.storeLabelTypes = [];
         this.storeLabelTypes = [];
       }
       }
 
 
+      const storedJpdStoreLevels = localStorage.getItem('outvjpdStoreLevelTypes');
+      if (storedJpdStoreLevels != null && storedJpdStoreLevels !== '') {
+        this.jpdStoreLevelTypes = storedJpdStoreLevels
+          .split(',')
+          .map((it) => it.trim())
+          .filter((it) => it);
+      } else {
+        this.jpdStoreLevelTypes = [];
+      }
+
       if (localStorage.getItem('outvstoreCategoryList') != null) {
       if (localStorage.getItem('outvstoreCategoryList') != null) {
         this.result = localStorage.getItem('outvstoreCategoryList').split(',');
         this.result = localStorage.getItem('outvstoreCategoryList').split(',');
         this.storeCategoryList = this.result.join(',');
         this.storeCategoryList = this.result.join(',');
@@ -903,11 +946,25 @@ export default {
     if (localStorage.getItem('outvchainName') && localStorage.getItem('outvchainName') != 'null') {
     if (localStorage.getItem('outvchainName') && localStorage.getItem('outvchainName') != 'null') {
       this.chainName = localStorage.getItem('outvchainName');
       this.chainName = localStorage.getItem('outvchainName');
     }
     }
-    if (localStorage.getItem('outvstoreLabelTypes') != null) {
-      this.storeLabelTypes = localStorage.getItem('outvstoreLabelTypes').split(',');
+    const storedStoreLabels = localStorage.getItem('outvstoreLabelTypes');
+    if (storedStoreLabels != null && storedStoreLabels !== '') {
+      this.storeLabelTypes = storedStoreLabels
+        .split(',')
+        .map((it) => it.trim())
+        .filter((it) => it);
     } else {
     } else {
       this.storeLabelTypes = [];
       this.storeLabelTypes = [];
     }
     }
+
+    const storedJpdStoreLevels = localStorage.getItem('outvjpdStoreLevelTypes');
+    if (storedJpdStoreLevels != null && storedJpdStoreLevels !== '') {
+      this.jpdStoreLevelTypes = storedJpdStoreLevels
+        .split(',')
+        .map((it) => it.trim())
+        .filter((it) => it);
+    } else {
+      this.jpdStoreLevelTypes = [];
+    }
     if (localStorage.getItem('outvstoreCategoryList') != null) {
     if (localStorage.getItem('outvstoreCategoryList') != null) {
       this.result = localStorage.getItem('outvstoreCategoryList').split(',');
       this.result = localStorage.getItem('outvstoreCategoryList').split(',');
       this.storeCategoryList = this.result.join(',');
       this.storeCategoryList = this.result.join(',');
@@ -1167,7 +1224,9 @@ export default {
     },
     },
     getStoreLabels() {
     getStoreLabels() {
       getStoreLabels().then((res) => {
       getStoreLabels().then((res) => {
-        this.StoreLabels = res.data;
+        this.StoreLabels = res.data || [];
+        this.storeLabelsRegular = this.StoreLabels.filter((item) => item.ifJpdStoreLevel != '1');
+        this.jpdStoreLevels = this.StoreLabels.filter((item) => item.ifJpdStoreLevel == '1');
       });
       });
     },
     },
     searchType(val) {
     searchType(val) {
@@ -1200,6 +1259,7 @@ export default {
       this.noOrder = [];
       this.noOrder = [];
       this.fxNoOrder = [];
       this.fxNoOrder = [];
       this.storeLabelTypes = [];
       this.storeLabelTypes = [];
+      this.jpdStoreLevelTypes = [];
       this.storeCategoryList = this.result.join(',');
       this.storeCategoryList = this.result.join(',');
       this.chainName = '';
       this.chainName = '';
       this.chainCode = '';
       this.chainCode = '';
@@ -1291,7 +1351,9 @@ export default {
         lat: that.lat,
         lat: that.lat,
         lon: that.lon,
         lon: that.lon,
         chainCode: this.chainCode ? this.chainCode : '',
         chainCode: this.chainCode ? this.chainCode : '',
-        storeLabelTypes: this.storeLabelTypes.join(','),
+        storeLabelTypes: [
+          ...new Set([...(this.storeLabelTypes || []), ...(this.jpdStoreLevelTypes || [])]),
+        ].join(','),
         pageNum: this.pageNum,
         pageNum: this.pageNum,
         storeCategoryList: this.storeCategoryList,
         storeCategoryList: this.storeCategoryList,
         pageSize: this.pageSize,
         pageSize: this.pageSize,
@@ -1370,7 +1432,9 @@ export default {
         lat: that.lat,
         lat: that.lat,
         lon: that.lon,
         lon: that.lon,
         chainCode: this.chainCode ? this.chainCode : '',
         chainCode: this.chainCode ? this.chainCode : '',
-        storeLabelTypes: this.storeLabelTypes.join(','),
+        storeLabelTypes: [
+          ...new Set([...(this.storeLabelTypes || []), ...(this.jpdStoreLevelTypes || [])]),
+        ].join(','),
         pageNum: this.pageNum,
         pageNum: this.pageNum,
         storeCategoryList: this.storeCategoryList,
         storeCategoryList: this.storeCategoryList,
         pageSize: this.pageSize,
         pageSize: this.pageSize,
@@ -2292,9 +2356,17 @@ export default {
       }
       }
       var StoreLabelsArr = [];
       var StoreLabelsArr = [];
       for (var k = 0; k < this.storeLabelTypes.length; k++) {
       for (var k = 0; k < this.storeLabelTypes.length; k++) {
-        for (var k1 = 0; k1 < this.StoreLabels.length; k1++) {
-          if (this.StoreLabels[k1].dictValue == this.storeLabelTypes[k]) {
-            StoreLabelsArr.push(this.StoreLabels[k1].dictLabel);
+        for (var k1 = 0; k1 < this.storeLabelsRegular.length; k1++) {
+          if (this.storeLabelsRegular[k1].dictValue == this.storeLabelTypes[k]) {
+            StoreLabelsArr.push(this.storeLabelsRegular[k1].dictLabel);
+          }
+        }
+      }
+      var jpdStoreLabelsArr = [];
+      for (var k = 0; k < this.jpdStoreLevelTypes.length; k++) {
+        for (var k1 = 0; k1 < this.jpdStoreLevels.length; k1++) {
+          if (this.jpdStoreLevels[k1].dictValue == this.jpdStoreLevelTypes[k]) {
+            jpdStoreLabelsArr.push(this.jpdStoreLevels[k1].dictLabel);
           }
           }
         }
         }
       }
       }
@@ -2316,6 +2388,15 @@ export default {
             buryingPointPosition: '我的筛选',
             buryingPointPosition: '我的筛选',
           });
           });
         }
         }
+        if (jpdStoreLabelsArr.length > 0) {
+          this.buryingPoint({
+            systemModel: '计划外',
+            buryingPointType: 1,
+            buryingPointValue: jpdStoreLabelsArr.join(','),
+            buryingPointName: '金牌店等级',
+            buryingPointPosition: '我的筛选',
+          });
+        }
         if (this.storeCategoryList.length > 0) {
         if (this.storeCategoryList.length > 0) {
           this.buryingPoint({
           this.buryingPoint({
             systemModel: '计划外',
             systemModel: '计划外',
@@ -2353,6 +2434,15 @@ export default {
             buryingPointPosition: '销售部的门店筛选',
             buryingPointPosition: '销售部的门店筛选',
           });
           });
         }
         }
+        if (jpdStoreLabelsArr.length > 0) {
+          this.buryingPoint({
+            systemModel: '计划外',
+            buryingPointType: 1,
+            buryingPointValue: jpdStoreLabelsArr.join(','),
+            buryingPointName: '金牌店等级',
+            buryingPointPosition: '销售部的门店筛选',
+          });
+        }
         if (this.storeCategoryList != '') {
         if (this.storeCategoryList != '') {
           this.buryingPoint({
           this.buryingPoint({
             systemModel: '计划外',
             systemModel: '计划外',
@@ -2384,6 +2474,7 @@ export default {
       localStorage.setItem('outvstoreName', this.storeName);
       localStorage.setItem('outvstoreName', this.storeName);
       localStorage.setItem('outvchainName', this.chainName);
       localStorage.setItem('outvchainName', this.chainName);
       localStorage.setItem('outvstoreLabelTypes', this.storeLabelTypes);
       localStorage.setItem('outvstoreLabelTypes', this.storeLabelTypes);
+      localStorage.setItem('outvjpdStoreLevelTypes', this.jpdStoreLevelTypes);
       localStorage.setItem('outvstoreCategoryList', this.result);
       localStorage.setItem('outvstoreCategoryList', this.result);
       localStorage.setItem('outvchainCode', this.chainCode == 'null' ? '' : this.chainCode);
       localStorage.setItem('outvchainCode', this.chainCode == 'null' ? '' : this.chainCode);
       this.onSearch();
       this.onSearch();

+ 17 - 10
src/views/deviceWithin/index.vue

@@ -549,6 +549,7 @@
       :showFilter="showFilter"
       :showFilter="showFilter"
       @closePopup="closePopup"
       @closePopup="closePopup"
       :entry="0"></filtrate>
       :entry="0"></filtrate>
+      ref="filtrate"></filtrate>
     <tab-bar tabBarActive="deviceWithin"></tab-bar>
     <tab-bar tabBarActive="deviceWithin"></tab-bar>
   </div>
   </div>
 </template>
 </template>
@@ -662,6 +663,22 @@ export default {
       if (from.path == '/deviceWithin/index' && to.path == '/storeVisitpage') {
       if (from.path == '/deviceWithin/index' && to.path == '/storeVisitpage') {
         localStorage.setItem('startTime', new Date());
         localStorage.setItem('startTime', new Date());
       }
       }
+      if (from.path == '/outsidelist/index') {
+        localStorage.setItem('outvstoreName', '');
+        localStorage.setItem('outvchainName', '');
+        localStorage.removeItem('outvstoreLabelTypes');
+        localStorage.removeItem('outvjpdStoreLevelTypes');
+        localStorage.removeItem('outvstoreCategoryList');
+        localStorage.setItem('outvchainCode', '');
+        localStorage.setItem('outvsortType', '');
+        localStorage.setItem('outsortParam', '');
+        localStorage.setItem('lat', '');
+        localStorage.setItem('lon', '');
+        this.filterParams = {};
+        if (this.$refs.filtrate) {
+          this.$refs.filtrate.onsets();
+        }
+      }
     },
     },
   },
   },
   activated() {
   activated() {
@@ -888,16 +905,6 @@ export default {
       });
       });
     },
     },
     getUserInPlanList() {
     getUserInPlanList() {
-      localStorage.setItem('outvstoreName', '');
-      localStorage.setItem('outvchainName', '');
-      localStorage.removeItem('outvstoreLabelTypes');
-      localStorage.removeItem('outvstoreCategoryList');
-      localStorage.setItem('outvchainCode', '');
-      localStorage.setItem('outvstoreName', '');
-      localStorage.setItem('outvsortType', '');
-      localStorage.setItem('outsortParam', '');
-      localStorage.setItem('lat', '');
-      localStorage.setItem('lon', '');
       this.list = [];
       this.list = [];
       var postType = localStorage.getItem('postType');
       var postType = localStorage.getItem('postType');
       this.customerVisits = localStorage.getItem('customerVisits');
       this.customerVisits = localStorage.getItem('customerVisits');

+ 1 - 0
src/views/home/ABtarget.vue

@@ -731,6 +731,7 @@ export default {
       localStorage.setItem('outvstoreName', '');
       localStorage.setItem('outvstoreName', '');
       localStorage.setItem('outvchainName', '');
       localStorage.setItem('outvchainName', '');
       localStorage.removeItem('outvstoreLabelTypes');
       localStorage.removeItem('outvstoreLabelTypes');
+      localStorage.removeItem('outvjpdStoreLevelTypes');
       localStorage.removeItem('outvstoreCategoryList');
       localStorage.removeItem('outvstoreCategoryList');
       localStorage.setItem('outvchainCode', '');
       localStorage.setItem('outvchainCode', '');
       localStorage.setItem('outvstoreName', '');
       localStorage.setItem('outvstoreName', '');

+ 1 - 0
src/views/home/HomeTarget.vue

@@ -271,6 +271,7 @@ export default {
       localStorage.setItem('outvstoreName', '');
       localStorage.setItem('outvstoreName', '');
       localStorage.setItem('outvchainName', '');
       localStorage.setItem('outvchainName', '');
       localStorage.removeItem('outvstoreLabelTypes');
       localStorage.removeItem('outvstoreLabelTypes');
+      localStorage.removeItem('outvjpdStoreLevelTypes');
       localStorage.removeItem('outvstoreCategoryList');
       localStorage.removeItem('outvstoreCategoryList');
       localStorage.setItem('outvchainCode', '');
       localStorage.setItem('outvchainCode', '');
       localStorage.setItem('outvstoreName', '');
       localStorage.setItem('outvstoreName', '');