|
@@ -300,11 +300,12 @@ export default defineComponent({
|
|
|
const mobileValidate = ()=>{
|
|
|
isAllowCommit.value = true;
|
|
|
const mobileReg = /^1[3|4|5|6|7|8|9]\d{9}$/;
|
|
|
+ const landlineReg = /[0-9-()()]{7,18}/;
|
|
|
if(!mobileReg.test(formData.dataModel.frMobile)){
|
|
|
message.error("输入的法人电话有误!");
|
|
|
isAllowCommit.value = false;
|
|
|
}
|
|
|
- if(!mobileReg.test(formData.dataModel.fzrMobile)){
|
|
|
+ if (!mobileReg.test(formData.dataModel.fzrMobile) && !landlineReg.test(formData.dataModel.fzrMobile)) {
|
|
|
message.error("输入的负责人电话有误!");
|
|
|
isAllowCommit.value = false;
|
|
|
}
|