【国富人寿】试算页面 获取订单详情根据订单详情中被保人职业信息重新设置jobLevel字段信息

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-05-10 17:16:48 +08:00
parent 48bd601d52
commit 1c86e41174

View File

@@ -663,6 +663,21 @@ export default {
//GFRS-2552【需求】关于金掌桂投保流程增设指定生效日按钮的申请 //GFRS-2552【需求】关于金掌桂投保流程增设指定生效日按钮的申请
const orderNo = this.$CacheUtils.getLocItem('orderNo') const orderNo = this.$CacheUtils.getLocItem('orderNo')
let detailPromise = this.isFrom === 'proposal' ? localStorage.proposalMedical : await getOrderDetail({ orderNo }) let detailPromise = this.isFrom === 'proposal' ? localStorage.proposalMedical : await getOrderDetail({ orderNo })
let collect = (data,code) => {
data.forEach(item => {
if (item.code == code) {
this.saleInsuredPersonInfo.healthGrade = item.healthGrade
this.saleInsuredPersonInfo.lifeGrade = item.lifeGrade
} else {
if (item.subs && item.subs.length != 0) {
collect(item.subs,code)
}
}
})
}
collect(occupationList,detailPromise.orderDTO.insuredDTOs[0].occupationCode)
if (this.isFrom != 'proposal') { if (this.isFrom != 'proposal') {
//活动生效日期 //活动生效日期
this.cvalidateStr = detailPromise.orderDTO.orderInfoDTO.cvaliDate this.cvalidateStr = detailPromise.orderDTO.orderInfoDTO.cvaliDate
@@ -2774,21 +2789,6 @@ export default {
} }
let resultData let resultData
let collect = (data,itemData) => {
data.forEach(item => {
if (item.code == itemData.occupationCode) {
itemData.healthGrade = item.healthGrade
itemData.lifeGrade = item.lifeGrade
} else {
if (item.subs && item.subs.length != 0) {
collect(item.subs,itemData)
}
}
})
}
params.orderDTO.insuredDTOs.forEach(item => {
collect(occupationList,item.occupationCode)
})
if (localStorage.isFrom == 'proposal') { if (localStorage.isFrom == 'proposal') {
// 从建议书进入, 豁免险保费空值特殊处理 // 从建议书进入, 豁免险保费空值特殊处理
let prdCodes = ['GFRS_A0001', 'GFRS_A0007'] let prdCodes = ['GFRS_A0001', 'GFRS_A0007']