diff --git a/src/views/ebiz/proposal/ProposalInfo.vue b/src/views/ebiz/proposal/ProposalInfo.vue
index 8f69fca0b..6f94f33b1 100644
--- a/src/views/ebiz/proposal/ProposalInfo.vue
+++ b/src/views/ebiz/proposal/ProposalInfo.vue
@@ -213,7 +213,7 @@
@@ -333,7 +333,8 @@ export default {
'2_0': '配偶',
'5_0': '其他'
},
- agent: {}
+ agent: {},
+ mainRiskCodes: []
}
},
filters: {
@@ -490,6 +491,7 @@ export default {
//将后端返回的数据格式化为本地
formatLocal(res) {
if (res.result == '0') {
+ let that = this
let orderDTO = res.content.orderDTO
this.pageShowInfo.appntDTO = res.content.orderDTO.appntDTO
this.pageShowInfo.insuredDTOs = res.content.orderDTO.insuredDTOs
@@ -501,6 +503,9 @@ export default {
//根据数据字典 获取当前值
v.age = getAge.getAge(v.birthdayLabel, new Date())
v.riskDTOLst.forEach(risk => {
+ if (risk.isMainRisk == '0') {
+ that.mainRiskCodes.push(risk.riskCode)
+ }
if (risk.insuYear == 106 && risk.insuYearFlag == 'A') {
risk.insureName = '终身'
} else {
@@ -550,8 +555,8 @@ export default {
},
//转投保
insure() {
- if (localStorage.mainRiskCodes) {
- if (JSON.parse(localStorage.mainRiskCodes).length == '2') {
+ if (this.mainRiskCodes) {
+ if (this.mainRiskCodes.length != 1) {
return Toast.fail('暂不支持组合产品转投保')
}
}