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

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2024-02-23 13:59:07 +08:00
parent 77ebee1efe
commit 8974bf9e14

View File

@@ -167,6 +167,11 @@ export function idNoCheck8(userInfo,type) {
text: '外国人永久居留身份证证件有效期有误'
}
}
if(date3 > new Date().getTime()) {
return {
text: '外国人永久居留身份证证件有效期有误'
}
}
}
if(thisAge >= 18 && thisAge <= 22) {
let date1 = new Date(userInfo.certiexpiredate.replace(/-/g,'/'));
@@ -183,7 +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: '外国人永久居留身份证证件有效期有误'
text: '外国人永久居留身份证证件有效期有误1'
}
}
if(date3 > new Date().getTime()) {
return {
text: '外国人永久居留身份证证件有效期有误2'
}
}
if(date7 > new Date().getTime()) {
return {
text: '外国人永久居留身份证证件有效期有误3'
}
}
}
@@ -198,6 +213,11 @@ export function idNoCheck8(userInfo,type) {
text: '外国人永久居留身份证证件有效期有误'
}
}
if(date3 > new Date().getTime()) {
return {
text: '外国人永久居留身份证证件有效期有误'
}
}
}
} else {
let thisAge = utilsAge.getAge(userInfo.birthday, new Date(userInfo.certificateValidate))