投保那显示的字段里,也修改一下:单独投保保费为5万元

如果输入关联保单,自动跳为100元
不给更改
This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-11-25 17:43:47 +08:00
parent 7b60b94fde
commit bdff1b73d5

View File

@@ -37,6 +37,7 @@
:show-plus="false" :show-plus="false"
:show-minus="false" :show-minus="false"
class="ml30" class="ml30"
:disabled="item.productCode == 'GFRS_M0083' && isFrom != 'proposal'"
@change=" @change="
stepperChange( stepperChange(
item.calFactorLst[riskFactorIndex].displayAmount, item.calFactorLst[riskFactorIndex].displayAmount,
@@ -788,6 +789,16 @@
this.isEnterAddtionRiskListFunc() 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 let payEndYearVal
//初始化时交费期间为一次性交清时,在就是中介渠道, 附加险GFRS_A0007GFRS_A0009GFRS_A0010去掉后附加险list就为空--隐藏icon //初始化时交费期间为一次性交清时,在就是中介渠道, 附加险GFRS_A0007GFRS_A0009GFRS_A0010去掉后附加险list就为空--隐藏icon
item.calFactorLst.map((i) => { item.calFactorLst.map((i) => {
@@ -2013,24 +2024,27 @@
} }
}) })
} }
if(productCode == 'GFRS_M0083'){ if(this.isFrom != 'proposal'){
if(!that.policyNo){ if(productCode == 'GFRS_M0083'){
that.chooseProducts.forEach(item=>{ if(!that.policyNo){
item.calFactorLst.forEach(ii=>{ that.chooseProducts.forEach(item=>{
if(ii.type == 1 && ii.displayAmount <5) { item.calFactorLst.forEach(ii=>{
ii.minPrem = 5 if(ii.type == 1) {
ii.displayAmount = 5 ii.minPrem = 5
} ii.displayAmount = 5
}
})
}) })
}) } else {
} else { that.chooseProducts.forEach(item=>{
that.chooseProducts.forEach(item=>{ item.calFactorLst.forEach(ii=>{
item.calFactorLst.forEach(ii=>{ if(ii.type == 1) {
if(ii.type == 1) { ii.minPrem = 0.01
ii.minPrem = 0.01 ii.displayAmount = 0.01
} }
})
}) })
}) }
} }
} }
this.nextStepFlag = true this.nextStepFlag = true
@@ -2686,12 +2700,18 @@
} }
} }
else if (productCode == 'GFRS_M0083') { else if (productCode == 'GFRS_M0083') {
if(!this.policyNo && defalutValue < 5) { if(this.isFrom != 'proposal'){
this.$toast('单独投保保费为大于等于50000元') if(!this.policyNo && defalutValue < 5) {
currentEle['minPrem'] = 5 this.$toast('单独投保保费为大于等于50000元')
} else if(this.policyNo && defalutValue < 0.01) { currentEle['minPrem'] = 5
this.$toast('与其他主险关联投保时保费要求保费大于等于100元') } else if(this.policyNo && defalutValue < 0.01) {
currentEle['minPrem'] = 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') { else if (this.isTrial === '0' && this.chooseProducts[productIndex].isMainRisk == '0') {