|
@@ -513,6 +513,7 @@
|
|
|
</van-row>
|
|
</van-row>
|
|
|
</van-checkbox-group>
|
|
</van-checkbox-group>
|
|
|
<van-field
|
|
<van-field
|
|
|
|
|
+ v-if="fromValue.storeCategory != '126565'"
|
|
|
class="otherCompetitor"
|
|
class="otherCompetitor"
|
|
|
v-model="otherCompetitor"
|
|
v-model="otherCompetitor"
|
|
|
label="其他"
|
|
label="其他"
|
|
@@ -1335,6 +1336,7 @@ export default {
|
|
|
if (value.text.indexOf('BMD') == -1) {
|
|
if (value.text.indexOf('BMD') == -1) {
|
|
|
this.displayImg = [];
|
|
this.displayImg = [];
|
|
|
}
|
|
}
|
|
|
|
|
+ this.getTCompetitiveProduct();
|
|
|
},
|
|
},
|
|
|
setStoreNameFn() {
|
|
setStoreNameFn() {
|
|
|
if (this.fromValue.storeName.trim() == '') {
|
|
if (this.fromValue.storeName.trim() == '') {
|
|
@@ -1672,7 +1674,12 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 竞品品牌
|
|
// 竞品品牌
|
|
|
getTCompetitiveProduct() {
|
|
getTCompetitiveProduct() {
|
|
|
- getDictOption({}, 'main_competitor_brands').then((res) => {
|
|
|
|
|
|
|
+ this.storeCompetitorList = [];
|
|
|
|
|
+ let zidian =
|
|
|
|
|
+ this.fromValue.storeCategory == '126565'
|
|
|
|
|
+ ? 'wj_main_competitor_brands'
|
|
|
|
|
+ : 'main_competitor_brands';
|
|
|
|
|
+ getDictOption({}, zidian).then((res) => {
|
|
|
this.storeCompetitorlist = res.data;
|
|
this.storeCompetitorlist = res.data;
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
@@ -1836,6 +1843,7 @@ export default {
|
|
|
this.activatedTCFXList = []; //选中的经销商
|
|
this.activatedTCFXList = []; //选中的经销商
|
|
|
this.fromValue.img == ''; // 清空上传的门店照
|
|
this.fromValue.img == ''; // 清空上传的门店照
|
|
|
this.showPicker = false;
|
|
this.showPicker = false;
|
|
|
|
|
+ this.getTCompetitiveProduct();
|
|
|
},
|
|
},
|
|
|
numberFn() {
|
|
numberFn() {
|
|
|
if (Number(this.fromValue.area) < 0) {
|
|
if (Number(this.fromValue.area) < 0) {
|
|
@@ -2007,17 +2015,25 @@ export default {
|
|
|
this.$toast('属性未填写');
|
|
this.$toast('属性未填写');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- if (!this.storeCompetitorList.length && !this.otherCompetitor) {
|
|
|
|
|
- this.$toast('主营竞品品牌未填写');
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- this.activatedStoreCompetitor = JSON.parse(JSON.stringify(this.storeCompetitorList));
|
|
|
|
|
- if (this.otherCompetitor) {
|
|
|
|
|
- if (this.otherCompetitor.length < 2) {
|
|
|
|
|
- this.$toast('主营竞品品牌其他文本信息最少2个字');
|
|
|
|
|
|
|
+ if (this.fromValue.storeCategory == '126565') {
|
|
|
|
|
+ if (!this.storeCompetitorList.length) {
|
|
|
|
|
+ this.$toast('主营竞品品牌未填写');
|
|
|
return;
|
|
return;
|
|
|
- } else {
|
|
|
|
|
- this.activatedStoreCompetitor.push(this.otherCompetitor);
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ this.activatedStoreCompetitor = JSON.parse(JSON.stringify(this.storeCompetitorList));
|
|
|
|
|
+ } else {
|
|
|
|
|
+ if (!this.storeCompetitorList.length && !this.otherCompetitor) {
|
|
|
|
|
+ this.$toast('主营竞品品牌未填写');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ this.activatedStoreCompetitor = JSON.parse(JSON.stringify(this.storeCompetitorList));
|
|
|
|
|
+ if (this.otherCompetitor) {
|
|
|
|
|
+ if (this.otherCompetitor.length < 2) {
|
|
|
|
|
+ this.$toast('主营竞品品牌其他文本信息最少2个字');
|
|
|
|
|
+ return;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.activatedStoreCompetitor.push(this.otherCompetitor);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
this.fromValue.storeCompetitorList = JSON.parse(
|
|
this.fromValue.storeCompetitorList = JSON.parse(
|