卡单问题关于选择人员后变更了保费问题以及立即投保数据传递关于职业信息

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-07-07 17:28:59 +08:00
parent cc701a123c
commit bafc29a595

View File

@@ -978,7 +978,9 @@ export default {
if (res.result == 0) {
//选择保障方案
this.trialList = res.trialList
this.allPrice = res.trialList[0].prem
if (!this.allPrice) {
this.allPrice = res.trialList[0].prem
}
} else {
this.$toast(res.resultMessage)
}
@@ -1594,10 +1596,32 @@ export default {
this.userInfo.homeAddress = data.homeAddress //家庭详细地址
this.userInfo.occupationCode = data.occupationCode
this.userInfo.occupationName = data.occupationName
let thisoccupationType = ''
let thislifeGrade = ''
let thishealthGrade = ''
let collect = (data,code) => {
data.forEach(item => {
if (item.code == code) {
if (this.trialDTOS.productInsuredDTO.healthGrade && this.trialDTOS.productInsuredDTO.healthGrade != '0') {
thisoccupationType = item.healthGrade
}
if (this.trialDTOS.productInsuredDTO.lifeGrade && this.trialDTOS.productInsuredDTO.lifeGrade != '0') {
thisoccupationType = item.lifeGrade
}
thislifeGrade = item.lifeGrade
thishealthGrade = item.healthGrade
} else {
if (item.subs && item.subs.length != 0) {
collect(item.subs,code)
}
}
})
}
collect(occupationList,data.occupationCode)
this.userInfo.occupationType = data.lifeGrade
this.userInfo.lifeGrade = data.lifeGrade
this.userInfo.healthGrade = data.healthGrade
this.userInfo.occupationType =thisoccupationType
this.userInfo.lifeGrade = thislifeGrade
this.userInfo.healthGrade = thishealthGrade
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'