diff --git a/src/views/ebiz/cardList/information.vue b/src/views/ebiz/cardList/information.vue index 05c1bf089..fd535d4f7 100644 --- a/src/views/ebiz/cardList/information.vue +++ b/src/views/ebiz/cardList/information.vue @@ -1396,23 +1396,23 @@ export default { this.effectiveDateTypeAbleInsured = true this.isInsuredCertiexpiredate = false }else{ + this.isInsuredCertiexpiredate = true // 因为学平险产品 和 少儿卡单 被保人证件类型只有身份证和户口本 所以回显被保人信息时 如果不是身份证和户口本 就隐藏被保人证件类型 if ((this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0049' || this.itemProductDTOS.productCode == 'GFRS_M0050' || this.itemProductDTOS.productCode == 'GFRS_M0052') && data.customerIdType != 1) { this.insuredInfo.idType = '' this.insuredInfo.certiexpiredate = '' this.insuredInfo.effectiveDateType = false; - this.isInsuredCertiexpiredate = true this.effectiveDateTypeAbleInsured = false }else{ - this.insuredInfo.effectiveDateType = false; - this.effectiveDateTypeAbleInsured = false - this.isInsuredCertiexpiredate = true if (data.idEffectEndDate == '9999-01-01') { this.insuredInfo.certiexpiredate = '' this.insuredInfo.effectiveDateType = true //是否长期 + this.effectiveDateTypeAbleInsured = true } else { this.insuredInfo.certiexpiredate = data.idEffectEndDate //证件截止日期 + this.insuredInfo.effectiveDateType = false; + this.effectiveDateTypeAbleInsured = false } } } @@ -1593,6 +1593,8 @@ export default { } } } + let insuredAge = utilsAge.getAge(this.insuredInfo.birthday, new Date()) + console.log('计算年龄', insuredAge) //如果证件类型是身份证 if (this.insuredInfo.idType == '1') { console.log('证件类型是身份证') @@ -1669,8 +1671,6 @@ export default { } } } - let insuredAge = utilsAge.getAge(this.insuredInfo.birthday, new Date()) - console.log('计算年龄', insuredAge) if (this.itemProductDTOS.productCode === 'GFRS_M0022') { // return // 如果是未成年人 @@ -2009,8 +2009,6 @@ export default { //GFRS-2641--被保险人年龄小于20周岁(不含),婚姻状况默认为未婚; if (age < 20) { this.insuredInfo.marriage = '2' - } else { - this.insuredInfo.marriage = '' } } }