客户列表选择时,已婚状态不展示--提交人:白金岩

This commit is contained in:
bai.jinyan
2021-08-26 16:17:00 +08:00
parent d4091d64f6
commit d4586ceb25

View File

@@ -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 = ''
}
}
}