|
@@ -973,7 +973,7 @@ export default {
|
|
|
val.location.lat +
|
|
val.location.lat +
|
|
|
',' +
|
|
',' +
|
|
|
val.location.lng +
|
|
val.location.lng +
|
|
|
- ',1000,0)&page_size=20&page_index=1&orderby=_distance&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6'
|
|
|
|
|
|
|
+ ',1000,0)&page_size=20&page_index=1&orderby=_distance&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6',
|
|
|
).then((res) => {
|
|
).then((res) => {
|
|
|
that.maplist = res.data;
|
|
that.maplist = res.data;
|
|
|
that.marker.setGeometries([]);
|
|
that.marker.setGeometries([]);
|
|
@@ -1001,7 +1001,7 @@ export default {
|
|
|
this.location.lat1 +
|
|
this.location.lat1 +
|
|
|
',' +
|
|
',' +
|
|
|
this.location.lon1 +
|
|
this.location.lon1 +
|
|
|
- '&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6&page_size=20®ion_fix=1'
|
|
|
|
|
|
|
+ '&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6&page_size=20®ion_fix=1',
|
|
|
).then((res) => {
|
|
).then((res) => {
|
|
|
this.searchSHow = true;
|
|
this.searchSHow = true;
|
|
|
that.mapsearchlist = res.data;
|
|
that.mapsearchlist = res.data;
|
|
@@ -1015,7 +1015,7 @@ export default {
|
|
|
styleId: 'abc',
|
|
styleId: 'abc',
|
|
|
position: new TMap.LatLng(
|
|
position: new TMap.LatLng(
|
|
|
this.maplist[val].location.lat,
|
|
this.maplist[val].location.lat,
|
|
|
- this.maplist[val].location.lng
|
|
|
|
|
|
|
+ this.maplist[val].location.lng,
|
|
|
),
|
|
),
|
|
|
},
|
|
},
|
|
|
]);
|
|
]);
|
|
@@ -1035,7 +1035,7 @@ export default {
|
|
|
this.location.lat1 +
|
|
this.location.lat1 +
|
|
|
',' +
|
|
',' +
|
|
|
this.location.lon1 +
|
|
this.location.lon1 +
|
|
|
- ',1000,0)&page_size=10&page_index=1&orderby=_distance&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6'
|
|
|
|
|
|
|
+ ',1000,0)&page_size=10&page_index=1&orderby=_distance&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6',
|
|
|
).then((res) => {
|
|
).then((res) => {
|
|
|
this.maplist = res.data;
|
|
this.maplist = res.data;
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -1260,7 +1260,7 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
this.$toast.fail('请求超时');
|
|
this.$toast.fail('请求超时');
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
);
|
|
);
|
|
|
},
|
|
},
|
|
|
newimgarr1(val) {
|
|
newimgarr1(val) {
|
|
@@ -1333,7 +1333,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
if (
|
|
if (
|
|
|
res.data.StreetInfoList[j2].countyName.indexOf(
|
|
res.data.StreetInfoList[j2].countyName.indexOf(
|
|
|
- this.fromValue.districtNameOld + ''
|
|
|
|
|
|
|
+ this.fromValue.districtNameOld + '',
|
|
|
) != -1
|
|
) != -1
|
|
|
) {
|
|
) {
|
|
|
this.fromValue.district = res.data.StreetInfoList[j2].countyCode;
|
|
this.fromValue.district = res.data.StreetInfoList[j2].countyCode;
|
|
@@ -1719,7 +1719,7 @@ export default {
|
|
|
this.fromValue.orderProductStoreList = arrList;
|
|
this.fromValue.orderProductStoreList = arrList;
|
|
|
this.toastLoading(0, '上传中...', true);
|
|
this.toastLoading(0, '上传中...', true);
|
|
|
var fromValue = this.fromValue;
|
|
var fromValue = this.fromValue;
|
|
|
- var telrg = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;
|
|
|
|
|
|
|
+ var telrg = /^1[123456789]\d{9}$/;
|
|
|
if (fromValue.orgId == '') {
|
|
if (fromValue.orgId == '') {
|
|
|
this.$toast('部门未选择');
|
|
this.$toast('部门未选择');
|
|
|
return;
|
|
return;
|
|
@@ -1770,11 +1770,7 @@ export default {
|
|
|
) {
|
|
) {
|
|
|
this.$toast('联系电话未填写');
|
|
this.$toast('联系电话未填写');
|
|
|
return;
|
|
return;
|
|
|
- } else if (
|
|
|
|
|
- !telrg.test(fromValue.telephone) &&
|
|
|
|
|
- fromValue.ifJzStoreType != 1 &&
|
|
|
|
|
- fromValue.storeCategory != 'C917'
|
|
|
|
|
- ) {
|
|
|
|
|
|
|
+ } else if (fromValue.telephone.trim() != '' && !telrg.test(fromValue.telephone)) {
|
|
|
this.$toast('手机号格式错误');
|
|
this.$toast('手机号格式错误');
|
|
|
return;
|
|
return;
|
|
|
} else if (
|
|
} else if (
|
|
@@ -1945,7 +1941,7 @@ export default {
|
|
|
'&marklat=' +
|
|
'&marklat=' +
|
|
|
this.mlan +
|
|
this.mlan +
|
|
|
'&marklon=' +
|
|
'&marklon=' +
|
|
|
- this.mlon
|
|
|
|
|
|
|
+ this.mlon,
|
|
|
);
|
|
);
|
|
|
} else {
|
|
} else {
|
|
|
this.$dialog
|
|
this.$dialog
|
|
@@ -1987,14 +1983,14 @@ export default {
|
|
|
console.log(name, title);
|
|
console.log(name, title);
|
|
|
},
|
|
},
|
|
|
phoneCheck() {
|
|
phoneCheck() {
|
|
|
- if (this.fromValue.ifJzStoreType != 1) {
|
|
|
|
|
- var telrg = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;
|
|
|
|
|
- if (this.fromValue.telephone.trim() == '') {
|
|
|
|
|
- return;
|
|
|
|
|
- } else if (!telrg.test(this.fromValue.telephone)) {
|
|
|
|
|
- this.$toast('手机号格式错误');
|
|
|
|
|
- return;
|
|
|
|
|
- } else {
|
|
|
|
|
|
|
+ var telrg = /^1[123456789]\d{9}$/;
|
|
|
|
|
+ if (this.fromValue.telephone.trim() == '') {
|
|
|
|
|
+ return;
|
|
|
|
|
+ } else if (!telrg.test(this.fromValue.telephone)) {
|
|
|
|
|
+ this.$toast('手机号格式错误');
|
|
|
|
|
+ return;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ if (this.fromValue.ifJzStoreType != 1) {
|
|
|
phoneCheck({ phoneNumber: this.fromValue.telephone }).then((res) => {
|
|
phoneCheck({ phoneNumber: this.fromValue.telephone }).then((res) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
this.phoneNumber = true;
|
|
this.phoneNumber = true;
|