mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 16:16:45 +08:00
根据出生日期以及证件起始日期计算证件截止日期
根据出生日期以及证件截止日期计算证件起始日期
This commit is contained in:
@@ -901,10 +901,10 @@ export default {
|
|||||||
this.userInfo.workcompany = this.userInfo.workcompany || '无'
|
this.userInfo.workcompany = this.userInfo.workcompany || '无'
|
||||||
}
|
}
|
||||||
if (this.userInfo.certificateValidate && !this.userInfo.certiexpiredate) {
|
if (this.userInfo.certificateValidate && !this.userInfo.certiexpiredate) {
|
||||||
this.userInfo.certiexpiredate = countCredentialValidity.getEndDate(age,this.userInfo.certificateValidate)
|
this.userInfo.certiexpiredate = countCredentialValidity.getEndDate(this.userInfo.birthday,this.userInfo.certificateValidate)
|
||||||
}
|
}
|
||||||
if (this.userInfo.certiexpiredate && !this.userInfo.certificateValidate) {
|
if (this.userInfo.certiexpiredate && !this.userInfo.certificateValidate) {
|
||||||
this.userInfo.certificateValidate = countCredentialValidity.getEndDate(age,this.userInfo.certiexpiredate)
|
this.userInfo.certificateValidate = countCredentialValidity.getEndDate(this.userInfo.birthday,this.userInfo.certiexpiredate)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
|||||||
@@ -1064,7 +1064,7 @@ export default {
|
|||||||
// 长期按钮是否禁用
|
// 长期按钮是否禁用
|
||||||
this.effectiveDateTypeAble = age <= 45
|
this.effectiveDateTypeAble = age <= 45
|
||||||
if(this.userInfo.birthday){
|
if(this.userInfo.birthday){
|
||||||
this.userInfo.certiexpiredate = countCredentialValidity.getEndDate(age,val)
|
this.userInfo.certiexpiredate = countCredentialValidity.getEndDate(this.userInfo.birthday,val)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1093,7 +1093,7 @@ export default {
|
|||||||
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
|
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
|
||||||
console.log(age)
|
console.log(age)
|
||||||
if(this.userInfo.birthday){
|
if(this.userInfo.birthday){
|
||||||
this.userInfo.certificateValidate = countCredentialValidity.getStartDate(age,val)
|
this.userInfo.certificateValidate = countCredentialValidity.getStartDate(this.userInfo.birthday,val)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1124,10 +1124,10 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.userInfo.certificateValidate && !this.userInfo.certiexpiredate) {
|
if (this.userInfo.certificateValidate && !this.userInfo.certiexpiredate) {
|
||||||
this.userInfo.certiexpiredate = countCredentialValidity.getEndDate(age,this.userInfo.certificateValidate)
|
this.userInfo.certiexpiredate = countCredentialValidity.getEndDate(this.userInfo.birthday,this.userInfo.certificateValidate)
|
||||||
}
|
}
|
||||||
if (this.userInfo.certiexpiredate && !this.userInfo.certificateValidate) {
|
if (this.userInfo.certiexpiredate && !this.userInfo.certificateValidate) {
|
||||||
this.userInfo.certificateValidate = countCredentialValidity.getEndDate(age,this.userInfo.certiexpiredate)
|
this.userInfo.certificateValidate = countCredentialValidity.getEndDate(this.userInfo.birthday,this.userInfo.certiexpiredate)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user