校验共同申请人手机号重复标红、证件类型选择身份证后性别改为只读
This commit is contained in:
parent
3ad93dfea8
commit
30efcd0339
@ -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;
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
Loading…
x
Reference in New Issue
Block a user