From e9c7853b2b51c951b3bbb5e69d56e2704234b896 Mon Sep 17 00:00:00 2001 From: jiawei Date: Wed, 22 Feb 2023 15:02:39 +0800 Subject: [PATCH] save --- src/views/ebiz/sale/Beneficiary.vue | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/views/ebiz/sale/Beneficiary.vue b/src/views/ebiz/sale/Beneficiary.vue index 7df01e77f..953c72c11 100644 --- a/src/views/ebiz/sale/Beneficiary.vue +++ b/src/views/ebiz/sale/Beneficiary.vue @@ -74,23 +74,20 @@ export default { // isShowEvaluationPoint:'0' } }, - async created() { - // this.$store.commit('updateAnswerType', false ) - let res = await getOrderDetail({ orderNo: localStorage.orderNo }) + created() { // 是否从添加指定受益人页面跳转 if (localStorage.fromAddBeneficiaryInfo) { - let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false - this.$store.commit('updateAnswerType', updateAnswerType ) this.type = '2' this.beneficiaries = this.beneficiaries.concat(JSON.parse(localStorage.beneficiaryInfo)) this.type = '2' console.log(this.beneficiaries) } else { - // getOrderDetail({ orderNo: localStorage.orderNo }).then(res => { + getOrderDetail({ orderNo: localStorage.orderNo }).then(res => { if (res.result == 0) { // this.isShowEvaluationPoint = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false this.$store.commit('updateAnswerType', updateAnswerType ) + console.log(updateAnswerType,'updateAnswerType'); this.$utils.intLocalStorage(res) this.type = res.orderDTO.orderInfoDTO.bnfFlag == '1' ? '2' : '1' //bnfFlag 0-法定受益人 1-指定受益人 if (res.orderDTO.orderInfoDTO.bnfFlag == null) { @@ -103,7 +100,7 @@ export default { localStorage.beneficiaryInfo = [] } } - // }) + }) } this.insuredPerson = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name },