【国富惠桂保团体医疗保险产品上线金掌桂投保开发需求】惠桂保的职业要设置给客户做选择,因之前未保存寿险等级,职业一律清空,重新选择

This commit is contained in:
li.yuetong
2022-07-06 11:35:43 +08:00
parent b5c514e465
commit de8143efb0
2 changed files with 31 additions and 41 deletions

View File

@@ -721,11 +721,17 @@ export default {
this.userInfo.homeName = getAreaName([{ code: data.homeProvince }, { code: data.homeCity }, { code: data.homeArea }]) //家庭地址
}
this.userInfo.homeAddress = data.homeAddress //家庭详细地址
this.userInfo.occupationCode = data.occupationCode
this.userInfo.occupationName = data.occupationName
this.userInfo.occupationType = data.lifeGrade
this.userInfo.lifeGrade = data.lifeGrade
this.userInfo.healthGrade = data.healthGrade
// this.userInfo.occupationCode = data.occupationCode
// this.userInfo.occupationName = data.occupationName
// this.userInfo.occupationType = data.lifeGrade
// this.userInfo.lifeGrade = data.lifeGrade
// this.userInfo.healthGrade = data.healthGrade
//惠桂保的职业要设置给客户做选择,因之前未保存寿险等级,职业一律清空,重新选择
this.userInfo.occupationCode = ''
this.userInfo.occupationName = ''
this.userInfo.occupationType = ''
this.userInfo.lifeGrade = ''
this.userInfo.healthGrade = ''
this.userInfo.averageAnnualIncome = this.itemProductDTOS.productCode == 'GFRS_M0032' ? data.averageYearlyIncome : '0' //平均年收入
//2516--三个学平险--被保险人国籍默认中国,允许修改
if (this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0049' || this.itemProductDTOS.productCode == 'GFRS_M0050') {

View File

@@ -1120,14 +1120,6 @@ export default {
// 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.effectiveDateTypeAbleInsured = false
}else{
if (data.idEffectEndDate == '9999-01-01') {
this.insuredInfo.certiexpiredate = ''
this.insuredInfo.effectiveDateType = true //是否长期
@@ -1138,7 +1130,6 @@ export default {
this.effectiveDateTypeAbleInsured = false
}
}
}
this.insuredInfo.email = data.email //电子邮箱
this.insuredInfo.mobile = data.customerPhone //移动电话
this.insuredInfo.homeProvince = data.homeProvince //家庭省
@@ -1149,28 +1140,21 @@ export default {
}
this.insuredInfo.homeAddress = data.homeAddress //家庭详细地址
this.insuredInfo.medical = data.socialSecurity //有无社保
//2516--三个学平险--被保险人职业类别默认学生,允许修改。
if (this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0049' || this.itemProductDTOS.productCode == 'GFRS_M0050') {
this.insuredInfo.occupationCode = '2099907'
this.insuredInfo.occupationName = '一般学生'
} else {
this.insuredInfo.occupationCode = data.occupationCode
this.insuredInfo.occupationName = data.occupationName
}
this.insuredInfo.occupationType = data.lifeGrade
this.insuredInfo.lifeGrade = data.lifeGrade
this.insuredInfo.healthGrade = data.healthGrade
// this.insuredInfo.occupationCode = data.occupationCode
// this.insuredInfo.occupationName = data.occupationName
// this.insuredInfo.occupationType = data.lifeGrade
// this.insuredInfo.lifeGrade = data.lifeGrade
// this.insuredInfo.healthGrade = data.healthGrade
//惠桂保的职业要设置给客户做选择,因之前未保存寿险等级,职业一律清空,重新选择
this.insuredInfo.occupationCode = ''
this.insuredInfo.occupationName = ''
this.insuredInfo.occupationType = ''
this.insuredInfo.lifeGrade = ''
this.insuredInfo.healthGrade = ''
//除万福卡投保人、被保险人年收入填写项去掉默认为0卡产品不满足反洗钱识别线
this.insuredInfo.averageAnnualIncome = this.itemProductDTOS.productCode == 'GFRS_M0032' ? data.averageYearlyIncome : '0' //平均年收入
//2516--三个学平险--被保险人婚姻默认未婚,允许修改
//2516--三个学平险--被保险人国籍默认中国,允许修改
if (this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0049' || this.itemProductDTOS.productCode == 'GFRS_M0050') {
this.insuredInfo.marriage = '2'
this.insuredInfo.nativeplace = '1'
} else {
this.insuredInfo.marriage = data.marryStatus
this.insuredInfo.nativeplace = data.country
}
// 计算年龄
let age = utilsAge.getAge(this.insuredInfo.birthday, new Date())
if (this.itemProductDTOS.productCode != 'GFRS_M0052') {