业务申请,共同申请人单位电话字段格式校验

This commit is contained in:
user 2018-07-14 11:17:16 +08:00
parent 9bc9e5a75e
commit 1f3d4cdfd8

View File

@ -73,6 +73,22 @@
}
}
function checkSuphone(){//校验单位电话格式和不为空
var suphone = getItemValue(0,getRow(0),"suphone");
if(suphone==""){
//setErrorTips("mobile","手机号不能为空!");
alert("单位电话不能为空!");
return false;
}
if(CheckPhoneCode(suphone)){
return true;
}else{
//setErrorTips("mobile","手机号格式不正确!");
alert("单位电话格式不正确!");
return false;
}
}
function checkTelRepeat(){//校验共同申请人手机号重复
var customerType = "03";
var tel = getItemValue(0,getRow(),"tel");
@ -122,6 +138,10 @@
if(TelResult==false){
return;
}
var SuphoneResult = checkSuphone();
if(SuphoneResult==false){
return;
}
// var ID = getItemValue(0,getRow(0),'ID');
// if("undefined"==ID||""==ID || null==ID){
// AsDebug.showMessage("提示","请选中一条数据!","","",true);