|
|
@@ -1454,7 +1454,7 @@ export default {
|
|
|
location.lon
|
|
|
).toFixed(2);
|
|
|
// GZ:工装店铺 直接进入拜访
|
|
|
- if (localStorage.getItem('postType') == 'GZ') {
|
|
|
+ if (localStorage.getItem('postType') == 'GZ' || /^FSQ/.test(val.storeCode)) {
|
|
|
localStorage.setItem('startTime', new Date());
|
|
|
localStorage.setItem('ORGName', val.deptName);
|
|
|
localStorage.setItem('chainNameR', val.storeName);
|
|
|
@@ -1977,44 +1977,11 @@ export default {
|
|
|
let PointSum = that
|
|
|
.twoPointSum(that.lat, that.lon, location.lat, location.lon)
|
|
|
.toFixed(2);
|
|
|
-
|
|
|
- if (PointSum > 500 && localStorage.getItem('postType') != 'GZ') {
|
|
|
- that.$dialog
|
|
|
- .confirm({
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- title: '系统提示',
|
|
|
- message: '定位距离偏差大',
|
|
|
- closeOnClickOverlay: true,
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- that.$router.push({
|
|
|
- path: '/outabnormalVisit',
|
|
|
- query: {
|
|
|
- storeId: val.storeId,
|
|
|
- rdId: val.rdId,
|
|
|
- lat: that.lat,
|
|
|
- lon: that.lon,
|
|
|
- visitId: val.visitId,
|
|
|
- pageType: 'out',
|
|
|
- visitModel: '5',
|
|
|
- storeCode: val.storeCode,
|
|
|
- tabVal: that.tabVal,
|
|
|
- latNew: location.lat,
|
|
|
- lonNew: location.lon,
|
|
|
- PointSum: PointSum,
|
|
|
- marklat: res.latitude,
|
|
|
- marklon: res.longitude,
|
|
|
- },
|
|
|
- });
|
|
|
- localStorage.setItem('startTime', new Date());
|
|
|
- localStorage.setItem('ORGName', val.deptName);
|
|
|
- localStorage.setItem('chainNameR', val.storeName);
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- // that.abnormalVisit(val)
|
|
|
- });
|
|
|
- } else {
|
|
|
+ // 工装和仿石漆不用校验定位
|
|
|
+ if (
|
|
|
+ localStorage.getItem('postType') == 'GZ' ||
|
|
|
+ /^FSQ/.test(val.storeCode)
|
|
|
+ ) {
|
|
|
that.$router.push({
|
|
|
path: '/outabnormalVisit',
|
|
|
query: {
|
|
|
@@ -2037,6 +2004,44 @@ export default {
|
|
|
localStorage.setItem('startTime', new Date());
|
|
|
localStorage.setItem('ORGName', val.deptName);
|
|
|
localStorage.setItem('chainNameR', val.storeName);
|
|
|
+ } else {
|
|
|
+ if (PointSum > 500) {
|
|
|
+ that.$dialog
|
|
|
+ .confirm({
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ title: '系统提示',
|
|
|
+ message: '定位距离偏差大',
|
|
|
+ closeOnClickOverlay: true,
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ that.$router.push({
|
|
|
+ path: '/outabnormalVisit',
|
|
|
+ query: {
|
|
|
+ storeId: val.storeId,
|
|
|
+ rdId: val.rdId,
|
|
|
+ lat: that.lat,
|
|
|
+ lon: that.lon,
|
|
|
+ visitId: val.visitId,
|
|
|
+ pageType: 'out',
|
|
|
+ visitModel: '5',
|
|
|
+ storeCode: val.storeCode,
|
|
|
+ tabVal: that.tabVal,
|
|
|
+ latNew: location.lat,
|
|
|
+ lonNew: location.lon,
|
|
|
+ PointSum: PointSum,
|
|
|
+ marklat: res.latitude,
|
|
|
+ marklon: res.longitude,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ localStorage.setItem('startTime', new Date());
|
|
|
+ localStorage.setItem('ORGName', val.deptName);
|
|
|
+ localStorage.setItem('chainNameR', val.storeName);
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ // that.abnormalVisit(val)
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
addVisitsPosition({
|
|
|
storeId: val.storeId,
|