From 80e8d99c937f10256f7f4b80481f004904682ae7 Mon Sep 17 00:00:00 2001 From: hz <3451701311@qq.com> Date: Thu, 30 Oct 2025 14:35:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E6=B8=B2=E6=9F=93?= =?UTF-8?q?=E6=80=A7=E8=83=BD=20=E8=A7=A3=E5=86=B3=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=9C=AA=E5=A1=AB=E5=85=85=E5=AE=8C=E6=95=B4=E5=B0=B1=E5=BC=80?= =?UTF-8?q?=E5=A7=8B=E8=AF=95=E7=AE=97=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/CalculatePremium.vue | 46 ++++++++++--------- 1 file changed, 25 insertions(+), 21 deletions(-) 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',