From bdff1b73d5136d397ca884074d1f0350acc21a9f Mon Sep 17 00:00:00 2001 From: "liu.xiaofeng@ebiz-digits.com" Date: Sat, 25 Nov 2023 17:43:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=95=E4=BF=9D=E9=82=A3=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=9A=84=E5=AD=97=E6=AE=B5=E9=87=8C=EF=BC=8C=E4=B9=9F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=80=E4=B8=8B=EF=BC=9A=E5=8D=95=E7=8B=AC=E6=8A=95?= =?UTF-8?q?=E4=BF=9D=E4=BF=9D=E8=B4=B9=E4=B8=BA5=E4=B8=87=E5=85=83=20?= =?UTF-8?q?=E5=A6=82=E6=9E=9C=E8=BE=93=E5=85=A5=E5=85=B3=E8=81=94=E4=BF=9D?= =?UTF-8?q?=E5=8D=95=EF=BC=8C=E8=87=AA=E5=8A=A8=E8=B7=B3=E4=B8=BA100?= =?UTF-8?q?=E5=85=83=20=E4=B8=8D=E7=BB=99=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/common/CalculatePremium.vue | 64 ++++++++++++++-------- 1 file changed, 42 insertions(+), 22 deletions(-) diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index a499d2f5d..9b77a4025 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -37,6 +37,7 @@ :show-plus="false" :show-minus="false" class="ml30" + :disabled="item.productCode == 'GFRS_M0083' && isFrom != 'proposal'" @change=" stepperChange( item.calFactorLst[riskFactorIndex].displayAmount, @@ -788,6 +789,16 @@ this.isEnterAddtionRiskListFunc() } } + if (item.mainRiskCode == 'GFRS_M0083' && this.isFrom == 'proposal') { + item.calFactorLst.forEach((i) => { + if (i.code == "inputPrem") { + i.minPrem = 0.01 + i.displayAmount = 0.01 + i.defaultValue = 0.01 + } + }) + } + console.log(item,'123231321321') let payEndYearVal //初始化时交费期间为一次性交清时,在就是中介渠道, 附加险GFRS_A0007,GFRS_A0009,GFRS_A0010去掉后,附加险list就为空--隐藏’附‘icon item.calFactorLst.map((i) => { @@ -2013,24 +2024,27 @@ } }) } - if(productCode == 'GFRS_M0083'){ - if(!that.policyNo){ - that.chooseProducts.forEach(item=>{ - item.calFactorLst.forEach(ii=>{ - if(ii.type == 1 && ii.displayAmount <5) { - ii.minPrem = 5 - ii.displayAmount = 5 - } + if(this.isFrom != 'proposal'){ + if(productCode == 'GFRS_M0083'){ + if(!that.policyNo){ + that.chooseProducts.forEach(item=>{ + item.calFactorLst.forEach(ii=>{ + if(ii.type == 1) { + ii.minPrem = 5 + ii.displayAmount = 5 + } + }) }) - }) - } else { - that.chooseProducts.forEach(item=>{ - item.calFactorLst.forEach(ii=>{ - if(ii.type == 1) { - ii.minPrem = 0.01 - } + } else { + that.chooseProducts.forEach(item=>{ + item.calFactorLst.forEach(ii=>{ + if(ii.type == 1) { + ii.minPrem = 0.01 + ii.displayAmount = 0.01 + } + }) }) - }) + } } } this.nextStepFlag = true @@ -2686,12 +2700,18 @@ } } else if (productCode == 'GFRS_M0083') { - if(!this.policyNo && defalutValue < 5) { - this.$toast('单独投保,保费为大于等于50000元') - currentEle['minPrem'] = 5 - } else if(this.policyNo && defalutValue < 0.01) { - this.$toast('与其他主险关联投保时保费要求:保费大于等于100元') - currentEle['minPrem'] = 0.01 + if(this.isFrom != 'proposal'){ + if(!this.policyNo && defalutValue < 5) { + this.$toast('单独投保,保费为大于等于50000元') + currentEle['minPrem'] = 5 + } else if(this.policyNo && defalutValue < 0.01) { + this.$toast('与其他主险关联投保时保费要求:保费大于等于100元') + currentEle['minPrem'] = 0.01 + } + } else { + if(defalutValue < 0.01){ + this.$toast('保费大于等于100元') + } } } else if (this.isTrial === '0' && this.chooseProducts[productIndex].isMainRisk == '0') {