业务申请,申请人基本信息,校验手机号字段,格式是否正确
This commit is contained in:
parent
c7b7a4c444
commit
46bfbbaee6
@ -297,7 +297,27 @@
|
||||
// }
|
||||
// }
|
||||
|
||||
function checkTel(){
|
||||
var mobile = getItemValue(0,getRow(0),"mobile");
|
||||
if(mobile==""){
|
||||
//setErrorTips("mobile","手机号不能为空!");
|
||||
alert("手机号不能为空!");
|
||||
return false;
|
||||
}
|
||||
if(CheckPhoneCode(mobile)){
|
||||
return true;
|
||||
}else{
|
||||
//setErrorTips("mobile","手机号格式不正确!");
|
||||
alert("手机号格式不正确!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function saveRecord(leasfrom,projectSource){
|
||||
var mobileResult = checkTel();
|
||||
if(mobileResult=="false"){
|
||||
return;
|
||||
}
|
||||
var workTel = getItemValue(0,0,"WORKTEL");
|
||||
var result = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CheckCustomerInfo","CheckWorkTelInfo","workTel="+workTel);
|
||||
if(result=="false"){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user