卡单证件有效期计算增加与当前日期对比的逻辑

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2024-02-23 14:02:11 +08:00
parent 8974bf9e14
commit fd8f17a18f

View File

@@ -188,17 +188,17 @@ export function idNoCheck8(userInfo,type) {
let thisAge2 = utilsAge.getAge(userInfo.birthday, new Date(date8.replace(/-/g,'/')))
if(thisAge1 >= 18 && thisAge2 < 18){
return {
text: '外国人永久居留身份证证件有效期有误1'
text: '外国人永久居留身份证证件有效期有误'
}
}
if(date3 > new Date().getTime()) {
if(thisAge1 < 18 && date3 > new Date().getTime()) {
return {
text: '外国人永久居留身份证证件有效期有误2'
text: '外国人永久居留身份证证件有效期有误'
}
}
if(date7 > new Date().getTime()) {
if(thisAge2 >= 18 &&date7 > new Date().getTime()) {
return {
text: '外国人永久居留身份证证件有效期有误3'
text: '外国人永久居留身份证证件有效期有误'
}
}
}