diff --git a/src/views/ebiz/cardList/information.vue b/src/views/ebiz/cardList/information.vue index df07712d4..7d53f4d0d 100644 --- a/src/views/ebiz/cardList/information.vue +++ b/src/views/ebiz/cardList/information.vue @@ -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'