From 3c2896dd30f936e4f6085c0c760bb1aad0b9e658 Mon Sep 17 00:00:00 2001 From: "liu.xiaofeng@ebiz-digits.com" Date: Thu, 13 Jul 2023 10:28:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=95=E4=BF=9D=E6=B5=81=E7=A8=8B=E6=8A=95?= =?UTF-8?q?=E4=BF=9D=E4=BA=BA=E8=A2=AB=E4=BF=9D=E4=BA=BA=E5=8F=97=E7=9B=8A?= =?UTF-8?q?=E4=BA=BA=E8=AF=81=E4=BB=B6=E6=9C=89=E6=95=88=E6=AD=A2=E6=9C=9F?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/sale/AddBeneficiaryInfo.vue | 5 +++++ src/views/ebiz/sale/InsuredInfo.vue | 7 ++++++- src/views/ebiz/sale/InsuredPerson.vue | 5 +++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/views/ebiz/sale/AddBeneficiaryInfo.vue b/src/views/ebiz/sale/AddBeneficiaryInfo.vue index 0d8d9a84b..6754ab461 100644 --- a/src/views/ebiz/sale/AddBeneficiaryInfo.vue +++ b/src/views/ebiz/sale/AddBeneficiaryInfo.vue @@ -958,6 +958,11 @@ export default { } //证件止期 let val = this.userInfo.certiexpiredate + if (Date.parse(val) < Date.parse(new Date())) { + this.userInfo.certiexpiredate = '' + this.$refs.certiexpiredate.date = '' + return this.$toast('您的证件已过期') + } //年龄在16周岁以下 if (age < 16) { if (new Date(val).getFullYear() - new Date(this.userInfo.certificateValidate).getFullYear() != 5) { diff --git a/src/views/ebiz/sale/InsuredInfo.vue b/src/views/ebiz/sale/InsuredInfo.vue index 5eeabe6a2..c3a1a431e 100644 --- a/src/views/ebiz/sale/InsuredInfo.vue +++ b/src/views/ebiz/sale/InsuredInfo.vue @@ -1110,7 +1110,12 @@ export default { //身份证证件类型的判断 //证件止期 - let val = this.userInfo.certiexpiredate + let val = this.userInfo.certiexpiredate + if (Date.parse(val) < Date.parse(new Date())) { + this.userInfo.certiexpiredate = '' + this.$refs.certiexpiredate.date = '' + return this.$toast('您的证件已过期') + } //年龄在16周岁以下 if (age < 16) { if (new Date(val).getFullYear() - new Date(this.userInfo.certificateValidate).getFullYear() != 5) { diff --git a/src/views/ebiz/sale/InsuredPerson.vue b/src/views/ebiz/sale/InsuredPerson.vue index 3a5c33842..02adefe73 100644 --- a/src/views/ebiz/sale/InsuredPerson.vue +++ b/src/views/ebiz/sale/InsuredPerson.vue @@ -1469,6 +1469,11 @@ export default { //证件止期 let val = this.userInfo.certiexpiredate + if (Date.parse(val) < Date.parse(new Date())) { + this.userInfo.certiexpiredate = '' + this.$refs.certiexpiredate.date = '' + return this.$toast('您的证件已过期') + } //年龄在16周岁以下 if (age < 16) { if (new Date(val).getFullYear() - new Date(this.userInfo.certificateValidate).getFullYear() != 5) {