风控中台对接-身份证与生日联动
This commit is contained in:
parent
2be5156c94
commit
b467ea8426
@ -72,6 +72,7 @@
|
||||
$("#IDEXPIRY_TYPE_0").prop("checked", "checked");
|
||||
}
|
||||
changeIdexpiryType();
|
||||
birthdayCheck();
|
||||
});
|
||||
|
||||
function changeIdexpiryType(){
|
||||
@ -398,7 +399,28 @@
|
||||
}
|
||||
}
|
||||
checkCertidRepeat();
|
||||
birthdayCheck();
|
||||
}
|
||||
|
||||
function birthdayCheck(){
|
||||
//校验证件类型为身份证或临时身份证时,出生日期是否同证件编号中的日期一致
|
||||
var certID = getItemValue(0,0,"CERTID");
|
||||
var birthday = getItemValue(0,0,"BIRTHDAY");
|
||||
if(""!=birthday){
|
||||
return;
|
||||
}
|
||||
//将身份证中的日期自动赋给出生日期,把身份证中的性别赋给性别
|
||||
if(certID.length == 15){
|
||||
certID = certID.substring(6,12);
|
||||
certID = "19"+certID.substring(0,2)+"/"+certID.substring(2,4)+"/"+certID.substring(4,6);
|
||||
setItemValue(0,0,"BIRTHDAY",certID);
|
||||
}else if(certID.length == 18){
|
||||
certID = certID.substring(6,14);
|
||||
certID = certID.substring(0,4)+"/"+certID.substring(4,6)+"/"+certID.substring(6,8);
|
||||
setItemValue(0,0,"BIRTHDAY",certID);
|
||||
}
|
||||
}
|
||||
|
||||
function checkCertidRepeat(){
|
||||
var certtype = getItemValue(0,getRow(),"CERTTYPE");
|
||||
if("Ind01"==certtype){
|
||||
|
||||
@ -108,7 +108,7 @@
|
||||
$("#IDEXPIRY_TYPE_0").prop("checked", "checked");
|
||||
}
|
||||
changeIdexpiryType();
|
||||
|
||||
birthdayCheck();
|
||||
});
|
||||
|
||||
function changeIdexpiryType(){
|
||||
@ -443,6 +443,25 @@
|
||||
}
|
||||
|
||||
checkCertidRepeat();
|
||||
birthdayCheck();
|
||||
}
|
||||
function birthdayCheck(){
|
||||
var birthday = getItemValue(0,0,"BIRTHDAY");
|
||||
if(""!=birthday){
|
||||
return;
|
||||
}
|
||||
//校验证件类型为身份证或临时身份证时,出生日期是否同证件编号中的日期一致
|
||||
var certID = getItemValue(0,0,"CERTID");
|
||||
//将身份证中的日期自动赋给出生日期,把身份证中的性别赋给性别
|
||||
if(certID.length == 15){
|
||||
certID = certID.substring(6,12);
|
||||
certID = "19"+certID.substring(0,2)+"/"+certID.substring(2,4)+"/"+certID.substring(4,6);
|
||||
setItemValue(0,0,"BIRTHDAY",certID);
|
||||
}else if(certID.length == 18){
|
||||
certID = certID.substring(6,14);
|
||||
certID = certID.substring(0,4)+"/"+certID.substring(4,6)+"/"+certID.substring(6,8);
|
||||
setItemValue(0,0,"BIRTHDAY",certID);
|
||||
}
|
||||
}
|
||||
//选择证件类型后,如果证件号不为空,则去判断性别
|
||||
function checkCertidSex(){
|
||||
|
||||
@ -79,9 +79,26 @@
|
||||
setItemValue(0,0,"Partner_","N");
|
||||
}
|
||||
changePartner();
|
||||
|
||||
birthdayCheck();
|
||||
});
|
||||
|
||||
function birthdayCheck(){
|
||||
var birthday = getItemValue(0,0,"BIRTHDAY");
|
||||
if(""!=birthday){
|
||||
return;
|
||||
}
|
||||
//校验证件类型为身份证或临时身份证时,出生日期是否同证件编号中的日期一致
|
||||
var certID = getItemValue(0,0,"CERTID");
|
||||
//将身份证中的日期自动赋给出生日期,把身份证中的性别赋给性别
|
||||
if(certID.length == 15){
|
||||
certID = certID.substring(6,12);
|
||||
certID = "19"+certID.substring(0,2)+"/"+certID.substring(2,4)+"/"+certID.substring(4,6);
|
||||
setItemValue(0,0,"BIRTHDAY",certID);
|
||||
}else if(certID.length == 18){
|
||||
certID = certID.substring(6,14);
|
||||
certID = certID.substring(0,4)+"/"+certID.substring(4,6)+"/"+certID.substring(6,8);
|
||||
setItemValue(0,0,"BIRTHDAY",certID);
|
||||
}
|
||||
}
|
||||
|
||||
function changeIdexpiryType(){
|
||||
var idexpiry_type = getItemValue(0,0,"IDEXPIRY_TYPE");
|
||||
@ -560,6 +577,7 @@
|
||||
setItemValue(0,getRow(),"SEX","1");
|
||||
}
|
||||
checkCertidRepeat();
|
||||
birthdayCheck();
|
||||
}
|
||||
|
||||
function checkCertidRepeat(){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user