From 294d8954c8e2017c474790a5bbe878150afedb20 Mon Sep 17 00:00:00 2001 From: tangfutang Date: Wed, 15 Aug 2018 16:59:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E7=94=B3=E8=AF=B7=E7=B4=A7?= =?UTF-8?q?=E6=80=A5=E8=81=94=E7=B3=BB=E4=BA=BA=E7=94=B5=E8=AF=9D=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Lessee/Person/CustomerCompanyTempInfo.jsp | 4 +-- .../Flow/Comm/LBDebitCard/DebitCardInfo.jsp | 1 + .../BusinessApplication/CustomerInfo.jsp | 33 ++++++++++++++++++- 3 files changed, 35 insertions(+), 3 deletions(-) diff --git a/WebContent/Tenwa/Customer/Lessee/Person/CustomerCompanyTempInfo.jsp b/WebContent/Tenwa/Customer/Lessee/Person/CustomerCompanyTempInfo.jsp index 654450c15..f7c0cb1a4 100644 --- a/WebContent/Tenwa/Customer/Lessee/Person/CustomerCompanyTempInfo.jsp +++ b/WebContent/Tenwa/Customer/Lessee/Person/CustomerCompanyTempInfo.jsp @@ -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",""); diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfo.jsp index 22f34e3da..9dde1ffa7 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfo.jsp @@ -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'));//请选择一条信息! diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp index 0fdcbbc7d..5210ce233 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp @@ -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; + } + } <%@ include file="/Frame/resources/include/include_end.jspf"%>