diff --git a/src/assets/js/utils/countCredentialValidity.js b/src/assets/js/utils/countCredentialValidity.js index 0dc5fd654..2b1aed123 100644 --- a/src/assets/js/utils/countCredentialValidity.js +++ b/src/assets/js/utils/countCredentialValidity.js @@ -141,7 +141,7 @@ export default { * @Description: 年满46周岁的公民申领居民身份证有效期为长期 * @Date: 2023/7/4 **/ - else if (startage > 65) { + else if (startage > 45) { return endDate } }, diff --git a/src/views/ebiz/sale/AddBeneficiaryInfo.vue b/src/views/ebiz/sale/AddBeneficiaryInfo.vue index 3f622e972..dcaa65f4b 100644 --- a/src/views/ebiz/sale/AddBeneficiaryInfo.vue +++ b/src/views/ebiz/sale/AddBeneficiaryInfo.vue @@ -643,6 +643,10 @@ export default { this.effectiveDateTypeAble = age <= 45 if(this.userInfo.birthday){ this.userInfo.certiexpiredate = countCredentialValidity.getEndDate(age,val) + if(this.userInfo.certiexpiredate) { + this.effectiveDateTypeAble = true + this.userInfo.effectiveDateType = false + } } } } diff --git a/src/views/ebiz/sale/InsuredInfo.vue b/src/views/ebiz/sale/InsuredInfo.vue index 2dc4c69b4..4ef134e67 100644 --- a/src/views/ebiz/sale/InsuredInfo.vue +++ b/src/views/ebiz/sale/InsuredInfo.vue @@ -1011,6 +1011,10 @@ this.effectiveDateTypeAble = age <= 45 if(this.userInfo.birthday){ this.userInfo.certiexpiredate = countCredentialValidity.getEndDate(this.userInfo.birthday,val) + if(this.userInfo.certiexpiredate) { + this.effectiveDateTypeAble = true + this.userInfo.effectiveDateType = false + } } } } diff --git a/src/views/ebiz/sale/InsuredPerson.vue b/src/views/ebiz/sale/InsuredPerson.vue index 629f6481a..daaeb74c8 100644 --- a/src/views/ebiz/sale/InsuredPerson.vue +++ b/src/views/ebiz/sale/InsuredPerson.vue @@ -1111,6 +1111,10 @@ this.effectiveDateTypeAble = age <= 45 if(this.userInfo.birthday){ this.userInfo.certiexpiredate = countCredentialValidity.getEndDate(this.userInfo.birthday,val) + if(this.userInfo.certiexpiredate) { + this.effectiveDateTypeAble = true + this.userInfo.effectiveDateType = false + } } } }