|
|
@@ -1499,40 +1499,41 @@ export default {
|
|
|
sourceLat: location.lat,
|
|
|
positionDesc: '',
|
|
|
accuracy: res.accuracy,
|
|
|
- });
|
|
|
- // 进入拜访之前先刷新页面
|
|
|
- this.pageNum = 1;
|
|
|
- this.list = [];
|
|
|
- this.finished = true;
|
|
|
- if (this.tabVal == 1) {
|
|
|
- this.getUserOutPlaListFun();
|
|
|
- } else {
|
|
|
- this.getUserOrgStoreList();
|
|
|
- }
|
|
|
- this.$router.push({
|
|
|
- path: '/suishenbangOutstoreVisit',
|
|
|
- query: {
|
|
|
- storeId: val.storeId,
|
|
|
- rdId: val.rdId,
|
|
|
- lat: location.lat,
|
|
|
- lon: location.lon,
|
|
|
- visitId: val.visitId,
|
|
|
- pageType: 'out',
|
|
|
- addressLine: val.addressLine,
|
|
|
- storeCategory: val.storeCategory,
|
|
|
- storeName: val.storeName,
|
|
|
- hisTime: val.hisTime,
|
|
|
- contactName: val.contactName,
|
|
|
- storeCode: val.storeCode,
|
|
|
- tabVal: this.tabVal,
|
|
|
- visitModel: '1',
|
|
|
- latNew: location.lat,
|
|
|
- lonNew: location.lon,
|
|
|
- PointSum: PointSumval,
|
|
|
- marklat: res.latitude,
|
|
|
- marklon: res.longitude,
|
|
|
- from: 'outPlan',
|
|
|
- },
|
|
|
+ }).then((response) => {
|
|
|
+ // 进入拜访之前先刷新页面
|
|
|
+ this.pageNum = 1;
|
|
|
+ this.list = [];
|
|
|
+ this.finished = true;
|
|
|
+ if (this.tabVal == 1) {
|
|
|
+ this.getUserOutPlaListFun();
|
|
|
+ } else {
|
|
|
+ this.getUserOrgStoreList();
|
|
|
+ }
|
|
|
+ this.$router.push({
|
|
|
+ path: '/suishenbangOutstoreVisit',
|
|
|
+ query: {
|
|
|
+ storeId: val.storeId,
|
|
|
+ rdId: val.rdId,
|
|
|
+ lat: location.lat,
|
|
|
+ lon: location.lon,
|
|
|
+ visitId: val.visitId,
|
|
|
+ pageType: 'out',
|
|
|
+ addressLine: val.addressLine,
|
|
|
+ storeCategory: val.storeCategory,
|
|
|
+ storeName: val.storeName,
|
|
|
+ hisTime: val.hisTime,
|
|
|
+ contactName: val.contactName,
|
|
|
+ storeCode: val.storeCode,
|
|
|
+ tabVal: this.tabVal,
|
|
|
+ visitModel: '1',
|
|
|
+ latNew: location.lat,
|
|
|
+ lonNew: location.lon,
|
|
|
+ PointSum: PointSumval,
|
|
|
+ marklat: res.latitude,
|
|
|
+ marklon: res.longitude,
|
|
|
+ from: 'outPlan',
|
|
|
+ },
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
projectOutVisit(val) {
|