From a55f3da28d5a2e4f8985ffd17e720fb76adfa549 Mon Sep 17 00:00:00 2001 From: "li.yuetong" Date: Tue, 26 Jul 2022 17:36:05 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=9B=BD=E5=AF=8C=E6=83=A0=E6=A1=82?= =?UTF-8?q?=E4=BF=9D=E5=9B=A2=E4=BD=93=E5=8C=BB=E7=96=97=E4=BF=9D=E9=99=A9?= =?UTF-8?q?=E4=BA=A7=E5=93=81=E4=B8=8A=E7=BA=BF=E9=87=91=E6=8E=8C=E6=A1=82?= =?UTF-8?q?=E6=8A=95=E4=BF=9D=E5=BC=80=E5=8F=91=E9=9C=80=E6=B1=82=E3=80=91?= =?UTF-8?q?=E5=BD=95=E5=85=A5=E6=8A=95=E8=A2=AB=E4=BF=9D=E4=BA=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E7=95=8C=E9=9D=A2=EF=BC=8C=E9=95=BF=E6=9C=9F=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=9C=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/cardList/GroupAppntInfo.vue | 4 ++++ src/views/ebiz/cardList/GroupInsuredInfo.vue | 20 +++++--------------- src/views/ebiz/cardList/GroupInsuredList.vue | 4 ++-- src/views/ebiz/cardList/information.vue | 8 +++++++- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/views/ebiz/cardList/GroupAppntInfo.vue b/src/views/ebiz/cardList/GroupAppntInfo.vue index a7e19a696..82c27ee79 100644 --- a/src/views/ebiz/cardList/GroupAppntInfo.vue +++ b/src/views/ebiz/cardList/GroupAppntInfo.vue @@ -706,6 +706,7 @@ export default { this.userInfo.effectiveDateType = true //是否长期 } else { this.userInfo.certiexpiredate = data.idEffectEndDate //证件截止日期 + this.userInfo.effectiveDateType = false //是否长期 } this.userInfo.email = data.email //电子邮箱 @@ -938,6 +939,9 @@ export default { } this.userInfo.birthday = idToData(val).birthday this.userInfo.sex = idToData(val).sex + if (idToData(val).age > 45) { + this.effectiveDateTypeAble = false + } } } }, diff --git a/src/views/ebiz/cardList/GroupInsuredInfo.vue b/src/views/ebiz/cardList/GroupInsuredInfo.vue index 49ad658bf..2e48b5015 100644 --- a/src/views/ebiz/cardList/GroupInsuredInfo.vue +++ b/src/views/ebiz/cardList/GroupInsuredInfo.vue @@ -1028,6 +1028,7 @@ export default { this.insuredInfo.certiexpiredate = year +'-'+ this.insuredInfo.birthday.substr(5,5) } } + //户口本 if (data.customerIdType == 2) { this.insuredInfo.effectiveDateType = true this.insuredInfo.certiexpiredate = '9999-01-01' @@ -1041,7 +1042,7 @@ export default { this.effectiveDateTypeAbleInsured = true } else { this.insuredInfo.certiexpiredate = data.idEffectEndDate //证件截止日期 - this.insuredInfo.effectiveDateType = false; + this.insuredInfo.effectiveDateType = false this.effectiveDateTypeAbleInsured = false } } @@ -1507,18 +1508,6 @@ export default { // }, getRelatedData(val, ind) { //ind 1 投保人 2 被保人 - if (ind == '1') { - if (this.userInfo.idType != '1') { - return - } - //如果证件校验不通过,恢复默认值 - if (idToData(val).text) { - ;[this.userInfo.idNo, this.userInfo.sex, this.userInfo.birthday, this.effectiveDateTypeAble] = ['', '0', '', false] - return this.$toast(idToData(val).text) - } - this.userInfo.birthday = idToData(val).birthday - this.userInfo.sex = idToData(val).sex - } if (ind == '2') { if (this.insuredInfo.idType != '1' && this.insuredInfo.idType != '2') { return @@ -1554,8 +1543,6 @@ export default { } } this.insuredInfo.sex = idToData(val).sex - //GFRS-2641-- 被保险人年龄小于18周岁(不含),前端需隐藏手机号码、电子邮箱; - //GFRS-2641--被保险人大于等于18周岁(含),前端需展示手机号码、电子邮箱,且非必填 if (this.insuredInfo.birthday) { let age = utilsAge.getAge(this.insuredInfo.birthday, new Date()) //GFRS-2641--被保险人年龄小于20周岁(不含),婚姻状况默认为未婚; @@ -1563,6 +1550,9 @@ export default { this.insuredInfo.marriage = '2' } } + if (idToData(val).age > 45) { + this.effectiveDateTypeAbleInsured = false + } } } }, diff --git a/src/views/ebiz/cardList/GroupInsuredList.vue b/src/views/ebiz/cardList/GroupInsuredList.vue index 199d0e64c..925547eb2 100644 --- a/src/views/ebiz/cardList/GroupInsuredList.vue +++ b/src/views/ebiz/cardList/GroupInsuredList.vue @@ -16,8 +16,8 @@