代码修正

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-10-04 19:49:07 +08:00
parent 839cd16311
commit 93c7c991d8

View File

@@ -109,7 +109,6 @@
item.productCode == 'GFRS_M0051' || item.productCode == 'GFRS_M0051' ||
item.productCode == 'GFRS_M0054' || item.productCode == 'GFRS_M0054' ||
item.productCode == 'GFRS_M0073' || item.productCode == 'GFRS_M0073' ||
item.productCode == 'GFRS_M0077' ||
item.productCode == 'GFRS_M0057' item.productCode == 'GFRS_M0057'
) )
" "
@@ -128,7 +127,6 @@
item.productCode == 'GFRS_M0051' || item.productCode == 'GFRS_M0051' ||
item.productCode == 'GFRS_M0054' || item.productCode == 'GFRS_M0054' ||
item.productCode == 'GFRS_M0073' || item.productCode == 'GFRS_M0073' ||
item.productCode == 'GFRS_M0077' ||
item.productCode == 'GFRS_M0057' item.productCode == 'GFRS_M0057'
) )
" "
@@ -137,10 +135,10 @@
:max="dutyItem.maxDutyAmt" :max="dutyItem.maxDutyAmt"
:show-plus="false" :show-plus="false"
:show-minus="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" class="ml10 mr10"
@focus="focusStep" @focus="focusStep"
@blur="blurStep(dutyItem, index)" @blur="blurStep(dutyItem, index,item.productCode)"
@change=" @change="
dutyStepperChange( dutyStepperChange(
item.calFactorLst[riskFactorIndex].rules[dutyItemIndex].defaultDutyAmt, item.calFactorLst[riskFactorIndex].rules[dutyItemIndex].defaultDutyAmt,
@@ -1189,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) this.valiAndSend(dutyItem, productIndex)
}, },
valiAndSend(dutyItem, productIndex) { valiAndSend(dutyItem, productIndex) {
@@ -1218,14 +1233,30 @@ export default {
focusStep() { focusStep() {
this.nextStepFlag = true this.nextStepFlag = true
}, },
blurStep(dutyItem, productIndex) { blurStep(dutyItem, productIndex, productCode) {
this.nextStepFlag = false this.nextStepFlag = false
//失去焦点时做验证 //失去焦点时做验证
if (dutyItem.necess) { if (dutyItem.necess) {
//勾选时才做验证 //勾选时才做验证
this.valiAndSend(dutyItem, productIndex) 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的责任的验证规则 //险种GFRS_M0016\GFRS_M0070的责任的验证规则
valiDuty(value, duty) { valiDuty(value, duty) {
@@ -2821,7 +2852,7 @@ export default {
this.trialInfos[index].amt = this.trialList[index].amt this.trialInfos[index].amt = this.trialList[index].amt
} }
// GFRS_A0009,GFRS_A0010 这两款时,责任保额不相加 // GFRS_A0009,GFRS_A0010 这两款时,责任保额不相加
if(item.productCode == 'GFRS_A0009' || item.productCode == 'GFRS_A0010' || item.productCode == 'GFRS_A0013'|| item.productCode == 'GFRS_A0014'){ if(item.productCode == 'GFRS_A0009' || item.productCode == 'GFRS_A0010' || item.productCode == 'GFRS_A0013'|| item.productCode == 'GFRS_A0014' || item.productCode == 'GFRS_M0077'){
this.trialInfos[index].amt = this.trialList[index].duty[0].amt this.trialInfos[index].amt = this.trialList[index].duty[0].amt
} }
// GFRS_A0011-附加两全 属于非豁免险 但附加两全保额=主险年交保费+其他不带豁免责任的长期期交附加险年交保费 // GFRS_A0011-附加两全 属于非豁免险 但附加两全保额=主险年交保费+其他不带豁免责任的长期期交附加险年交保费
@@ -3081,7 +3112,7 @@ export default {
/deep/.van-action-sheet__name { /deep/.van-action-sheet__name {
font-size: 12px; font-size: 12px;
} }
.checkbox-click { .checkbox-click
position: absolute; position: absolute;
right: 0; right: 0;
top: 0; top: 0;