mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-19 07:56:45 +08:00
富桂今生保费试算联动关系,性别男女,养老保险金领取年龄不一致
This commit is contained in:
@@ -851,8 +851,21 @@ export default {
|
|||||||
},
|
},
|
||||||
//弹框选择
|
//弹框选择
|
||||||
toSelect(index, index1, columns) {
|
toSelect(index, index1, columns) {
|
||||||
|
this.columns = []
|
||||||
;[this.popupShow, this.productIndex, this.calFactorIndex] = [true, index, index1]
|
;[this.popupShow, this.productIndex, this.calFactorIndex] = [true, index, index1]
|
||||||
this.columns = columns
|
let currentFactor = this.chooseProducts[this.productIndex].calFactorLst
|
||||||
|
let currentEle = currentFactor[this.calFactorIndex]
|
||||||
|
let sex = this.saleInsuredPersonInfo.sex //0男 1女
|
||||||
|
//性别男女,养老保险金领取年龄不一致
|
||||||
|
if (currentEle.code == 'pensionAge') {
|
||||||
|
columns.forEach((item) => {
|
||||||
|
if(item.sex == sex){
|
||||||
|
this.columns.push(item)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
this.columns = columns
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//取消picker
|
//取消picker
|
||||||
onCancel() {
|
onCancel() {
|
||||||
@@ -865,6 +878,7 @@ export default {
|
|||||||
// let productCode = this.chooseProducts[this.productIndex].productCode
|
// let productCode = this.chooseProducts[this.productIndex].productCode
|
||||||
let currentFactor = this.chooseProducts[this.productIndex].calFactorLst
|
let currentFactor = this.chooseProducts[this.productIndex].calFactorLst
|
||||||
let currentEle = currentFactor[this.calFactorIndex]
|
let currentEle = currentFactor[this.calFactorIndex]
|
||||||
|
// let sex = this.saleInsuredPersonInfo.sex //0男 1女
|
||||||
|
|
||||||
//特殊设置:如果需要填写的保费/保额校验规则跟缴费期间挂钩,当改变缴费期间时,将输入框的值恢复默认值1
|
//特殊设置:如果需要填写的保费/保额校验规则跟缴费期间挂钩,当改变缴费期间时,将输入框的值恢复默认值1
|
||||||
if (currentEle.code == 'payEndYear' && this.isTrial == '0') {
|
if (currentEle.code == 'payEndYear' && this.isTrial == '0') {
|
||||||
@@ -1637,11 +1651,11 @@ export default {
|
|||||||
if(item.productCode == 'GFRS_A0010'){
|
if(item.productCode == 'GFRS_A0010'){
|
||||||
this.chooseProducts.splice(index01, 1)
|
this.chooseProducts.splice(index01, 1)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// Dialog.alert({
|
// Dialog.alert({
|
||||||
// title: '提示',
|
// title: '提示',
|
||||||
// message: '当前未投保其他长险附加险,将删除该险种重新选择附加险!'
|
// message: '当前未投保其他长险附加险,将删除该险种重新选择附加险!'
|
||||||
// }).then(() => {
|
// }).then(() => {
|
||||||
// })
|
// })
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2284,7 +2298,7 @@ export default {
|
|||||||
this.trialList[index].productCode == 'GFRS_M0024' ||
|
this.trialList[index].productCode == 'GFRS_M0024' ||
|
||||||
this.trialList[index].productCode == 'GFRS_M0040' ||
|
this.trialList[index].productCode == 'GFRS_M0040' ||
|
||||||
this.trialList[index].productCode == 'GFRS_M0044' ||
|
this.trialList[index].productCode == 'GFRS_M0044' ||
|
||||||
this.trialList[index].productCode == 'GFRS_M0046' ||
|
this.trialList[index].productCode == 'GFRS_M0046'||
|
||||||
this.trialList[index].productCode == 'GFRS_M0051'
|
this.trialList[index].productCode == 'GFRS_M0051'
|
||||||
) {
|
) {
|
||||||
riskItem['dutyLst'] = this.trialInfos[index].duty
|
riskItem['dutyLst'] = this.trialInfos[index].duty
|
||||||
@@ -2294,7 +2308,6 @@ export default {
|
|||||||
if (this.trialList[index].trialType == '1' || this.trialList[index].trialType == '2') {
|
if (this.trialList[index].trialType == '1' || this.trialList[index].trialType == '2') {
|
||||||
riskItem['amt'] = this.trialList[index].amt
|
riskItem['amt'] = this.trialList[index].amt
|
||||||
}
|
}
|
||||||
|
|
||||||
//万能型产品保费赋值给保额
|
//万能型产品保费赋值给保额
|
||||||
//增加判断是否是从建议书跳转过来了的
|
//增加判断是否是从建议书跳转过来了的
|
||||||
if (localStorage.isFrom != 'proposal') {
|
if (localStorage.isFrom != 'proposal') {
|
||||||
@@ -2306,28 +2319,20 @@ export default {
|
|||||||
riskItem['amt'] = this.trialList[index].prem
|
riskItem['amt'] = this.trialList[index].prem
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//豁免险保额处理
|
//豁免险保额处理
|
||||||
if (item.isRemit == '0') {
|
if (item.isRemit == '0') {
|
||||||
this.trialInfos[index].amt = this.trialList[0].prem
|
this.trialInfos[index].amt = this.trialList[0].prem
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.productCode == 'GFRS_A0001') {
|
if (item.productCode == 'GFRS_A0001' || item.productCode == 'GFRS_A0007') {
|
||||||
this.trialInfos[index].amt = this.trialList[0].standPrem
|
this.trialInfos[index].amt = this.trialList[0].standPrem
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.productCode == 'GFRS_A0003' || item.productCode == 'GFRS_A0007') {
|
if (item.productCode == 'GFRS_A0003' || item.productCode == 'GFRS_A0009') {
|
||||||
// bug--鑫享年年+附加豁免投保人定寿B+附加豁免投保人重疾B,投保单号8186270000016187
|
|
||||||
// ①豁免重疾B的保额应该等于主险的保费,该单的豁免重疾B的保额等于主险的保额不正确。
|
|
||||||
this.trialInfos[index].amt = this.trialList[index].amt
|
this.trialInfos[index].amt = this.trialList[index].amt
|
||||||
}
|
}
|
||||||
// GFRS_A0009,GFRS_A0010 这两款时,责任保额不相加
|
|
||||||
if(item.productCode == 'GFRS_A0009' || item.productCode == 'GFRS_A0010'){
|
|
||||||
this.trialInfos[index].amt = this.trialList[index].duty[0].amt
|
|
||||||
}
|
|
||||||
// GFRS_A0011-附加两全 属于非豁免险 但附加两全保额=主险年交保费+其他不带豁免责任的长期期交附加险年交保费
|
|
||||||
if (item.productCode == 'GFRS_A0011') {
|
|
||||||
this.trialInfos[index].amt = this.trialList[0].prem
|
|
||||||
}
|
|
||||||
if (!this.renewalShow(this.mainRiskCode)) {
|
if (!this.renewalShow(this.mainRiskCode)) {
|
||||||
for (let prop of item.calFactorLst) {
|
for (let prop of item.calFactorLst) {
|
||||||
if (prop.type === '4') {
|
if (prop.type === '4') {
|
||||||
@@ -2347,13 +2352,8 @@ export default {
|
|||||||
|
|
||||||
//国富人寿桂企保重大疾病保险产品专写
|
//国富人寿桂企保重大疾病保险产品专写
|
||||||
this.trialInfos.map((v, i) => {
|
this.trialInfos.map((v, i) => {
|
||||||
if (
|
if (v.productCode == 'GFRS_M0024' || v.productCode == 'GFRS_M0040' || v.productCode == 'GFRS_M0044'
|
||||||
v.productCode == 'GFRS_M0024' ||
|
|| v.productCode == 'GFRS_M0046'|| v.productCode == 'GFRS_M0051') {
|
||||||
v.productCode == 'GFRS_M0040' ||
|
|
||||||
v.productCode == 'GFRS_M0044' ||
|
|
||||||
v.productCode == 'GFRS_M0046' ||
|
|
||||||
v.productCode == 'GFRS_M0051'
|
|
||||||
) {
|
|
||||||
delete riskDTOLst[i].duty
|
delete riskDTOLst[i].duty
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -2365,7 +2365,7 @@ export default {
|
|||||||
orderDTO: {
|
orderDTO: {
|
||||||
orderInfoDTO: {
|
orderInfoDTO: {
|
||||||
orderNo: this.$CacheUtils.getLocItem('orderNo'),
|
orderNo: this.$CacheUtils.getLocItem('orderNo'),
|
||||||
productChannel: this.isCrossChannel
|
productChannel:this.isCrossChannel
|
||||||
},
|
},
|
||||||
// appntDTO: {},
|
// appntDTO: {},
|
||||||
insuredDTOs: [insuredDTOItem]
|
insuredDTOs: [insuredDTOItem]
|
||||||
@@ -2374,11 +2374,11 @@ export default {
|
|||||||
|
|
||||||
// 富娃娃&一年定寿交费方式,交费区间固定为月交
|
// 富娃娃&一年定寿交费方式,交费区间固定为月交
|
||||||
if (this.richChildrenFlag) {
|
if (this.richChildrenFlag) {
|
||||||
let product = params.orderDTO.insuredDTOs[0].riskDTOLst.find((item) => {
|
let product = params.orderDTO.insuredDTOs[0].riskDTOLst.find(item => {
|
||||||
return item.productCode === 'GFRS_M0015'
|
return item.productCode === 'GFRS_M0015'
|
||||||
})
|
})
|
||||||
if (product) {
|
if (product) {
|
||||||
let trialProduct = params.orderDTO.insuredDTOs[0].riskDTOLst.find((item) => {
|
let trialProduct = params.orderDTO.insuredDTOs[0].riskDTOLst.find(item => {
|
||||||
return item.productCode === 'GFRS_A0006'
|
return item.productCode === 'GFRS_A0006'
|
||||||
})
|
})
|
||||||
if (trialProduct) {
|
if (trialProduct) {
|
||||||
@@ -2394,9 +2394,9 @@ export default {
|
|||||||
if (localStorage.isFrom == 'proposal') {
|
if (localStorage.isFrom == 'proposal') {
|
||||||
// 从建议书进入, 豁免险保费空值特殊处理
|
// 从建议书进入, 豁免险保费空值特殊处理
|
||||||
let prdCodes = ['GFRS_A0001', 'GFRS_A0007']
|
let prdCodes = ['GFRS_A0001', 'GFRS_A0007']
|
||||||
params.orderDTO.insuredDTOs[0].riskDTOLst.forEach((item) => {
|
params.orderDTO.insuredDTOs[0].riskDTOLst.forEach(item => {
|
||||||
if (prdCodes.includes(item.productCode)) {
|
if (prdCodes.includes(item.productCode)) {
|
||||||
this.trialList.forEach((element) => {
|
this.trialList.forEach(element => {
|
||||||
if (item.productCode == element.productCode) {
|
if (item.productCode == element.productCode) {
|
||||||
item.amt = element.amt
|
item.amt = element.amt
|
||||||
}
|
}
|
||||||
@@ -2412,7 +2412,7 @@ export default {
|
|||||||
//电投
|
//电投
|
||||||
if (localStorage.isFrom == 'sale') {
|
if (localStorage.isFrom == 'sale') {
|
||||||
if (resultData.deleteFlag == '0') {
|
if (resultData.deleteFlag == '0') {
|
||||||
localStorage.salePageFlag = '3'
|
localStorage.salePageFlag = '3';
|
||||||
}
|
}
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'goBack',
|
flag: 'goBack',
|
||||||
@@ -2426,11 +2426,11 @@ export default {
|
|||||||
path: '/common/selectedProduct'
|
path: '/common/selectedProduct'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else if (localStorage.isFrom == 'proposal') {
|
}else if (localStorage.isFrom == 'proposal'){
|
||||||
let proposalOrderNo = this.$CacheUtils.getLocItem('orderNo') || ''
|
let proposalOrderNo = this.$CacheUtils.getLocItem('orderNo') || ''
|
||||||
let url = `/common/selectedProduct?proposalOrderNo=${proposalOrderNo}`
|
let url = `/common/selectedProduct?proposalOrderNo=${proposalOrderNo}`
|
||||||
if (resultData.content.id) {
|
if (resultData.content.id) {
|
||||||
this.saleInsuredPersonInfo.insuredId = resultData.content.id
|
this.saleInsuredPersonInfo.insuredId = resultData.content.id;
|
||||||
this.$CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(this.saleInsuredPersonInfo))
|
this.$CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(this.saleInsuredPersonInfo))
|
||||||
}
|
}
|
||||||
this.$jump({
|
this.$jump({
|
||||||
@@ -2512,6 +2512,5 @@ export default {
|
|||||||
width: 7.46667vw;
|
width: 7.46667vw;
|
||||||
height: 7.46667vw;
|
height: 7.46667vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -452,11 +452,15 @@ export default {
|
|||||||
item[item.code] = factor[item.code]
|
item[item.code] = factor[item.code]
|
||||||
item[item.code + 'Flag'] = factor[item.code + 'Flag']
|
item[item.code + 'Flag'] = factor[item.code + 'Flag']
|
||||||
item.hasFlag = '1'
|
item.hasFlag = '1'
|
||||||
} else {
|
}else if(item.code == 'pensionAge'){
|
||||||
|
//养老保险金领取年龄
|
||||||
|
item[item.code] = factor[item.code]
|
||||||
|
item['sex'] = factor.sex
|
||||||
|
}else {
|
||||||
item[item.code] = factor[item.code]
|
item[item.code] = factor[item.code]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let itemColumns = { text: factor.showContent, value: factor[item.code], flag: factor[item.code + 'Flag'] }
|
let itemColumns = { text: factor.showContent, value: factor[item.code], flag: factor[item.code + 'Flag'],sex:factor.sex}
|
||||||
if (factor.medical !== undefined) {
|
if (factor.medical !== undefined) {
|
||||||
itemColumns.medical = factor.medical
|
itemColumns.medical = factor.medical
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user