diff --git a/src/views/ebiz/productFlowImprove/components/CalculatePremium.vue b/src/views/ebiz/productFlowImprove/components/CalculatePremium.vue index e034dbf33..39707fc41 100644 --- a/src/views/ebiz/productFlowImprove/components/CalculatePremium.vue +++ b/src/views/ebiz/productFlowImprove/components/CalculatePremium.vue @@ -374,7 +374,7 @@ - + @@ -404,7 +404,7 @@ -
+
{{ item.accuRiskDesc }}: @@ -517,10 +517,10 @@ export default { premiumData: [], //试算 saleInsuredInfo: syncLocalstorageData( { sex: '0', birthday: '' }, //投保人信息 - { name: 'saleInsuredInfo' } + { name: 'saleInsuredInfo', insuredAge: '' } ), saleInsuredPersonInfo: syncLocalstorageData( - { sex: '0', birthday: '' }, //投保人信息 + { sex: '0', birthday: '', relationToAppnt: '', insuredAge: '' }, //投保人信息 { name: 'saleInsuredPersonInfo' } ), trialList: [], @@ -3433,7 +3433,7 @@ export default { }) resultData = await saveProposal(params) } else if (isFrom !== 'orderTrial' && localStorage.isFrom === 'sale') { - resultData = this.submitOrder({riskDTO: params, createOrder: false}) + resultData = this.submitOrder({ riskDTO: params, createOrder: false }) // todo 处理下一步的逻辑,需要携带数据到下一页中 } else if (isFrom === 'orderTrial' && localStorage.isFrom === 'sale') { this.$toast.loading({ @@ -3567,26 +3567,30 @@ export default { ele.result = '' this.showAdditionRiskPopup = false }, - submitOrder({riskDTO = [], createOrder = true} = {}) { + submitOrder({ riskDTO = [], createOrder = true } = {}) { const params = { orderType: 'RISK_ORDER_NEW', - orderDTO: Array.isArray(riskDTO) ? { - orderInfoDTO: { - orderNo: this.$route.query.orderNo || '', - productChannel: '0' - }, - // appntDTO: {}, - // userModel: { - // branchType: this.branchType - // }, - insuredDTOs: [{ - riskDTOLst: [] - }] - } : riskDTO.orderDTO + orderDTO: Array.isArray(riskDTO) + ? { + orderInfoDTO: { + orderNo: this.$route.query.orderNo || '', + productChannel: '0' + }, + // appntDTO: {}, + // userModel: { + // branchType: this.branchType + // }, + insuredDTOs: [ + { + riskDTOLst: [] + } + ] + } + : riskDTO.orderDTO } - saveOrUpdateOrderInfo(params).then((response) => { + saveOrUpdateOrderInfo(params).then(response => { const { orderNo } = response - localStorage.setItem("orderNo", orderNo) + localStorage.setItem('orderNo', orderNo) if (!createOrder) return this.$router.replace({ name: 'fiProductDetail',