Parcourir la source

feature_20250917_仿石漆潜在客户区域创建

zhujindu il y a 2 mois
Parent
commit
c994e1395d

+ 26 - 20
src/views/storeManagement/competingStoresAdd.vue

@@ -111,7 +111,12 @@
             <span class="van-f-red">*</span>
           </template>
         </van-field>
-        <van-field
+        <van-field readonly v-model="fromData.cityLevel" label="城市等级">
+          <template #left-icon>
+            <span class="van-f-red">*</span>
+          </template></van-field
+        >
+        <!-- <van-field
           readonly
           clickable
           name="picker"
@@ -123,7 +128,7 @@
           <template #left-icon>
             <span class="van-f-red">*</span>
           </template>
-        </van-field>
+        </van-field> -->
         <van-field
           v-model="fromData.addressLine"
           label="地址"
@@ -145,13 +150,13 @@
         <van-field
           type="tel"
           v-model="fromData.telephone"
-          label="联系电话"
-          placeholder="请输入联系电话"
+          label="门店联系电话"
+          placeholder="请输入门店联系电话"
           :rules="[
             {
               required: true,
               validator: FSQValidatePhone,
-              message: '请输入联系电话',
+              message: '请输入门店联系电话',
             },
           ]">
           <template #left-icon>
@@ -160,9 +165,9 @@
         </van-field>
         <van-field
           v-model="fromData.salesmanName"
-          label="联系人"
-          placeholder="联系人"
-          :rules="[{ required: true, message: '请输入联系人' }]">
+          label="门店联系人"
+          placeholder="请输入门店联系人"
+          :rules="[{ required: true, message: '请输入门店联系人' }]">
           <template #left-icon>
             <span class="van-f-red">*</span>
           </template>
@@ -194,14 +199,14 @@
         @confirm="onDistrictConfirm"
         @cancel="showDistrictPicker = false" />
     </van-popup>
-    <van-popup v-model="showTownPicker" position="bottom">
+    <!-- <van-popup v-model="showTownPicker" position="bottom">
       <van-picker
         show-toolbar
         title="街道"
         :columns="townList"
         @confirm="onTownConfirm"
         @cancel="showTownPicker = false" />
-    </van-popup>
+    </van-popup> -->
     <!--    部门数据 -->
     <van-popup v-model="showPickerDept" position="bottom">
       <van-picker
