mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-15 04:46:45 +08:00
富桂今生保费试算联动关系,性别男女,养老保险金领取年龄不一致
This commit is contained in:
@@ -849,8 +849,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]
|
||||||
|
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
|
this.columns = columns
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//取消picker
|
//取消picker
|
||||||
onCancel() {
|
onCancel() {
|
||||||
@@ -863,6 +876,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') {
|
||||||
@@ -1722,6 +1736,71 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
//国富人寿富桂金生养老年金保险
|
||||||
|
let sex = this.saleInsuredPersonInfo.sex //0男 1女
|
||||||
|
params.trialInfos.forEach((item) => {
|
||||||
|
if (item.productCode == 'GFRS_M0053') {
|
||||||
|
if(sex == '0'){
|
||||||
|
if(
|
||||||
|
(item.pensionAge == '60' && item.payEndYear == '30' && age > 30) ||
|
||||||
|
(item.pensionAge == '60' && item.payEndYear == '20' && age > 40) ||
|
||||||
|
(item.pensionAge == '60' && item.payEndYear == '15' && age > 45) ||
|
||||||
|
(item.pensionAge == '60' && item.payEndYear == '10' && age > 50)
|
||||||
|
) {
|
||||||
|
this.nextStepFlag = true
|
||||||
|
this.$toast('被保险人年龄不适合该交费期间!')
|
||||||
|
trialFlag = false
|
||||||
|
}else if(
|
||||||
|
(item.pensionAge == '65' && item.payEndYear == '30' && age > 35) ||
|
||||||
|
(item.pensionAge == '65' && item.payEndYear == '20' && age > 40) ||
|
||||||
|
(item.pensionAge == '65' && item.payEndYear == '15' && age > 45) ||
|
||||||
|
(item.pensionAge == '65' && item.payEndYear == '10' && age > 50)
|
||||||
|
){
|
||||||
|
this.nextStepFlag = true
|
||||||
|
this.$toast('被保险人年龄不适合该交费期间!')
|
||||||
|
trialFlag = false
|
||||||
|
}else if(
|
||||||
|
(item.pensionAge == '70' && item.payEndYear == '30' && age > 40) ||
|
||||||
|
(item.pensionAge == '70' && item.payEndYear == '20' && age > 50) ||
|
||||||
|
(item.pensionAge == '70' && item.payEndYear == '15' && age > 55)
|
||||||
|
){
|
||||||
|
this.nextStepFlag = true
|
||||||
|
this.$toast('被保险人年龄不适合该交费期间!')
|
||||||
|
trialFlag = false
|
||||||
|
}
|
||||||
|
}else{ //女
|
||||||
|
if(
|
||||||
|
(item.pensionAge == '55' && item.payEndYear == '30' && age > 25) ||
|
||||||
|
(item.pensionAge == '55' && item.payEndYear == '20' && age > 35) ||
|
||||||
|
(item.pensionAge == '55' && item.payEndYear == '15' && age > 40) ||
|
||||||
|
(item.pensionAge == '55' && item.payEndYear == '10' && age > 45)
|
||||||
|
) {
|
||||||
|
this.nextStepFlag = true
|
||||||
|
this.$toast('被保险人年龄不适合该交费期间!')
|
||||||
|
trialFlag = false
|
||||||
|
}else if(
|
||||||
|
(item.pensionAge == '60' && item.payEndYear == '30' && age > 30) ||
|
||||||
|
(item.pensionAge == '60' && item.payEndYear == '20' && age > 40) ||
|
||||||
|
(item.pensionAge == '60' && item.payEndYear == '15' && age > 45) ||
|
||||||
|
(item.pensionAge == '60' && item.payEndYear == '10' && age > 50)
|
||||||
|
){
|
||||||
|
this.nextStepFlag = true
|
||||||
|
this.$toast('被保险人年龄不适合该交费期间!')
|
||||||
|
trialFlag = false
|
||||||
|
}else if(
|
||||||
|
(item.pensionAge == '65' && item.payEndYear == '30' && age > 35) ||
|
||||||
|
(item.pensionAge == '65' && item.payEndYear == '20' && age > 45) ||
|
||||||
|
(item.pensionAge == '65' && item.payEndYear == '15' && age > 50) ||
|
||||||
|
(item.pensionAge == '65' && item.payEndYear == '10' && age > 55)
|
||||||
|
){
|
||||||
|
this.nextStepFlag = true
|
||||||
|
this.$toast('被保险人年龄不适合该交费期间!')
|
||||||
|
trialFlag = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
if (!trialFlag) {
|
if (!trialFlag) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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