|
|
@@ -451,6 +451,7 @@
|
|
|
</van-row>
|
|
|
</van-checkbox-group>
|
|
|
<van-field
|
|
|
+ v-if="fromValue.storeCategory != '126565'"
|
|
|
name="otherCompetitor"
|
|
|
class="otherCompetitor"
|
|
|
v-model="fromValue.otherCompetitor"
|
|
|
@@ -890,7 +891,6 @@ export default {
|
|
|
// 授权
|
|
|
getTicketFun(['getLocation', 'chooseImage', 'uploadImage']).then(() => {
|
|
|
this.getTCFXList();
|
|
|
- this.getTCompetitiveProduct();
|
|
|
this.getSJSList();
|
|
|
this.getQGJZist();
|
|
|
this.getDetail();
|
|
|
@@ -1434,6 +1434,7 @@ export default {
|
|
|
} else {
|
|
|
this.$toast.fail(res.msg);
|
|
|
}
|
|
|
+ this.getTCompetitiveProduct();
|
|
|
});
|
|
|
},
|
|
|
newimgarr1(val) {
|
|
|
@@ -1569,7 +1570,11 @@ export default {
|
|
|
},
|
|
|
// 竞品品牌
|
|
|
getTCompetitiveProduct() {
|
|
|
- getDictOption({}, 'main_competitor_brands').then((res) => {
|
|
|
+ let zidian =
|
|
|
+ this.fromValue.storeCategory == '126565'
|
|
|
+ ? 'wj_main_competitor_brands'
|
|
|
+ : 'main_competitor_brands';
|
|
|
+ getDictOption({}, zidian).then((res) => {
|
|
|
this.storeCompetitorlist = res.data;
|
|
|
});
|
|
|
},
|
|
|
@@ -1888,19 +1893,27 @@ export default {
|
|
|
this.$toast('图片未上传');
|
|
|
return;
|
|
|
}
|
|
|
- if (!fromValue.storeCompetitorList.length && !fromValue.otherCompetitor) {
|
|
|
- this.$toast('主营竞品品牌未填写');
|
|
|
- return;
|
|
|
- }
|
|
|
- this.activatedStoreCompetitor = JSON.parse(
|
|
|
- JSON.stringify(this.fromValue.storeCompetitorList),
|
|
|
- );
|
|
|
- if (this.fromValue.otherCompetitor) {
|
|
|
- if (this.fromValue.otherCompetitor.length < 2) {
|
|
|
- this.$toast('主营竞品品牌其他文本信息最少2个字');
|
|
|
+ if (this.fromValue.storeCategory == '126565') {
|
|
|
+ if (!fromValue.storeCompetitorList.length) {
|
|
|
+ this.$toast('主营竞品品牌未填写');
|
|
|
return;
|
|
|
- } else {
|
|
|
- this.activatedStoreCompetitor.push(this.fromValue.otherCompetitor);
|
|
|
+ }
|
|
|
+ this.activatedStoreCompetitor = JSON.parse(JSON.stringify(this.storeCompetitorList));
|
|
|
+ } else {
|
|
|
+ if (!fromValue.storeCompetitorList.length && !fromValue.otherCompetitor) {
|
|
|
+ this.$toast('主营竞品品牌未填写');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.activatedStoreCompetitor = JSON.parse(
|
|
|
+ JSON.stringify(this.fromValue.storeCompetitorList),
|
|
|
+ );
|
|
|
+ if (this.fromValue.otherCompetitor) {
|
|
|
+ if (this.fromValue.otherCompetitor.length < 2) {
|
|
|
+ this.$toast('主营竞品品牌其他文本信息最少2个字');
|
|
|
+ return;
|
|
|
+ } else {
|
|
|
+ this.activatedStoreCompetitor.push(this.fromValue.otherCompetitor);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
fromValue.storeCompetitorList = JSON.parse(JSON.stringify(this.activatedStoreCompetitor));
|