|
@@ -1774,7 +1774,7 @@ export default {
|
|
|
this.fromValue.storeCompetitorList = [];
|
|
this.fromValue.storeCompetitorList = [];
|
|
|
}
|
|
}
|
|
|
this.activatedStoreCompetitor = [];
|
|
this.activatedStoreCompetitor = [];
|
|
|
- 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;
|
|
@@ -1825,11 +1825,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 (
|
|
@@ -2058,14 +2054,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;
|