From 00a344d443492e2deb26f3e8dbd4712dd1ecf651 Mon Sep 17 00:00:00 2001 From: liyuetong Date: Mon, 14 Feb 2022 14:15:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=91=E6=8E=8C=E6=A1=82=E5=AD=A6=E5=B9=B3?= =?UTF-8?q?=E9=99=A9=E4=BA=A7=E5=93=81=E6=8C=87=E5=AE=9A=E7=94=9F=E6=95=88?= =?UTF-8?q?=E6=97=A5=E8=A7=84=E5=88=99=E8=B0=83=E6=95=B4=E7=9A=84=E7=94=B3?= =?UTF-8?q?=E8=AF=B7,=E5=AD=A6=E5=B9=B3=E9=99=A9+60=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/cardList/information.vue | 10 +++++++--- src/views/ebiz/sale/InsuredPerson.vue | 12 +++++++----- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/views/ebiz/cardList/information.vue b/src/views/ebiz/cardList/information.vue index ca16a819d..742683d98 100644 --- a/src/views/ebiz/cardList/information.vue +++ b/src/views/ebiz/cardList/information.vue @@ -654,8 +654,7 @@ export default { ], maxDate: beforeDate.getBeforeYear(18), //投保人出生日期可选最大值 insuredMaxDate: beforeDate.getBeforeDays(28), //被保人出生日期可选最大值 - // filterMaxDate: beforeDate.getBeforeYear(-2), - filterMaxDate: afterDate.getAfterDays(60), + filterMaxDate: beforeDate.getBeforeYear(-2), popupShow: false, areaShow: false, //省级联动 homeShow: false, //家庭地址联动 @@ -777,7 +776,10 @@ export default { // } // }) // } + if (this.itemProductDTOS.productCode === 'GFRS_M0048' || this.itemProductDTOS.productCode === 'GFRS_M0049' || this.itemProductDTOS.productCode === 'GFRS_M0050') { + //金掌桂学平险产品指定生效日规则调整的申请,学平险+60 + this.filterMaxDate = afterDate.getAfterDays(60) this.userInfo.relationToInsured = '' this.showField = true let currentTime = dateUtils.formatDate(new Date(), 'yyyy-MM-dd') @@ -2034,8 +2036,10 @@ export default { if (this.insuredInfo.idType == '2' && idToData(this.insuredInfo.idNo).age >= 16) { this.idLimitInsured = false //截止日期是否可编辑--被保人 return this.$toast('客户年龄在16周岁以上,不能使用户口本作为有效证件') + }else if (this.insuredInfo.idType == '2' && idToData(this.insuredInfo.idNo).age < 16) { + this.idLimitInsured = true //截止日期是否可编辑--被保人 }else{ - this.idLimitInsured = true + this.idLimitInsured = false } this.insuredInfo.birthday = idToData(val).birthday // 获取出生日期年份+16,证件类型为户口本时,被保人年龄小于16周岁时,卡单户口本有效止期长期变更为第16周岁日期 diff --git a/src/views/ebiz/sale/InsuredPerson.vue b/src/views/ebiz/sale/InsuredPerson.vue index 9b948efd0..9e66bec27 100644 --- a/src/views/ebiz/sale/InsuredPerson.vue +++ b/src/views/ebiz/sale/InsuredPerson.vue @@ -1852,11 +1852,13 @@ export default { return this.$toast(idToData(val).text) } if (this.userInfo.idType == '2' && idToData(this.userInfo.idNo).age >= 16) { - this.idLimit = false //截止日期是否可编辑--被保人 - return this.$toast('客户年龄在16周岁以上,不能使用户口本作为有效证件') - }else{ - this.idLimit = true - } + this.idLimit = false //截止日期是否可编辑--被保人 + return this.$toast('客户年龄在16周岁以上,不能使用户口本作为有效证件') + }else if (this.userInfo.idType == '2' && idToData(this.userInfo.idNo).age < 16) { + this.idLimit = true //截止日期是否可编辑--被保人 + }else{ + this.idLimit = false + } this.userInfo.effectiveDateType = false this.effectiveDateTypeAble = idToData(val).age <= 45 this.userInfo.birthday = idToData(val).birthday