mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 07:26:44 +08:00
[fix] 修改 在多个豁免附加险附加到主险时,主险发生变化,只有最有一个附加险的信息发生变化
This commit is contained in:
@@ -1046,9 +1046,9 @@ export default {
|
|||||||
|
|
||||||
//2、豁免险跟主险联动,豁免险缴费期间和保险期间同主险的缴费期间
|
//2、豁免险跟主险联动,豁免险缴费期间和保险期间同主险的缴费期间
|
||||||
let remitIndex = this.getRemitIndex()
|
let remitIndex = this.getRemitIndex()
|
||||||
if (!remitIndex) return
|
//if (!remitIndex) return
|
||||||
|
for(let itemRemitIndex of remitIndex){
|
||||||
this.chooseProducts[remitIndex].calFactorLst.forEach(item => {
|
this.chooseProducts[itemRemitIndex].calFactorLst.forEach(item => {
|
||||||
if (item.code == 'payIntv') {
|
if (item.code == 'payIntv') {
|
||||||
for (let key in mainRiskInfo.payIntv) {
|
for (let key in mainRiskInfo.payIntv) {
|
||||||
item[key] = mainRiskInfo.payIntv[key]
|
item[key] = mainRiskInfo.payIntv[key]
|
||||||
@@ -1073,7 +1073,7 @@ export default {
|
|||||||
item.moneyUnit = 1
|
item.moneyUnit = 1
|
||||||
item.suffix = '元'
|
item.suffix = '元'
|
||||||
}
|
}
|
||||||
if (this.chooseProducts[remitIndex].productCode == 'GFRS_A0003') {
|
if (this.chooseProducts[itemRemitIndex].productCode == 'GFRS_A0003') {
|
||||||
//此附加险的缴费期间=主险缴费期间;保险期间=主险保险期间
|
//此附加险的缴费期间=主险缴费期间;保险期间=主险保险期间
|
||||||
if (item.code == 'insuYear') {
|
if (item.code == 'insuYear') {
|
||||||
item.hasFlag = '1'
|
item.hasFlag = '1'
|
||||||
@@ -1097,12 +1097,13 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
getRemitIndex() {
|
getRemitIndex() {
|
||||||
let remitIndex
|
let remitIndex = []
|
||||||
this.chooseProducts.forEach((item, index) => {
|
this.chooseProducts.forEach((item, index) => {
|
||||||
if (item.isRemit == 0) {
|
if (item.isRemit == 0) {
|
||||||
remitIndex = index
|
remitIndex.push(index)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return remitIndex
|
return remitIndex
|
||||||
@@ -1293,6 +1294,7 @@ export default {
|
|||||||
medical: JSON.parse(localStorage.getItem('saleInsuredPersonInfo')).medical
|
medical: JSON.parse(localStorage.getItem('saleInsuredPersonInfo')).medical
|
||||||
})
|
})
|
||||||
params.trialInfos.push(trialInfo)
|
params.trialInfos.push(trialInfo)
|
||||||
|
|
||||||
})
|
})
|
||||||
this.trialInfos = params.trialInfos
|
this.trialInfos = params.trialInfos
|
||||||
return params
|
return params
|
||||||
|
|||||||
Reference in New Issue
Block a user