|
|
@@ -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
|