被保险人职业:幼儿园版默认学龄前儿童; 2099908 学龄前儿童

This commit is contained in:
liyuetong
2021-08-20 16:06:31 +08:00
parent a70bab7345
commit db0e4a0b68

View File

@@ -1866,6 +1866,15 @@ export default {
} }
this.insuredInfo.birthday = idToData(val).birthday this.insuredInfo.birthday = idToData(val).birthday
this.insuredInfo.sex = idToData(val).sex this.insuredInfo.sex = idToData(val).sex
//被保险人证件类型枚举“身份证、户口本”默认户口本且户口本证件截止日期默认长期如果后期还有被保险人年龄为0-17周岁的都同该规则
let age = utilsAge.getAge(this.insuredInfo.birthday, new Date())
if(age <= 17){
}
//GFRS-2641--被保险人年龄小于20周岁不含婚姻状况默认为未婚
if(age < 20){
this.insuredInfo.marriage = '2'
}
} }
} }
}, },
@@ -1905,16 +1914,21 @@ export default {
email: '', //电子邮箱 email: '', //电子邮箱
effectiveDateType:false //是否长期 effectiveDateType:false //是否长期
} }
// 2516--三款学平险--被保险人职业类别默认学生,允许修改; // 2516--三款学平险-- 0048义务教育 0049 幼儿园 0050 高中
// GFRS-2641--被保险人职业:幼儿园版默认学龄前儿童,义务教育、高中/高等教育默认一般学生
// 被保险人婚姻默认未婚,允许修改 // 被保险人婚姻默认未婚,允许修改
// 被保险人手机及邮箱默认投保人,允许修改 // 被保险人手机及邮箱默认投保人,允许修改
if(this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0049'|| this.itemProductDTOS.productCode == 'GFRS_M0050'){ if(this.itemProductDTOS.productCode == 'GFRS_M0048'|| this.itemProductDTOS.productCode == 'GFRS_M0050'){
this.insuredInfo.occupationCode = '2099907' this.insuredInfo.occupationCode = '2099907'
this.insuredInfo.occupationName = '一般学生' this.insuredInfo.occupationName = '一般学生'
this.insuredInfo.marriage = '2' this.insuredInfo.marriage = '2'
this.insuredInfo.mobile = this.userInfo.mobile this.insuredInfo.mobile = this.userInfo.mobile
this.insuredInfo.email = this.userInfo.email this.insuredInfo.email = this.userInfo.email
}else if(this.itemProductDTOS.productCode == 'GFRS_M0049'){
this.insuredInfo.occupationCode = '2099908'
this.insuredInfo.occupationName = '学龄前儿童'
} }
// 2516--除万福卡投保人、被保险人年收入默认为0允许修改 // 2516--除万福卡投保人、被保险人年收入默认为0允许修改
if(this.itemProductDTOS.productCode !='GFRS_M0032'){ if(this.itemProductDTOS.productCode !='GFRS_M0032'){
this.insuredInfo.averageAnnualIncome = '0' this.insuredInfo.averageAnnualIncome = '0'