|
|
@@ -417,6 +417,22 @@
|
|
|
</van-row>
|
|
|
</van-radio-group>
|
|
|
</div>
|
|
|
+ <!-- 主营竞品品牌 -->
|
|
|
+ <p style="color: #666"><span class="van-f-red">*</span>主营竞品品牌</p>
|
|
|
+ <div style="padding: 4px">
|
|
|
+ <van-radio-group v-model="fromValue.tcfxName" class="typeRadioStore1">
|
|
|
+ <van-row gutter="20">
|
|
|
+ <van-col
|
|
|
+ span="12"
|
|
|
+ v-for="(item, index) in TCFXList"
|
|
|
+ :key="index"
|
|
|
+ style="margin-bottom: 10px"
|
|
|
+ v-if="item.remark == fromValue.storeCategory">
|
|
|
+ <van-radio shape="square" :name="item.dictCode">{{ item.text }}</van-radio>
|
|
|
+ </van-col>
|
|
|
+ </van-row>
|
|
|
+ </van-radio-group>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div v-if="dictTypeAFormShow" style="background-color: #ffffff; padding: 10px">
|
|
|
<p style="color: #666"><span class="van-f-red">*</span>属性</p>
|
|
|
@@ -849,10 +865,12 @@ export default {
|
|
|
sfaStoreChainsContactList: [], //选中确定的经销商
|
|
|
activatedTCFXList: [], //选中的经销商
|
|
|
// addStoreType:null, //新增门店类型,TCFX:同城分销(包括分销店和金牌店);C917:潜在客户;C912:工地
|
|
|
+ storeCompetitorlist: [], //主营竞品品牌
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.getTCFXList();
|
|
|
+ this.getTCompetitiveProduct();
|
|
|
this.getSJSList();
|
|
|
this.getQGJZist();
|
|
|
this.getpotentialCustomerTypeList();
|
|
|
@@ -932,6 +950,7 @@ export default {
|
|
|
});
|
|
|
this.fromValue.salesmanName = localStorage.getItem('nickName');
|
|
|
this.getTCFXList();
|
|
|
+ this.getTCompetitiveProduct();
|
|
|
this.getpotentialCustomerTypeList();
|
|
|
this.getSJSList();
|
|
|
this.getQGJZist();
|
|
|
@@ -973,7 +992,7 @@ export default {
|
|
|
val.location.lat +
|
|
|
',' +
|
|
|
val.location.lng +
|
|
|
- ',1000,0)&page_size=20&page_index=1&orderby=_distance&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6'
|
|
|
+ ',1000,0)&page_size=20&page_index=1&orderby=_distance&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6',
|
|
|
).then((res) => {
|
|
|
that.maplist = res.data;
|
|
|
that.marker.setGeometries([]);
|
|
|
@@ -1001,7 +1020,7 @@ export default {
|
|
|
this.location.lat1 +
|
|
|
',' +
|
|
|
this.location.lon1 +
|
|
|
- '&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6&page_size=20®ion_fix=1'
|
|
|
+ '&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6&page_size=20®ion_fix=1',
|
|
|
).then((res) => {
|
|
|
this.searchSHow = true;
|
|
|
that.mapsearchlist = res.data;
|
|
|
@@ -1015,7 +1034,7 @@ export default {
|
|
|
styleId: 'abc',
|
|
|
position: new TMap.LatLng(
|
|
|
this.maplist[val].location.lat,
|
|
|
- this.maplist[val].location.lng
|
|
|
+ this.maplist[val].location.lng,
|
|
|
),
|
|
|
},
|
|
|
]);
|
|
|
@@ -1035,7 +1054,7 @@ export default {
|
|
|
this.location.lat1 +
|
|
|
',' +
|
|
|
this.location.lon1 +
|
|
|
- ',1000,0)&page_size=10&page_index=1&orderby=_distance&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6'
|
|
|
+ ',1000,0)&page_size=10&page_index=1&orderby=_distance&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6',
|
|
|
).then((res) => {
|
|
|
this.maplist = res.data;
|
|
|
setTimeout(() => {
|
|
|
@@ -1260,7 +1279,7 @@ export default {
|
|
|
} else {
|
|
|
this.$toast.fail('请求超时');
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
);
|
|
|
},
|
|
|
newimgarr1(val) {
|
|
|
@@ -1333,7 +1352,7 @@ export default {
|
|
|
}
|
|
|
if (
|
|
|
res.data.StreetInfoList[j2].countyName.indexOf(
|
|
|
- this.fromValue.districtNameOld + ''
|
|
|
+ this.fromValue.districtNameOld + '',
|
|
|
) != -1
|
|
|
) {
|
|
|
this.fromValue.district = res.data.StreetInfoList[j2].countyCode;
|
|
|
@@ -1507,13 +1526,10 @@ export default {
|
|
|
this.TCFXList = TCFXList;
|
|
|
});
|
|
|
},
|
|
|
- getSJSList() {
|
|
|
- getSJSList({}).then((res) => {
|
|
|
- var SJSList = [];
|
|
|
- for (var t = 0; t < res.data.length; t++) {
|
|
|
- SJSList.push({ text: res.data[t].dictLabel, dictCode: res.data[t].dictValue });
|
|
|
- }
|
|
|
- this.SJSList = SJSList;
|
|
|
+ // 竞品品牌
|
|
|
+ getTCompetitiveProduct() {
|
|
|
+ getDictOption({}, 'main_competitor_brands').then((res) => {
|
|
|
+ this.storeCompetitorlist = res.data;
|
|
|
});
|
|
|
},
|
|
|
getQGJZist() {
|
|
|
@@ -1945,7 +1961,7 @@ export default {
|
|
|
'&marklat=' +
|
|
|
this.mlan +
|
|
|
'&marklon=' +
|
|
|
- this.mlon
|
|
|
+ this.mlon,
|
|
|
);
|
|
|
} else {
|
|
|
this.$dialog
|