mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-07 05:26:43 +08:00
卡单证件有效期计算增加与当前日期对比的逻辑
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user