mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 04:36:44 +08:00
【国富人寿】试算页面 获取订单详情根据订单详情中被保人职业信息重新设置jobLevel字段信息
This commit is contained in:
@@ -663,6 +663,21 @@ export default {
|
||||
//GFRS-2552【需求】关于金掌桂投保流程增设指定生效日按钮的申请
|
||||
const orderNo = this.$CacheUtils.getLocItem('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') {
|
||||
//活动生效日期
|
||||
this.cvalidateStr = detailPromise.orderDTO.orderInfoDTO.cvaliDate
|
||||
@@ -2774,21 +2789,6 @@ export default {
|
||||
}
|
||||
|
||||
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') {
|
||||
// 从建议书进入, 豁免险保费空值特殊处理
|
||||
let prdCodes = ['GFRS_A0001', 'GFRS_A0007']
|
||||
|
||||
Reference in New Issue
Block a user