mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-12 03:16:43 +08:00
保费没有叠加问题更改
This commit is contained in:
@@ -601,7 +601,7 @@ export default {
|
|||||||
trialInfos: []
|
trialInfos: []
|
||||||
}
|
}
|
||||||
|
|
||||||
this.chooseProducts.forEach(item => {
|
this.chooseProducts.forEach((item, index) => {
|
||||||
let trialInfo = {}
|
let trialInfo = {}
|
||||||
item.calFactorLst.forEach(factor => {
|
item.calFactorLst.forEach(factor => {
|
||||||
//type 类型 0为picker 1计步器 2职业等级
|
//type 类型 0为picker 1计步器 2职业等级
|
||||||
@@ -624,8 +624,7 @@ export default {
|
|||||||
let result = []
|
let result = []
|
||||||
factor.rules.forEach(dutyItem => {
|
factor.rules.forEach(dutyItem => {
|
||||||
if (dutyItem.necess) {
|
if (dutyItem.necess) {
|
||||||
console.log(dutyItem.defaultDutyAmt)
|
// trialInfo['amt'] = this.trialList[index].amt
|
||||||
trialInfo['amt'] = Number(dutyItem.defaultDutyAmt) * Number(dutyItem.moneyUnit)
|
|
||||||
result.push({
|
result.push({
|
||||||
amt: Number(dutyItem.defaultDutyAmt) * Number(dutyItem.moneyUnit),
|
amt: Number(dutyItem.defaultDutyAmt) * Number(dutyItem.moneyUnit),
|
||||||
dutyCode: dutyItem.duty,
|
dutyCode: dutyItem.duty,
|
||||||
@@ -743,18 +742,28 @@ export default {
|
|||||||
riskItem['amt'] = this.trialList[index].amt
|
riskItem['amt'] = this.trialList[index].amt
|
||||||
}
|
}
|
||||||
//保费算保额
|
//保费算保额
|
||||||
if (this.trialList[index].trialType == '1') {
|
console.log('this.trialList', this.trialList[index].trialType)
|
||||||
|
// debugger
|
||||||
|
if (this.trialList[index].trialType == '1' || this.trialList[index].trialType == '2') {
|
||||||
|
// console.log('11111111111111111')
|
||||||
|
// console.log(this.trialList[index].amt)
|
||||||
riskItem['amt'] = this.trialList[index].amt
|
riskItem['amt'] = this.trialList[index].amt
|
||||||
}
|
}
|
||||||
|
// console.log(riskItem)
|
||||||
//万能型产品保费赋值给保额
|
//万能型产品保费赋值给保额
|
||||||
if (this.trialList[index].productCode == 'GFRS_M0003') {
|
if (this.trialList[index].productCode == 'GFRS_M0003') {
|
||||||
|
// console.log('2222222222')
|
||||||
riskItem['amt'] = this.trialList[index].prem
|
riskItem['amt'] = this.trialList[index].prem
|
||||||
}
|
}
|
||||||
//豁免险保额处理
|
//豁免险保额处理
|
||||||
if (item.isRemit == '0') {
|
if (item.isRemit == '0') {
|
||||||
|
// console.log('33333333')
|
||||||
this.trialInfos[index].amt = this.trialList[0].prem
|
this.trialInfos[index].amt = this.trialList[0].prem
|
||||||
}
|
}
|
||||||
|
// console.log(riskItem)
|
||||||
|
console.log(this.trialInfos[index])
|
||||||
riskItem = Object.assign(riskItem, this.trialInfos[index])
|
riskItem = Object.assign(riskItem, this.trialInfos[index])
|
||||||
|
// console.log(riskItem)
|
||||||
riskDTOLst.push(riskItem)
|
riskDTOLst.push(riskItem)
|
||||||
})
|
})
|
||||||
if (!rollInResult) {
|
if (!rollInResult) {
|
||||||
@@ -839,6 +848,5 @@ export default {
|
|||||||
/deep/.van-action-sheet__name {
|
/deep/.van-action-sheet__name {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user