From be54a64b9d9ebcfa230bdb67e7a4ab1e404b21c4 Mon Sep 17 00:00:00 2001 From: user Date: Tue, 10 Jul 2018 17:43:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E7=84=B6=E4=BA=BA=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=EF=BC=8C=E7=B4=A7=E6=80=A5=E8=81=94=E7=B3=BB=E4=BA=BA1?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=92=8C=E7=B4=A7=E6=80=A5=E8=81=94=E7=B3=BB?= =?UTF-8?q?=E4=BA=BA2=E5=AD=97=E6=AE=B5=E6=B7=BB=E5=8A=A0=E7=BA=A2?= =?UTF-8?q?=E5=AD=97=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BusinessApplication/CustomerInfo.jsp | 32 +++++++++++++++++-- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp index e774596c3..eae6a5c15 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp @@ -93,7 +93,7 @@ setItemValue(0,0,"CERTTYPE","Ind01"); } - function checkName(){ + function checkName(){//校验姓名 var customerType = "03"; var customerName = getItemValue(0,getRow(),"FULLNAME"); //var certId = getItemValue(0,getRow(),"certid"); @@ -103,7 +103,7 @@ return sReturnInfo; } - function checkCertId(){ + function checkCertId(){//校验证件号 var customerType = "03"; //var customerName = getItemValue(0,getRow(),"CustomerName"); var certId = getItemValue(0,getRow(),"CERTID"); @@ -113,7 +113,7 @@ return sReturnInfo; } - function checkMobile(){ + function checkMobile(){//校验手机号 var customerType = "03"; var mobile = getItemValue(0,getRow(),"mobile"); var sParams = "mobile="+mobile+",customerType="+customerType; @@ -121,6 +121,22 @@ return sReturnInfo; } + function checkEmergencyContactTel(){//校验紧急联系人1电话 + var customerType = "03"; + var emergencyTel = getItemValue(0,getRow(),"EMERGENCY_CONTACT_TEL"); + var sParams = "mobile="+emergencyTel+",customerType="+customerType; + var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobile",sParams); + return sReturnInfo; + } + + function checkRemark(){//校验紧急联系人2电话 + var customerType = "03"; + var remark = getItemValue(0,getRow(),"REMARK"); + var sParams = "mobile="+remark+",customerType="+customerType; + var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobile",sParams); + return sReturnInfo; + } + $(document).ready(function(){ // var nameResult = checkName(); @@ -138,6 +154,16 @@ //$("#FULLNAME").attr("style","color:red;"); $("#MOBILE").css("color","red"); } + var EmergencyResult = checkEmergencyContactTel(); + if(EmergencyResult=="6"){ + //$("#FULLNAME").attr("style","color:red;"); + $("#EMERGENCY_CONTACT_TEL").css("color","red"); + } + var remarkResult = checkRemark(); + if(remarkResult=="6"){ + //$("#FULLNAME").attr("style","color:red;"); + $("#REMARK").css("color","red"); + } if("0020"!="<%=sPhaseNo%>"){ $("#ButtonTR").attr("style","display:none;");