From 30efcd033981114092a6e91dafe01ab4a38e4da3 Mon Sep 17 00:00:00 2001 From: tangft <32189@DESKTOP-M6TAG3K> Date: Tue, 11 Dec 2018 10:34:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E5=85=B1=E5=90=8C=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E4=BA=BA=E6=89=8B=E6=9C=BA=E5=8F=B7=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E6=A0=87=E7=BA=A2=E3=80=81=E8=AF=81=E4=BB=B6=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E8=BA=AB=E4=BB=BD=E8=AF=81=E5=90=8E=E6=80=A7?= =?UTF-8?q?=E5=88=AB=E6=94=B9=E4=B8=BA=E5=8F=AA=E8=AF=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CustomerFamilyJoinTempInfo.jsp | 48 ++++++++++++++++--- 1 file changed, 41 insertions(+), 7 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyJoinTempInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyJoinTempInfo.jsp index 6cc7efbc4..afeb5d11c 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyJoinTempInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyJoinTempInfo.jsp @@ -13,6 +13,8 @@ String flowName = CurPage.getParameter("FlowName"); String contractid = CurPage.getParameter("ContractId"); String showtype = CurPage.getParameter("ShowType"); + String sPhaseNo=CurPage.getParameter("PhaseNo"); + String IsHistory = CurPage.getParameter("IsHistory"); if(sPrevUrl == null) sPrevUrl = ""; String falg = "true"; @@ -65,7 +67,18 @@ $("#ASSURE_RELATION").val("配偶"); document.getElementById("ASSURE_RELATION").readOnly=true; } - document.getElementById("SEX").readOnly=true; + if("0030"=="<%=sPhaseNo%>" ||"0040"=="<%=sPhaseNo%>"||"0050"=="<%=sPhaseNo%>"||"0060"=="<%=sPhaseNo%>"|| ("0070"=="<%=sPhaseNo%>" && "false"=="<%=IsHistory%>")){//经销商阶段看不见标红,初审、复审、信审可以标红 + var mobile = getItemValue(0,getRow(),"TEL"); + var mobileResult = checkMobileAll(mobile); + if(mobileResult=="6"){ + //$("#FULLNAME").attr("style","color:red;"); + $("#TEL").css("color","red"); + } + } + var certType = getItemValue(0,getRow(),"CERTTYPE"); + if("Ind01"==certType){ + setItemReadOnly(0,0,"SEX",true); + } }) function setSexRead(){ var certtye=getItemValue(0,getRow(0),"certtype"); @@ -277,13 +290,28 @@ //根据身份证号判断性别 function ValidityCheck(){ var certID = getItemValue(0,getRow(),"CERTID"); - sex = certID.substring(16,17); - sex = parseInt(sex); - if(sex%2==0){//奇男偶女 - setItemValue(0,getRow(),"SEX","2"); - }else{ - setItemValue(0,getRow(),"SEX","1"); + var certType = getItemValue(0,getRow(),"CERTTYPE"); + if("Ind01"==certType){ + if(certID.length==18){ + sex = certID.substring(16,17); + sex = parseInt(sex); + if(sex%2==0){//奇男偶女 + setItemValue(0,getRow(),"SEX","2"); + }else{ + setItemValue(0,getRow(),"SEX","1"); + } + }else if(certID.length==15){ + sex = certID.substring(14,15); + sex = parseInt(sex); + if(sex%2==0){//奇男偶女 + setItemValue(0,getRow(),"SEX","2"); + }else{ + setItemValue(0,getRow(),"SEX","1"); + } + } + setItemReadOnly(0,0,"SEX",true); } + checkCertidRepeat(); } @@ -299,5 +327,11 @@ setErrorTips("CERTID",""); return true; } + + function checkMobileAll(mobile){//检验所有手机号 + var sParams = "mobile="+mobile; + var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkTel",sParams); + return sReturnInfo; + } <%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file