|
|
@@ -705,9 +705,6 @@ export default {
|
|
|
lat = val.lat;
|
|
|
lon = val.lon;
|
|
|
}
|
|
|
- // var location=that.CJ02BD(res.latitude,res.longitude)
|
|
|
- // that.location = location;
|
|
|
- // checkStoreAddressFun(val,res,location)
|
|
|
this.$router.push({
|
|
|
path: '/storeVisitpage',
|
|
|
query: {
|
|
|
@@ -1061,8 +1058,8 @@ export default {
|
|
|
storeId: val.storeId,
|
|
|
lat: location.lat,
|
|
|
lon: location.lon,
|
|
|
- }).then((res) => {
|
|
|
- if (res.code == 200) {
|
|
|
+ }).then((response) => {
|
|
|
+ if (response.code == 200) {
|
|
|
this.$dialog
|
|
|
.alert({
|
|
|
title: '系统提示',
|
|
|
@@ -1075,10 +1072,11 @@ export default {
|
|
|
localStorage.setItem('ORGName', val.deptName);
|
|
|
localStorage.setItem('chainNameR', val.storeName);
|
|
|
} else {
|
|
|
- this.$toast(res.msg);
|
|
|
+ this.$toast(response.msg);
|
|
|
}
|
|
|
});
|
|
|
- });
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
},
|
|
|
// 进入拜访 router.push
|
|
|
toSuishenbangOutstoreVisit(res, val, location, PointSumval) {
|