Browse Source

Merge branch 'feature_20260211_同城分销店-主营竞品品牌' into uat(dev)

zhujindu 2 days ago
parent
commit
1fb07d6f66
2 changed files with 13 additions and 9 deletions
  1. 4 2
      src/views/storeManagement/storeAdd.vue
  2. 9 7
      src/views/storeManagement/storeEdit.vue

+ 4 - 2
src/views/storeManagement/storeAdd.vue

@@ -1890,7 +1890,7 @@ export default {
           this.$toast('主营竞品品牌未填写');
           return;
         }
-        this.activatedStoreCompetitor = this.storeCompetitorList;
+        this.activatedStoreCompetitor = JSON.parse(JSON.stringify(this.storeCompetitorList));
         if (this.otherCompetitor) {
           if (this.otherCompetitor.length < 2) {
             this.$toast('主营竞品品牌其他文本信息最少2个字');
@@ -1899,7 +1899,9 @@ export default {
             this.activatedStoreCompetitor.push(this.otherCompetitor);
           }
         }
-        this.fromValue.storeCompetitorList = this.activatedStoreCompetitor;
+        this.fromValue.storeCompetitorList = JSON.parse(
+          JSON.stringify(this.activatedStoreCompetitor),
+        );
       } else {
         // 非同城分销店 经销商必填校验
         if (

+ 9 - 7
src/views/storeManagement/storeEdit.vue

@@ -1845,7 +1845,7 @@ export default {
         this.verifyStoreType(this.fromValue.storeCategory).type == 'fxd'
       ) {
         // 同城分销多经销商
-        this.fromValue.sfaStoreChainsContactList = this.sfaStoreChainsContactList;
+        fromValue.sfaStoreChainsContactList = this.sfaStoreChainsContactList;
         if (!this.sfaStoreChainsContactList || !this.sfaStoreChainsContactList.length) {
           this.$toast('经销商未填写');
           return;
@@ -1862,7 +1862,9 @@ export default {
           this.$toast('主营竞品品牌未填写');
           return;
         }
-        this.activatedStoreCompetitor = this.fromValue.storeCompetitorList;
+        this.activatedStoreCompetitor = JSON.parse(
+          JSON.stringify(this.fromValue.storeCompetitorList),
+        );
         if (this.fromValue.otherCompetitor) {
           if (this.fromValue.otherCompetitor.length < 2) {
             this.$toast('主营竞品品牌其他文本信息最少2个字');
@@ -1871,7 +1873,7 @@ export default {
             this.activatedStoreCompetitor.push(this.fromValue.otherCompetitor);
           }
         }
-        fromValue.storeCompetitorList = this.activatedStoreCompetitor;
+        fromValue.storeCompetitorList = JSON.parse(JSON.stringify(this.activatedStoreCompetitor));
       } else {
         // 非同城分销店 经销商必填校验
         if (
@@ -1891,10 +1893,10 @@ export default {
         forbidClick: true,
       });
       // 当前定位复制
-      this.fromValue.myLat = this.location.lat;
-      this.fromValue.myLon = this.location.lon;
-      console.log(this.fromValue);
-      updateStore(this.fromValue).then((res) => {
+      fromValue.myLat = this.location.lat;
+      fromValue.myLon = this.location.lon;
+      console.log(fromValue);
+      updateStore(fromValue).then((res) => {
         loading1.clear();
         if (res.code == 200) {
           this.$dialog