Merge branch 'feature/GFRS-688_【国富人寿附加豁免保险费重大疾病保险】' into dev

This commit is contained in:
yuweiqi
2020-03-04 20:27:05 +08:00

View File

@@ -393,20 +393,20 @@ export default {
this.mult = Math.ceil(Number(i.displayAmount) / Number(i.defaultValue)) this.mult = Math.ceil(Number(i.displayAmount) / Number(i.defaultValue))
}) })
} }
if (item.productCode == 'GFRS_A0003') { // if (item.productCode == 'GFRS_A0003') {
//该附加险的责任保额=主险的保费 // //该附加险的责任保额=主险的保费
item.calFactorLst.map(v => { // item.calFactorLst.map(v => {
if ((v.code = 'dutyGroup' && v.rules.length > 0)) { // if (v.code == 'dutyGroup' && v.rules.length > 0) {
v.rules.map(y => { // v.rules.map(y => {
if (y.defaultDutyAmt === null) { // if (y.defaultDutyAmt === null) {
y.defaultDutyAmt = (JSON.parse(localStorage.trialList)[0].prem / 10000).toFixed(6) // y.defaultDutyAmt = (JSON.parse(localStorage.trialList)[0].prem / 10000).toFixed(6)
} // }
y.moneyUnit = 10000 // y.moneyUnit = 10000
y.changeWithMainRisk = true //责任险保额=主险保费,不允许用户手动更改 // y.changeWithMainRisk = true //责任险保额=主险保费,不允许用户手动更改
}) // })
} // }
}) // })
} // }
//保存险种编号 //保存险种编号
this.mainRiskCode = item.mainRiskCode this.mainRiskCode = item.mainRiskCode
}) })
@@ -483,7 +483,10 @@ export default {
dutyStepperChange(value, productIndex, calFactorIndex, dutyItemIndex, isChecked, min, max) { dutyStepperChange(value, productIndex, calFactorIndex, dutyItemIndex, isChecked, min, max) {
//这个险种使用其他验证方式 //这个险种使用其他验证方式
if (this.mainRiskCode === 'GFRS_M0016') return if (this.mainRiskCode === 'GFRS_M0016') return
if (this.chooseProducts[productIndex].productCode === 'GFRS_A0003') {
this.getTrial()
return
}
let currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex].rules[dutyItemIndex] let currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex].rules[dutyItemIndex]
if (value < min || value > max) { if (value < min || value > max) {
this.$toast(localStorage.hint) this.$toast(localStorage.hint)
@@ -821,6 +824,17 @@ export default {
item.moneyUnit = 1 item.moneyUnit = 1
item.suffix = '元' item.suffix = '元'
} }
if (this.chooseProducts[remitIndex].productCode == 'GFRS_A0003') {
if (item.code == 'dutyGroup') {
let trialList = JSON.parse(localStorage.trialList)
item.rules.forEach(v => {
v.amt = trialList[0].prem
v.defaultDutyAmt = trialList[0].prem
v.moneyUnit = 1
v.suffix = '万元'
})
}
}
}) })
}, },
getRemitIndex() { getRemitIndex() {