From a46eb907b914b5ca96e399ad0ba4cb63cab711f0 Mon Sep 17 00:00:00 2001 From: "liu.xiaofeng@ebiz-digits.com" Date: Thu, 21 Sep 2023 14:58:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E5=B9=B4=E6=9C=9F=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E8=B4=A3=E4=BB=BB=E4=B8=8E=E5=8F=AF=E9=80=89?= =?UTF-8?q?=E8=B4=A3=E4=BB=BB=E4=BF=9D=E9=A2=9D=E8=81=94=E5=8A=A8=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E7=BC=96=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/common/CalculatePremium.vue | 53 ++++++++++++++++++---- 1 file changed, 43 insertions(+), 10 deletions(-) diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index b93be4a43..fec29c47c 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -135,10 +135,10 @@ :max="dutyItem.maxDutyAmt" :show-plus="false" :show-minus="false" - :disabled="item.productCode == 'GFRS_A0012'" + :disabled="item.productCode == 'GFRS_A0012' || (item.productCode == 'GFRS_M0077' && !dutyItem.necess) || (item.productCode == 'GFRS_M0077' && dutyItem.duty == '311507')" class="ml10 mr10" @focus="focusStep" - @blur="blurStep(dutyItem, index)" + @blur="blurStep(dutyItem, index,item.productCode)" @change=" dutyStepperChange( item.calFactorLst[riskFactorIndex].rules[dutyItemIndex].defaultDutyAmt, @@ -1187,6 +1187,23 @@ export default { }) } } + if (validateRiskCode === 'GFRS_M0077'){ + if(dutyItem.duty == '311507' && dutyItem.necess){ + this.chooseProducts.forEach(item => { + item.calFactorLst.map((i) => { + if (i.code == 'dutyGroup') { + if(i.rules && i.rules.length != 0) { + i.rules.forEach(ii=>{ + if(ii.duty != '311507' && ii.necess){ + dutyItem.defaultDutyAmt = ii.defaultDutyAmt + } + }) + } + } + }) + }) + } + } this.valiAndSend(dutyItem, productIndex) }, valiAndSend(dutyItem, productIndex) { @@ -1216,15 +1233,31 @@ export default { focusStep() { this.nextStepFlag = true }, - blurStep(dutyItem, productIndex) { + blurStep(dutyItem, productIndex, productCode) { this.nextStepFlag = false - - //失去焦点时做验证 - if (dutyItem.necess) { - //勾选时才做验证 - this.valiAndSend(dutyItem, productIndex) - } - }, + //失去焦点时做验证 + if (dutyItem.necess) { + //勾选时才做验证 + this.valiAndSend(dutyItem, productIndex) + } + if(productCode == 'GFRS_M0077'){ + this.chooseProducts.forEach(item => { + if (item.mainRiskCode == 'GFRS_M0077') { + item.calFactorLst.map((i) => { + if (i.code == 'dutyGroup') { + if(i.rules && i.rules.length != 0) { + i.rules.forEach(ii=>{ + if(ii.duty == '311507' && ii.necess){ + ii.defaultDutyAmt = dutyItem.defaultDutyAmt + } + }) + } + } + }) + } + }) + } + }, //险种GFRS_M0016\GFRS_M0070的责任的验证规则 valiDuty(value, duty) { if (this.mainRiskCode === 'GFRS_M0016') {