|
@@ -935,7 +935,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
activated() {
|
|
activated() {
|
|
|
this.tabVal = 'insidePlan';
|
|
this.tabVal = 'insidePlan';
|
|
|
- // this.beforeAddFn();
|
|
|
|
|
|
|
+ this.beforeAddFn();
|
|
|
// 授权
|
|
// 授权
|
|
|
getTicketFun(['getLocation', 'chooseImage', 'uploadImage']).then(() => {
|
|
getTicketFun(['getLocation', 'chooseImage', 'uploadImage']).then(() => {
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
@@ -1829,20 +1829,32 @@ export default {
|
|
|
this.$toast('经销商未填写');
|
|
this.$toast('经销商未填写');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- // if (
|
|
|
|
|
- // fromValue.imgSed == '' &&
|
|
|
|
|
- // fromValue.ifJzStoreType != 1 &&
|
|
|
|
|
- // this.storeTypePOP &&
|
|
|
|
|
- // fromValue.storeCategory != 'C917'
|
|
|
|
|
- // ) {
|
|
|
|
|
- // this.$toast('图片未上传');
|
|
|
|
|
- // return;
|
|
|
|
|
- // }
|
|
|
|
|
}
|
|
}
|
|
|
if (this.GZAttributeFormShow && fromValue.potentialCustomerType == '') {
|
|
if (this.GZAttributeFormShow && fromValue.potentialCustomerType == '') {
|
|
|
this.$toast('潜在客户类型未填写');
|
|
this.$toast('潜在客户类型未填写');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
+ // 同城分销建店添加去下单提示
|
|
|
|
|
+ if (
|
|
|
|
|
+ this.verifyStoreType(this.fromValue.storeCategory) &&
|
|
|
|
|
+ this.verifyStoreType(this.fromValue.storeCategory).type == 'fxd'
|
|
|
|
|
+ ) {
|
|
|
|
|
+ this.$dialog
|
|
|
|
|
+ .confirm({
|
|
|
|
|
+ title: '系统提示',
|
|
|
|
|
+ message: `该门店类型为<span style="color:red">同城分销店</span>,<br/>首笔订单最低金额:<span style="color:red">1000元</span>`,
|
|
|
|
|
+ confirmButtonText: '去下单',
|
|
|
|
|
+ cancelButtonText: '修改门店信息',
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(() => {
|
|
|
|
|
+ this.addStoreFun();
|
|
|
|
|
+ });
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.addStoreFun();
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ // 添加门店
|
|
|
|
|
+ addStoreFun() {
|
|
|
addStore(this.fromValue).then((res) => {
|
|
addStore(this.fromValue).then((res) => {
|
|
|
loading1.clear();
|
|
loading1.clear();
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
@@ -1855,7 +1867,7 @@ export default {
|
|
|
) {
|
|
) {
|
|
|
window.location.replace(res.data.orderUrl);
|
|
window.location.replace(res.data.orderUrl);
|
|
|
} else {
|
|
} else {
|
|
|
- that.$dialog
|
|
|
|
|
|
|
+ this.$dialog
|
|
|
.confirm({
|
|
.confirm({
|
|
|
title: '系统提示',
|
|
title: '系统提示',
|
|
|
message: '建店成功,是否立即拜访?',
|
|
message: '建店成功,是否立即拜访?',
|
|
@@ -1876,42 +1888,42 @@ export default {
|
|
|
'/mobile/suishenbangOutstoreVisit?PointSum=0&visitModel=1&tabVal=1&hisTime=null&pageType=out&visitId=null&rdId=null&storeId=' +
|
|
'/mobile/suishenbangOutstoreVisit?PointSum=0&visitModel=1&tabVal=1&hisTime=null&pageType=out&visitId=null&rdId=null&storeId=' +
|
|
|
res.data.sfaStore.storeId +
|
|
res.data.sfaStore.storeId +
|
|
|
'&lat=' +
|
|
'&lat=' +
|
|
|
- that.fromValue.lat +
|
|
|
|
|
|
|
+ this.fromValue.lat +
|
|
|
'&lon=' +
|
|
'&lon=' +
|
|
|
- that.fromValue.lon +
|
|
|
|
|
|
|
+ this.fromValue.lon +
|
|
|
'&addressLine=' +
|
|
'&addressLine=' +
|
|
|
- that.fromValue.addressLine +
|
|
|
|
|
|
|
+ this.fromValue.addressLine +
|
|
|
'&storeCategory=' +
|
|
'&storeCategory=' +
|
|
|
res.data.sfaStore.storeCategory +
|
|
res.data.sfaStore.storeCategory +
|
|
|
'&storeName=' +
|
|
'&storeName=' +
|
|
|
- that.fromValue.storeName +
|
|
|
|
|
|
|
+ this.fromValue.storeName +
|
|
|
'&contactName=' +
|
|
'&contactName=' +
|
|
|
- that.fromValue.contactName +
|
|
|
|
|
|
|
+ this.fromValue.contactName +
|
|
|
'&storeCode=' +
|
|
'&storeCode=' +
|
|
|
res.data.sfaStore.storeCode +
|
|
res.data.sfaStore.storeCode +
|
|
|
'&latNew=' +
|
|
'&latNew=' +
|
|
|
- that.fromValue.lat +
|
|
|
|
|
|
|
+ this.fromValue.lat +
|
|
|
'&lonNew=' +
|
|
'&lonNew=' +
|
|
|
- that.fromValue.lon +
|
|
|
|
|
|
|
+ this.fromValue.lon +
|
|
|
'&marklat=' +
|
|
'&marklat=' +
|
|
|
- that.mlan +
|
|
|
|
|
|
|
+ this.mlan +
|
|
|
'&marklon=' +
|
|
'&marklon=' +
|
|
|
- that.mlon
|
|
|
|
|
|
|
+ this.mlon
|
|
|
);
|
|
);
|
|
|
} else {
|
|
} else {
|
|
|
- that.$dialog
|
|
|
|
|
|
|
+ this.$dialog
|
|
|
.alert({
|
|
.alert({
|
|
|
title: '系统提示',
|
|
title: '系统提示',
|
|
|
message: response.msg,
|
|
message: response.msg,
|
|
|
})
|
|
})
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
- that.$router.go(-1);
|
|
|
|
|
|
|
+ this.$router.go(-1);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
})
|
|
})
|
|
|
.catch(() => {
|
|
.catch(() => {
|
|
|
- that.$router.go(-1);
|
|
|
|
|
|
|
+ this.$router.go(-1);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|