Pārlūkot izejas kodu

feature_20250828_竞品店维护

zhujindu 3 mēneši atpakaļ
vecāks
revīzija
1330a66259

+ 18 - 2
src/components/filtrate.vue

@@ -96,6 +96,20 @@
             </div>
           </div>
           <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
+          <template v-if="postType != 'GZ' && postType != 'JZ'">
+            <p class="searchchecktitle" @click="isCompetingStores = !isCompetingStores">
+              &nbsp;竞品店<van-icon name="arrow-down" style="float: right" />
+            </p>
+            <div v-if="isCompetingStores">
+              <div class="checkbox1" v-for="(item, index) in storeTypeLists" :key="index">
+                <div v-if="item.groupType == 'qzd'" class="child">
+                  <van-checkbox :name="item.dictValue">{{ item.dictLabel }}</van-checkbox>
+                </div>
+              </div>
+              <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
+            </div>
+            <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
+          </template>
           <p class="searchchecktitle" @click="otherShow = !otherShow">
             &nbsp;其他 <van-icon name="arrow-down" style="float: right" />
           </p>
@@ -171,11 +185,13 @@ export default {
       otherfxdShow: true,
       otherfxdShow1: true,
       otherfxdShow2: true,
+      isCompetingStores: true,
+      postType: '',
     };
   },
   activated() {
-    var postType = localStorage.getItem('postType');
-    if (postType == 'GZ') {
+    this.postType = localStorage.getItem('postType');
+    if (this.postType == 'GZ') {
       this.otherShow = true;
     } else {
       this.otherShow = false;

+ 20 - 4
src/views/deviceOutside/index.vue

@@ -507,6 +507,20 @@
             </div>
           </div>
           <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
+          <template v-if="postType != 'GZ' && postType != 'JZ'">
+            <p class="searchchecktitle" @click="isCompetingStores = !isCompetingStores">
+              &nbsp;竞品店<van-icon name="arrow-down" style="float: right" />
+            </p>
+            <div v-if="isCompetingStores">
+              <div class="checkbox1" v-for="(item, index) in storeTypeLists" :key="index">
+                <div v-if="item.groupType == 'qzd'" class="child">
+                  <van-checkbox :name="item.dictValue">{{ item.dictLabel }}</van-checkbox>
+                </div>
+              </div>
+              <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
+            </div>
+            <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
+          </template>
           <p class="searchchecktitle" @click="otherShow = !otherShow">
             &nbsp;其他 <van-icon name="arrow-down" style="float: right" />
           </p>
@@ -676,6 +690,8 @@ export default {
       lon: '',
       timeData: '',
       customerVisits: true,
+      isCompetingStores: true,
+      postType: '',
     };
   },
   watch: {
@@ -730,8 +746,8 @@ export default {
       ) {
         this.onSearch();
       }
-      var postType = localStorage.getItem('postType');
-      if (postType == 'GZ') {
+      this.postType = localStorage.getItem('postType');
+      if (this.postType == 'GZ') {
         this.addShow1 = false;
         this.otherShow = true;
       } else {
@@ -785,8 +801,8 @@ export default {
     localStorage.removeItem('visitId');
     this.getStoreTypeList();
     this.getStoreLabels();
-    var postType = localStorage.getItem('postType');
-    if (postType == 'GZ') {
+    this.postType = localStorage.getItem('postType');
+    if (this.postType == 'GZ') {
       this.addShow1 = false;
       this.otherShow = true;
     } else {

+ 17 - 0
src/views/deviceOutside/rangeStore.vue

@@ -601,6 +601,20 @@
             </div>
           </div>
           <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
+          <template v-if="postType != 'GZ' && postType != 'JZ'">
+            <p class="searchchecktitle" @click="isCompetingStores = !isCompetingStores">
+              &nbsp;竞品店<van-icon name="arrow-down" style="float: right" />
+            </p>
+            <div v-if="isCompetingStores">
+              <div class="checkbox1" v-for="(item, index) in storeTypeLists" :key="index">
+                <div v-if="item.groupType == 'qzd'" class="child">
+                  <van-checkbox :name="item.dictValue">{{ item.dictLabel }}</van-checkbox>
+                </div>
+              </div>
+              <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
+            </div>
+            <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
+          </template>
           <p class="searchchecktitle" @click="otherShow = !otherShow">
             &nbsp;其他 <van-icon name="arrow-down" style="float: right" />
           </p>
@@ -840,6 +854,8 @@ export default {
       heifhgts: '200px',
       mapRange: [], //地图范围
       baiduMapKey: new Date().getTime(),
+      isCompetingStores: true,
+      postType: '',
     };
   },
   created() {
@@ -854,6 +870,7 @@ export default {
     }
   },
   activated() {
+    this.postType = localStorage.getItem('postType');
     this.listData = [];
     this.baiduMapKey = new Date().getTime();
     this.closeFn();