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