惠企保产品配置调整: 惠桂保补充处理 --提交人:阳华祥

This commit is contained in:
yang.huaxiang
2021-03-16 13:52:54 +08:00
parent 84b2ca8345
commit f2376cecfc
4 changed files with 29 additions and 2 deletions

View File

@@ -183,6 +183,13 @@ export default {
/********start 主险选择限制 start******/
// 检验投被人关系 惠企保特殊校验
if (riskProductCode == 'GFRS_M0040') {
if (riskRules.relationLimit(resultData, JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt, this)) {
return
}
}
if (riskRules.ageLimit(resultData, this)) {
return
}

View File

@@ -1,8 +1,26 @@
import { productCheck } from '@/api/ebiz/common/common'
import { getCompany } from '@/api/ebiz/sale/sale'
import CacheUtils from '@/assets/js/utils/cacheUtils'
import DataDictionary from '@/assets/js/utils/data-dictionary'
export default {
//投、被保险人关系险种的限制
relationLimit(resultData, relationToAppnt, vm) {
var flag = '1'
let tips
DataDictionary.hqbRelationToAppnt.forEach(item => {
if (flag == '1'){
if (item.id == relationToAppnt){
flag == '0'
}
}
})
if (flag == '1') {
tips = '惠企保产品被保险人与投保人的关系必须伟本人、配偶、子女!'
vm.$toast(tips)
return true
}
return false
},
//投、被保险人年龄对险种的限制
ageLimit(resultData, vm, isApplicant) {
let age, tips

View File

@@ -1245,6 +1245,7 @@ export default {
//------------------------专为桂企写死--begin---------------//
if (this.specilFlag == '1') {
params.orderDTO.orderInfoDTO.productCode = 'GFRS_M0040'
str = 'specilFlag=1&'
//params.orderDTO.orderInfoDTO.productCode = 'GFRS_M0024'
}
// ------------------------专为桂企写死--end---------------//
@@ -1257,7 +1258,7 @@ export default {
//如果从保单列表编辑按钮或者新增保单进入
localStorage.salePageFlag = '2'
} else {
str = 'edit=1&salePageFlag=2'
str = str + 'edit=1&salePageFlag=2'
}
localStorage.orderNo = resultData.orderNo
// localStorage.insuredDetail = JSON.stringify(this.userInfo)

View File

@@ -588,6 +588,7 @@ export default {
}
},
created() {
this.specilFlag = this.$route.query.specilFlag
//如果是编辑/导航进来
// if (this.$route.query.edit) {
if (localStorage.orderNo) {