From 2c199e0b5d183a0ed894756f979aae8534756608 Mon Sep 17 00:00:00 2001 From: mengxiaolong Date: Fri, 15 Jan 2021 16:17:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E7=AE=97=E6=8E=A5=E5=8F=A3=E8=B1=81?= =?UTF-8?q?=E5=85=8D=E9=99=A9=E4=BF=9D=E8=B4=B9=E7=BD=AE=E7=A9=BA=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/common/CalculatePremium.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index 7449c28f6..8268abfc9 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -637,7 +637,9 @@ export default { const orderNo = localStorage.getItem('orderNo') let detailPromise = this.isFrom === 'proposal' ? localStorage.proposalMedical : await getOrderDetail({ orderNo }) this.chooseProducts.map(item => { - if (!(item.mainRiskCode === 'GFRS_M0016' || item.productCode === 'GFRS_A0004' || item.productCode === 'GFRS_A0008' || item.productCode === 'GFRS_A0005')) { + if ( + !(item.mainRiskCode === 'GFRS_M0016' || item.productCode === 'GFRS_A0004' || item.productCode === 'GFRS_A0008' || item.productCode === 'GFRS_A0005') + ) { //其他产品删掉两个字段 let calFactorLst = item.calFactorLst for (let i = calFactorLst.length - 1; i >= 0; i--) { @@ -944,8 +946,10 @@ export default { // 保额只能为5000 10000 15000 200000 if (currentEle.duty == '320404') { - if (this.mainRiskCode === dutyGFRS_A0008Rules[currentEle.duty]['mainRisk'] - || this.mainRiskCode === dutyGFRS_A0008Rules[currentEle.duty]['otmainRisk']) { + if ( + this.mainRiskCode === dutyGFRS_A0008Rules[currentEle.duty]['mainRisk'] || + this.mainRiskCode === dutyGFRS_A0008Rules[currentEle.duty]['otmainRisk'] + ) { if (!(value == '0.5' || value == '1')) { this.$toast(dutyGFRS_A0008Rules[currentEle.duty].msg_2) this.nextStepFlag = true @@ -1352,10 +1356,7 @@ export default { : Number(factor.displayAmount) * Number(factor.moneyUnit) } else { if (item.isRemit == 0) { - trialInfo['amt'] = Number(factor.displayAmount) * Number(factor.moneyUnit) - if (item.productCode === 'GFRS_A0001' || item.productCode === 'GFRS_A0007') { - trialInfo['amt'] = factor.defaultValue - } + trialInfo['amt'] = null } else { trialInfo['amt'] = Number(factor.displayAmount) * Number(factor.moneyUnit) }