mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-19 02:06:44 +08:00
[FIX]富娃娃万能险保费给保额传给后端
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
<!-- {{riskFactorIndex}} -->
|
||||
<!-- {{defalutAmt}} -->
|
||||
<van-stepper
|
||||
v-model="defalutAmt"
|
||||
v-model="item.calFactorLst[riskFactorIndex].defaultValue"
|
||||
:min="riskFactor.minAmt || riskFactor.minPrem"
|
||||
:max="riskFactor.maxAmt || riskFactor.maxPrem"
|
||||
:show-plus="false"
|
||||
@@ -112,7 +112,7 @@
|
||||
<span v-if="item.productTrialYearDTOS[payEndYearColumnsIndex].suffix" class="fs14">{{ riskFactor.name + '(' + item.productTrialYearDTOS[payEndYearColumnsIndex]['suffix'] + ')' }}</span>
|
||||
<span v-else class="fs14">{{ riskFactor.name }} </span>
|
||||
<van-stepper
|
||||
v-model="defalutAmt"
|
||||
v-model="item.productTrialYearDTOS[payEndYearColumnsIndex].defaultValue"
|
||||
:min="item.productTrialYearDTOS[payEndYearColumnsIndex].minAmt || item.productTrialYearDTOS[payEndYearColumnsIndex].minPrem"
|
||||
:max="item.productTrialYearDTOS[payEndYearColumnsIndex].maxAmt || item.productTrialYearDTOS[payEndYearColumnsIndex].maxPrem"
|
||||
:show-plus="false"
|
||||
@@ -313,9 +313,9 @@ export default {
|
||||
}
|
||||
if (item.mainRiskCode != 'GFRS_M0008') {
|
||||
item.calFactorLst.map(i => {
|
||||
this.defalutAmt = i.displayAmount || 1
|
||||
console.log('i.displayAmount ==', i.displayAmount)
|
||||
console.log('i.defaultValue ==', i.defaultValue)
|
||||
// this.defalutAmt = i.displayAmount || 1
|
||||
// console.log('i.displayAmount ==', i.displayAmount)
|
||||
// console.log('i.defaultValue ==', i.defaultValue)
|
||||
this.mult = Number(i.displayAmount) / Number(i.defaultValue)
|
||||
})
|
||||
}
|
||||
@@ -775,14 +775,13 @@ export default {
|
||||
}
|
||||
} else if (factor.type == 1) {
|
||||
if (factor.code == 'inputPrem') {
|
||||
trialInfo['prem'] = factor.moneyUnit == undefined ? Number(this.defalutAmt) * Number(item.productTrialYearDTOS[this.payEndYearColumnsIndex].moneyUnit) : Number(this.defalutAmt) * Number(factor.moneyUnit)
|
||||
trialInfo['prem'] = factor.moneyUnit == undefined ? Number(item.productTrialYearDTOS[this.payEndYearColumnsIndex].defaultValue) * Number(item.productTrialYearDTOS[this.payEndYearColumnsIndex].moneyUnit) : Number(factor.defaultValue) * Number(factor.moneyUnit)
|
||||
} else {
|
||||
if (item.isRemit == 0) {
|
||||
trialInfo['amt'] = Number(factor.defaultValue) * Number(factor.moneyUnit)
|
||||
} else {
|
||||
trialInfo['amt'] = Number(this.defalutAmt) * Number(factor.moneyUnit)
|
||||
trialInfo['amt'] = Number(factor.defaultValue) * Number(factor.moneyUnit)
|
||||
}
|
||||
// trialInfo['amt'] = Number(this.defalutAmt) * Number(factor.moneyUnit)
|
||||
}
|
||||
} else if (factor.type == 2) {
|
||||
trialInfo.jobLevel = this.saleInsuredPersonInfo[factor.code]
|
||||
@@ -880,17 +879,17 @@ export default {
|
||||
//被保人年龄如果在50-65区间
|
||||
if (this.saleInsuredPersonInfo.age >= 50 && this.saleInsuredPersonInfo.age <= 65) {
|
||||
//使用rules规则里的第二条控制保额份数
|
||||
if (Number(this.defalutAmt) < Number(riskFactor.rules[1].minPrem) || Number(this.defalutAmt) > Number(riskFactor.rules[1].maxPrem)) {
|
||||
if (Number(currentEle.defaultValue) < Number(riskFactor.rules[1].minPrem) || Number(currentEle.defaultValue) > Number(riskFactor.rules[1].maxPrem)) {
|
||||
this.$toast(localStorage.hint)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
if ((Number(this.defalutAmt) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||
if ((Number(currentEle.defaultValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
|
||||
this.$toast(localStorage.hint)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
this.mainRiskInfluenceAddRisk()
|
||||
currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit)
|
||||
currentEle['amt'] = Number(currentEle.defaultValue) * Number(currentEle.moneyUnit)
|
||||
// if (localStorage.isTrial === '1') {
|
||||
this.getTrial()
|
||||
// }
|
||||
@@ -899,17 +898,17 @@ export default {
|
||||
//被保人年龄如果在66-75之间
|
||||
} else if (this.saleInsuredPersonInfo.age >= 66 && this.saleInsuredPersonInfo.age <= 75) {
|
||||
//使用rules规则里的第一条控制保额份数
|
||||
if (Number(this.defalutAmt) < Number(riskFactor.rules[0].minPrem) || Number(this.defalutAmt) > Number(riskFactor.rules[0].maxPrem)) {
|
||||
if (Number(currentEle.defaultValue) < Number(riskFactor.rules[0].minPrem) || Number(currentEle.defaultValue) > Number(riskFactor.rules[0].maxPrem)) {
|
||||
this.$toast(localStorage.hint)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
if ((Number(this.defalutAmt) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||
if ((Number(currentEle.defaultValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
|
||||
this.$toast(localStorage.hint)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
this.mainRiskInfluenceAddRisk()
|
||||
currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit)
|
||||
currentEle['amt'] = Number(currentEle.defaultValue) * Number(currentEle.moneyUnit)
|
||||
// if (localStorage.isTrial === '1') {
|
||||
this.getTrial()
|
||||
// }
|
||||
@@ -918,18 +917,18 @@ export default {
|
||||
}
|
||||
//isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
|
||||
} else if (this.isTrial === '0' && this.chooseProducts[productIndex].isMainRisk == '0') {
|
||||
if (Number(this.defalutAmt) < Number(min)) {
|
||||
if (Number(currentEle.defaultValue) < Number(min)) {
|
||||
this.$toast(`交费期间为${riskFactor.yearWay}年交时,最低保费为${Number(min) * riskFactor.moneyUnit}元`)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
if ((Number(this.defalutAmt) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||
if ((Number(currentEle.defaultValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
|
||||
this.$toast(`超过最低保费部分金额需为1000元整数倍`)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
this.nextStepFlag = false
|
||||
this.mainRiskInfluenceAddRisk()
|
||||
currentEle['amt'] = Number(this.defalutAmt) * Number(riskFactor.moneyUnit)
|
||||
currentEle['amt'] = Number(currentEle.defaultValue) * Number(riskFactor.moneyUnit)
|
||||
// if (localStorage.isTrial === '1') {
|
||||
this.getTrial()
|
||||
// }
|
||||
@@ -937,17 +936,17 @@ export default {
|
||||
}
|
||||
//其他产品按照原先的逻辑判断
|
||||
} else {
|
||||
if (Number(this.defalutAmt) < Number(min) || Number(this.defalutAmt) > Number(max)) {
|
||||
if (Number(currentEle.defaultValue) < Number(min) || Number(currentEle.defaultValue) > Number(max)) {
|
||||
this.$toast(localStorage.hint)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
if ((Number(this.defalutAmt) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
|
||||
if ((Number(currentEle.defaultValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||
// currentEle.defaultValue = currentEle.rules[productIndex].displayAmount
|
||||
this.$toast(localStorage.hint)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
this.mainRiskInfluenceAddRisk()
|
||||
currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit)
|
||||
currentEle['amt'] = Number(currentEle.defaultValue) * Number(currentEle.moneyUnit)
|
||||
// if (localStorage.isTrial === '1') {
|
||||
this.getTrial()
|
||||
// }
|
||||
@@ -957,7 +956,7 @@ export default {
|
||||
// let currentEle = this.chooseProducts[this.productIndex].calFactorLst[this.calFactorIndex]
|
||||
// currentEle.defaultValue = value
|
||||
console.log('进来几次')
|
||||
this.mult = Number(this.defalutAmt) / Number(defalutValue)
|
||||
this.mult = Number(currentEle.defaultValue) / Number(defalutValue)
|
||||
},
|
||||
//下一步
|
||||
async nextStep() {
|
||||
@@ -1010,11 +1009,11 @@ export default {
|
||||
//万能型产品保费赋值给保额
|
||||
//增加判断是否是从建议书跳转过来了的
|
||||
if (localStorage.isFrom != 'proposal') {
|
||||
if (this.trialList[index].productCode == ('GFRS_M0003' || 'GFRS_M0015')) {
|
||||
// console.log('2222222222')
|
||||
if (this.trialList[index].productCode == 'GFRS_M0003' || this.trialList[index].productCode == 'GFRS_M0015') {
|
||||
riskItem['amt'] = this.trialList[index].prem
|
||||
}
|
||||
}
|
||||
|
||||
//豁免险保额处理
|
||||
if (item.isRemit == '0') {
|
||||
// console.log('33333333')
|
||||
|
||||
Reference in New Issue
Block a user