From 7d05f28f2c8748e8f32de7c857d509e897fe6bbc Mon Sep 17 00:00:00 2001 From: "liu.xiaofeng@ebiz-digits.com" Date: Mon, 15 Jan 2024 16:57:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=81=E4=BB=B6=E6=88=AA=E6=AD=A2=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E5=92=8C=E6=98=AF=E5=90=A6=E9=95=BF=E6=9C=9F=E8=81=94?= =?UTF-8?q?=E5=8A=A8=E5=85=B3=E7=B3=BB=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/utils/countCredentialValidity.js | 2 +- src/views/ebiz/sale/AddBeneficiaryInfo.vue | 4 ++++ src/views/ebiz/sale/InsuredInfo.vue | 4 ++++ src/views/ebiz/sale/InsuredPerson.vue | 4 ++++ 4 files changed, 13 insertions(+), 1 deletion(-) 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 + } } } }