|
|
@@ -359,7 +359,7 @@
|
|
|
<van-col
|
|
|
span="5"
|
|
|
v-if="item.stateString != '已拜访' && customerVisits"
|
|
|
- @click="storeVisit(item, 'SEO')">
|
|
|
+ @click="storeVisit(item)">
|
|
|
<img :src="call" style="margin: 0 auto; height: 18px; display: block" />
|
|
|
<p style="text-align: center; margin: 0; font-size: 12px">拜访速度优化</p>
|
|
|
</van-col>
|
|
|
@@ -1202,8 +1202,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- storeVisit(val, isSEO) {
|
|
|
- let path = isSEO ? '/suishenbangOutstoreVisitSEO' : '/suishenbangOutstoreVisit';
|
|
|
+ storeVisit(val) {
|
|
|
localStorage.setItem('tabVal', this.tabVal);
|
|
|
localStorage.removeItem('visitId');
|
|
|
checkVisit({ storeId: val.storeId }).then((res) => {
|
|
|
@@ -1236,7 +1235,7 @@ export default {
|
|
|
lon = val.lon;
|
|
|
}
|
|
|
this.$router.push({
|
|
|
- path: path,
|
|
|
+ path: '/suishenbangOutstoreVisit',
|
|
|
query: {
|
|
|
storeId: val.storeId,
|
|
|
rdId: val.rdId,
|
|
|
@@ -1276,7 +1275,7 @@ export default {
|
|
|
localStorage.setItem('ORGName', val.deptName);
|
|
|
localStorage.setItem('chainNameR', val.storeName);
|
|
|
that.$router.push({
|
|
|
- path: path,
|
|
|
+ path: '/suishenbangOutstoreVisit',
|
|
|
query: {
|
|
|
storeId: val.storeId,
|
|
|
rdId: val.rdId,
|
|
|
@@ -1309,7 +1308,7 @@ export default {
|
|
|
localStorage.setItem('lat', this.lat);
|
|
|
localStorage.setItem('lon', this.lon);
|
|
|
// var location = this.CJ02BD(res.latitude, res.longitude);
|
|
|
- this.checkStoreAddressByStoreCodeFun(val, TXisBD, resData, isSEO);
|
|
|
+ this.checkStoreAddressByStoreCodeFun(val, TXisBD, resData);
|
|
|
})
|
|
|
.catch((error) => {
|
|
|
this.$dialog.alert({
|
|
|
@@ -1326,7 +1325,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- checkStoreAddressByStoreCodeFun(val, location, res, isSEO) {
|
|
|
+ checkStoreAddressByStoreCodeFun(val, location, res) {
|
|
|
checkStoreAddressByStoreCode({
|
|
|
storeCode: val.storeCode,
|
|
|
lon: location.lon,
|
|
|
@@ -1406,7 +1405,7 @@ export default {
|
|
|
}
|
|
|
} else {
|
|
|
// 门店编码校验门店地址通过 进入拜访
|
|
|
- this.toSuishenbangOutstoreVisit(res, val, location, PointSumval, isSEO);
|
|
|
+ this.toSuishenbangOutstoreVisit(res, val, location, PointSumval);
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -1445,8 +1444,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
// 进入拜访 router.push
|
|
|
- toSuishenbangOutstoreVisit(res, val, location, PointSumval, isSEO) {
|
|
|
- let path = isSEO ? '/suishenbangOutstoreVisitSEO' : '/suishenbangOutstoreVisit';
|
|
|
+ toSuishenbangOutstoreVisit(res, val, location, PointSumval) {
|
|
|
addVisitsPosition({
|
|
|
storeId: val.storeId,
|
|
|
visitsId: '',
|
|
|
@@ -1458,7 +1456,7 @@ export default {
|
|
|
accuracy: res.accuracy,
|
|
|
});
|
|
|
this.$router.push({
|
|
|
- path: path,
|
|
|
+ path: '/suishenbangOutstoreVisit',
|
|
|
query: {
|
|
|
storeId: val.storeId,
|
|
|
rdId: val.rdId,
|