This commit is contained in:
jiawei
2023-02-22 15:02:39 +08:00
parent 4028c7834c
commit e9c7853b2b

View File

@@ -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
},