|
@@ -1249,6 +1249,10 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
storeVisit(val) {
|
|
storeVisit(val) {
|
|
|
|
|
+ if (val.visitSource && val.visitSource == 2) {
|
|
|
|
|
+ this.$toast('请先取消异常拜访后再进入正常拜访!');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
localStorage.setItem('tabVal', this.tabVal);
|
|
localStorage.setItem('tabVal', this.tabVal);
|
|
|
localStorage.removeItem('visitId');
|
|
localStorage.removeItem('visitId');
|
|
|
checkVisit({ storeId: val.storeId }).then((res) => {
|
|
checkVisit({ storeId: val.storeId }).then((res) => {
|
|
@@ -1882,7 +1886,7 @@ export default {
|
|
|
message: '定位失败,请开启企微定位权限',
|
|
message: '定位失败,请开启企微定位权限',
|
|
|
})
|
|
})
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
- this.$router.go(-1);
|
|
|
|
|
|
|
+ // this.$router.go(-1);
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
clearInterval(times);
|
|
clearInterval(times);
|