业务申请紧急联系人电话校验

This commit is contained in:
tangfutang 2018-08-15 16:59:38 +08:00
parent 881cad3cc2
commit 294d8954c8
3 changed files with 35 additions and 3 deletions

View File

@ -128,8 +128,8 @@
function changecompany_tel(){//叫駱무鱇미땍든뺐
var company_tel = getItemValue(0,getRow(0),"company_tel");
if(company_tel==""){
setErrorTips("company_tel","公司固定电话不能为空!");
return false;
setErrorTips("company_tel","");
return true;
}
if(CheckPhoneCode(company_tel)){
setErrorTips("company_tel","");

View File

@ -58,6 +58,7 @@
param1 = "selectAccountByCusts";
param2 = "flowunid,<%=FlowUnid%>";
}
param2=param2+",customerType,"+"<%=CustomerType%>";
AsDialog.OpenSelector(param1,param2,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
alert(getHtmlMessage('1'));//请选择一条信息!

View File

@ -436,6 +436,8 @@
ValidityCheck();
setItemValue(0,0,"flowunid","<%=flowunid%>");
if(!checkCertInfo(true)) return ;
if(!checkEmergencyContactTel(true)) return ;
if(!checkREMARK(true)) return ;
if(frame_list.window.save()){
var certid=getItemValue(0,0,"CERTID");
<%-- var customerid=RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerAction","updateCustomerId",'certid='+certid+',flowunid=<%=flowunid%>'); --%>
@ -688,7 +690,36 @@
return re.test(value);
}
function checkEmergencyContactTel(){//校验紧急联系人1的电话格式
var mobile = getItemValue(0,getRow(0),"EMERGENCY_CONTACT_TEL");
if(mobile==""){
setErrorTips("EMERGENCY_CONTACT_TEL","电话不能为空!");
return false;
}
var phone = /^[1][3,4,5,7,8][0-9]{9}$/;
if(phone.test(mobile)){
setErrorTips("EMERGENCY_CONTACT_TEL","");
return true;
}else{
setErrorTips("EMERGENCY_CONTACT_TEL","电话格式不正确!");
return false;
}
}
function checkREMARK(){//校验紧急联系人2的电话格式
var mobile = getItemValue(0,getRow(0),"REMARK");
if(mobile==""){
setErrorTips("REMARK","电话不能为空!");
return false;
}
var phone = /^[1][3,4,5,7,8][0-9]{9}$/;
if(phone.test(mobile)){
setErrorTips("REMARK","");
return true;
}else{
setErrorTips("REMARK","电话格式不正确!");
return false;
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>