From 0ee6ff4bd1326d70e03e7e40f73bf0800629ba8d Mon Sep 17 00:00:00 2001 From: "dong.ai" Date: Thu, 10 Oct 2024 14:12:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=95=E4=BF=9D=E4=BA=BA?= =?UTF-8?q?=E8=A2=AB=E4=BF=9D=E4=BA=BA=E8=AF=81=E4=BB=B6=E6=9C=89=E6=95=88?= =?UTF-8?q?=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/sale/InsuredInfo.vue | 12 +++++++----- src/views/ebiz/sale/InsuredPerson.vue | 9 +++++---- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/views/ebiz/sale/InsuredInfo.vue b/src/views/ebiz/sale/InsuredInfo.vue index a6ae62812..1cd16bc3c 100644 --- a/src/views/ebiz/sale/InsuredInfo.vue +++ b/src/views/ebiz/sale/InsuredInfo.vue @@ -993,6 +993,7 @@ }, //证件起始截止日期 onDateConfirm(val, type) { + console.log(val,type,); switch (type) { case '0': { @@ -1009,9 +1010,10 @@ let age = utilsAge.getAge(this.userInfo.birthday, new Date()) // 长期按钮是否禁用 this.effectiveDateTypeAble = age <= 45 - if(this.userInfo.birthday){ + if(this.userInfo.birthday && !this.userInfo.certiexpiredate){ this.userInfo.certiexpiredate = countCredentialValidity.getEndDate(this.userInfo.birthday,val) if(this.userInfo.certiexpiredate) { + this.userInfo.certiexpiredate= this.userInfo.certiexpiredate this.effectiveDateTypeAble = true this.userInfo.effectiveDateType = false } @@ -1030,9 +1032,9 @@ } //身份证证件类型的判断 if (this.userInfo.idType == '1') { - if(this.userInfo.birthday){ - this.userInfo.certificateValidate = countCredentialValidity.getStartDate(this.userInfo.birthday,val) - } + // if(this.userInfo.birthday){ + // this.userInfo.certificateValidate = countCredentialValidity.getStartDate(this.userInfo.birthday,val) + // } } } break @@ -1057,7 +1059,7 @@ if (this.userInfo.certificateValidate && !this.userInfo.certiexpiredate) { 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(this.userInfo.birthday,this.userInfo.certiexpiredate) } } diff --git a/src/views/ebiz/sale/InsuredPerson.vue b/src/views/ebiz/sale/InsuredPerson.vue index ab6dd1ae7..52bdda47d 100644 --- a/src/views/ebiz/sale/InsuredPerson.vue +++ b/src/views/ebiz/sale/InsuredPerson.vue @@ -1109,9 +1109,10 @@ let age = utilsAge.getAge(this.userInfo.birthday, new Date()) // 长期按钮是否禁用 this.effectiveDateTypeAble = age <= 45 - if(this.userInfo.birthday){ + if(this.userInfo.birthday && !this.userInfo.certiexpiredate){ this.userInfo.certiexpiredate = countCredentialValidity.getEndDate(this.userInfo.birthday,val) if(this.userInfo.certiexpiredate) { + this.userInfo.certiexpiredate= this.userInfo.certiexpiredate this.effectiveDateTypeAble = true this.userInfo.effectiveDateType = false } @@ -1142,9 +1143,9 @@ //获取年龄 let age = utilsAge.getAge(this.userInfo.birthday, new Date()) console.log(age) - if(this.userInfo.birthday){ - this.userInfo.certificateValidate = countCredentialValidity.getStartDate(this.userInfo.birthday,val) - } + // if(this.userInfo.birthday){ + // this.userInfo.certificateValidate = countCredentialValidity.getStartDate(this.userInfo.birthday,val) + // } } } break