mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-15 19:56:45 +08:00
受益人校验
This commit is contained in:
@@ -978,14 +978,15 @@ export default {
|
|||||||
// 1.趸交保费≥20万元或期交保费*总期数≥20万元时,
|
// 1.趸交保费≥20万元或期交保费*总期数≥20万元时,
|
||||||
// 2.指定受益人
|
// 2.指定受益人
|
||||||
// 3.受益人与被保人关系为其他
|
// 3.受益人与被保人关系为其他
|
||||||
if (window.localStorage.getItem('fromAddBeneficiaryInfo') && window.localStorage.getItem('trialList').prem >= '200000') {
|
let beneficiaryInfoList = JSON.parse(window.localStorage.getItem('beneficiaryInfo'))
|
||||||
let beneficiaryInfoList = JSON.parse(window.localStorage.getItem('beneficiaryInfo'))
|
console.log(JSON.parse(window.localStorage.getItem('beneficiaryInfo')))
|
||||||
beneficiaryInfoList.map(item => {
|
if (window.localStorage.getItem('fromAddBeneficiaryInfo') && JSON.parse(window.localStorage.getItem('trialList'))[0].prem >= 200000) {
|
||||||
if (item.relationToInsured == '5') {
|
for (let index = 0; index < beneficiaryInfoList.length; index++) {
|
||||||
|
if (beneficiaryInfoList[index].relationToInsured == 5) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
return false
|
// return false
|
||||||
} else {
|
} else {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user