@@ -268,7 +273,7 @@ export default {
   data() {
     return {
       fromData: {
-        storeCode: '',
+        // storeCode: '',
         storeName: '',
         telephone: '',
         storeCategoryName: '',
@@ -278,7 +283,7 @@ export default {
         addressLine: '',
         orgName: '',
         // chainName: '',
-        townName: '',
+        // townName: '',
         salesmanName: '',
         lat: '',
         lon: '',
@@ -361,11 +366,12 @@ export default {
                 this.fromData.provinceName = response.data.provinceName;
                 this.fromData.cityName = response.data.cityName;
                 this.fromData.districtName = response.data.countyName;
+                this.fromData.cityLevel = response.data.countyLevel;
                 this.$nextTick(() => {
                   this.getStreetQuery();
                   this.getStreetQuery('1');
                   this.getStreetQuery('2');
-                  this.getStreetQuery('3');
+                  // this.getStreetQuery('3');
                 });
               }
             });
@@ -628,8 +634,8 @@ export default {
       this.fromData.city = '';
       this.fromData.districtName = '';
       this.fromData.countyCode = '';
-      this.fromData.townName = '';
-      this.fromData.townCode = '';
+      // this.fromData.townName = '';
+      // this.fromData.townCode = '';
       this.countyCode = '';
       this.cityCode = '';
       this.provinceCode = value.provinceCode;
@@ -641,8 +647,8 @@ export default {
       this.fromData.city = value.cityCode;
       this.fromData.districtName = '';
       this.fromData.district = '';
-      this.fromData.townName = '';
-      this.fromData.townCode = '';
+      // this.fromData.townName = '';
+      // this.fromData.townCode = '';
       this.countyCode = '';
       this.cityCode = value.cityCode;
       this.getStreetQuery('2');
@@ -651,11 +657,11 @@ export default {
     onDistrictConfirm(value) {
       this.fromData.districtName = value.text;
       this.fromData.district = value.countyCode;
-      this.fromData.townName = '';
-      this.fromData.townCode = '';
+      // this.fromData.townName = '';
+      // this.fromData.townCode = '';
       this.countyCode = value.countyCode;
       this.fromData.cityLevel = value.countyLevel;
-      this.getStreetQuery('3');
+      // this.getStreetQuery('3');
       this.showDistrictPicker = false;
     },
     onTownConfirm(value) {

+ 0 - 1
src/views/storeManagement/competingStoresDetail.vue

@@ -156,7 +156,6 @@ export default {
         districtName: '',
         addressLine: '',
         orgName: '',
-        townName: '',
         contactName: '',
         salesmanName: '',
         cityLevel: '',

+ 19 - 19
src/views/storeManagement/competingStoresEdit.vue

@@ -111,7 +111,7 @@
             <span class="van-f-red">*</span>
           </template>
         </van-field>
-        <van-field
+        <!-- <van-field
           readonly
           clickable
           name="picker"
@@ -123,7 +123,7 @@
           <template #left-icon>
             <span class="van-f-red">*</span>
           </template>
-        </van-field>
+        </van-field> -->
         <van-field
           v-model="fromData.addressLine"
           label="地址"
@@ -145,13 +145,13 @@
         <van-field
           type="tel"
           v-model="fromData.telephone"
-          label="联系电话"
-          placeholder="请输入联系电话"
+          label="门店联系电话"
+          placeholder="请输入门店联系电话"
           :rules="[
             {
               required: true,
               validator: FSQValidatePhone,
-              message: '请输入联系电话',
+              message: '请输入门店联系电话',
             },
           ]">
           <template #left-icon>
@@ -160,9 +160,9 @@
         </van-field>
         <van-field
           v-model="fromData.salesmanName"
-          label="联系人"
-          placeholder="联系人"
-          :rules="[{ required: true, message: '请输入联系人' }]">
+          label="门店联系人"
+          placeholder="请输入门店联系人"
+          :rules="[{ required: true, message: '请输入门店联系人' }]">
           <template #left-icon>
             <span class="van-f-red">*</span>
           </template>
@@ -194,14 +194,14 @@
         @confirm="onDistrictConfirm"
         @cancel="showDistrictPicker = false" />
     </van-popup>
-    <van-popup v-model="showTownPicker" position="bottom">
+    <!-- <van-popup v-model="showTownPicker" position="bottom">
       <van-picker
         show-toolbar
         title="街道"
         :columns="townList"
         @confirm="onTownConfirm"
         @cancel="showTownPicker = false" />
-    </van-popup>
+    </van-popup> -->
     <!--    部门数据 -->
     <van-popup v-model="showPickerDept" position="bottom">
       <van-picker
@@ -278,7 +278,7 @@ export default {
         addressLine: '',
         orgName: '',
         // chainName: '',
-        townName: '',
+        // townName: '',
         salesmanName: '',
         lat: '',
         lon: '',
@@ -365,7 +365,7 @@ export default {
                   this.getStreetQuery();
                   this.getStreetQuery('1');
                   this.getStreetQuery('2');
-                  this.getStreetQuery('3');
+                  // this.getStreetQuery('3');
                 });
               }
             });
@@ -628,8 +628,8 @@ export default {
       this.fromData.city = '';
       this.fromData.districtName = '';
       this.fromData.countyCode = '';
-      this.fromData.townName = '';
-      this.fromData.townCode = '';
+      // this.fromData.townName = '';
+      // this.fromData.townCode = '';
       this.countyCode = '';
       this.cityCode = '';
       this.provinceCode = value.provinceCode;
@@ -641,8 +641,8 @@ export default {
       this.fromData.city = value.cityCode;
       this.fromData.districtName = '';
       this.fromData.district = '';
-      this.fromData.townName = '';
-      this.fromData.townCode = '';
+      // this.fromData.townName = '';
+      // this.fromData.townCode = '';
       this.countyCode = '';
       this.cityCode = value.cityCode;
       this.getStreetQuery('2');
@@ -651,11 +651,11 @@ export default {
     onDistrictConfirm(value) {
       this.fromData.districtName = value.text;
       this.fromData.district = value.countyCode;
-      this.fromData.townName = '';
-      this.fromData.townCode = '';
+      // this.fromData.townName = '';
+      // this.fromData.townCode = '';
       this.countyCode = value.countyCode;
       this.fromData.cityLevel = value.countyLevel;
-      this.getStreetQuery('3');
+      // this.getStreetQuery('3');
       this.showDistrictPicker = false;
     },
     onTownConfirm(value) {

+ 8 - 1
src/views/week/index.vue

@@ -42,7 +42,11 @@
               <van-icon :name="addShop" class="zicon" />
             </template>
           </van-cell>
-          <van-cell title="新增潜在客户" is-link to="/competingStoresAdd">
+          <van-cell
+            title="新增潜在客户"
+            is-link
+            to="/competingStoresAdd"
+            v-if="postType == 'DIY' && addShow">
             <template #icon>
               <van-icon :name="addShop" class="zicon" />
             </template>
@@ -299,6 +303,7 @@ export default {
       summaryPendingApprovalNum: 0,
       summaryApprovalFeedbackNum: 0,
       reportInfo: null,
+      postType: null,
     };
   },
   watch: {
@@ -307,6 +312,7 @@ export default {
       if (to.path == '/My/index') {
         this.nickName = localStorage.getItem('nickName');
         this.postName = localStorage.getItem('postName');
+        this.postType = localStorage.getItem('postType');
         this.powerGrade = localStorage.getItem('powerGrade');
         this.isDiy = localStorage.getItem('isDiy');
         this.getstoreCoverPosition();
@@ -317,6 +323,7 @@ export default {
   created() {
     this.powerGrade = localStorage.getItem('powerGrade');
     this.postName = localStorage.getItem('postName');
+    this.postType = localStorage.getItem('postType');
     this.isDiy = localStorage.getItem('isDiy');
     this.nickName = localStorage.getItem('nickName');
     this.getstoreCoverPosition();