mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 15:06:45 +08:00
【国富惠桂保团体医疗保险产品上线金掌桂投保开发需求】选择职业弹层单独组件,左上角隐藏返回icon,右上角显示关闭icon,原生回调方法right_button_click设置弹层消失
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<template>
|
||||
<!-- 卡单专用 -->
|
||||
<div class="occupation pb70">
|
||||
<van-search v-model="searchParams" @input="onSearch" placeholder="请输入搜索关键词" show-action shape="round" @clear="clearSearch" @search="onSearch">
|
||||
<div slot="action" @click="onSearch">搜索</div>
|
||||
|
||||
@@ -368,6 +368,7 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
let that = this
|
||||
window.appCallBack = this.appCallBack
|
||||
// 2516--除万福卡,投保人、被保险人年收入,默认为0,允许修改
|
||||
if (this.itemProductDTOS.productCode != 'GFRS_M0032') {
|
||||
this.userInfo.averageAnnualIncome = '0'
|
||||
@@ -436,11 +437,35 @@ export default {
|
||||
* @return {*}
|
||||
*/
|
||||
openOccupation(insureType) {
|
||||
this.occupationShowPicker = !this.occupationShowPicker
|
||||
selectComp(this, 2, '1')
|
||||
this.insureType = insureType
|
||||
if (this.insureType === '1') {
|
||||
this.occupationName = this.userInfo.occupationName
|
||||
this.occupationCode = this.userInfo.occupationCode
|
||||
// this.occupationName = this.userInfo.occupationName
|
||||
// this.occupationCode = this.userInfo.occupationCode
|
||||
}
|
||||
},
|
||||
appCallBack(data) {
|
||||
if (data.trigger == 'right_button_click') {
|
||||
if (this.currentPopupIndex == 1) {
|
||||
if (this.selectUser == '1') {
|
||||
this.customerShowPicker2 = false
|
||||
} else {
|
||||
this.customerShowPicker = false
|
||||
}
|
||||
} else if (this.currentPopupIndex == 2) {
|
||||
this.occupationShowPicker = false
|
||||
} else if (this.currentPopupIndex == 3) {
|
||||
this.isScan = false
|
||||
this.isScan2 = false
|
||||
}
|
||||
// 筛选按钮的点击事件
|
||||
this.$jump({
|
||||
flag: 'navigation',
|
||||
extra: {
|
||||
title: '填写投保人信息',
|
||||
hiddenRight: '1',
|
||||
},
|
||||
})
|
||||
}
|
||||
},
|
||||
areaSelect(insureType) {
|
||||
@@ -489,7 +514,7 @@ export default {
|
||||
this.$jump({
|
||||
flag: 'navigation',
|
||||
extra: {
|
||||
title: '投被保人信息',
|
||||
title: '填写投保人信息',
|
||||
hiddenRight: '1'
|
||||
}
|
||||
})
|
||||
@@ -670,7 +695,7 @@ export default {
|
||||
this.$jump({
|
||||
flag: 'navigation',
|
||||
extra: {
|
||||
title: '投被保人信息',
|
||||
title: '填写投保人信息',
|
||||
hiddenRight: '1'
|
||||
}
|
||||
})
|
||||
@@ -893,7 +918,7 @@ export default {
|
||||
// this.$jump({
|
||||
// flag: 'navigation',
|
||||
// extra: {
|
||||
// title: '投保人信息',
|
||||
// title: '填写投保人信息',
|
||||
// hiddenRight: '1'
|
||||
// }
|
||||
// })
|
||||
|
||||
@@ -558,6 +558,7 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
let that = this
|
||||
window.appCallBack = this.appCallBack
|
||||
// 2516--除万福卡,投保人、被保险人年收入,默认为0,允许修改
|
||||
// if (this.itemProductDTOS.productCode != 'GFRS_M0032') {
|
||||
// this.userInfo.averageAnnualIncome = '0'
|
||||
@@ -647,7 +648,7 @@ export default {
|
||||
this.$jump({
|
||||
flag: 'navigation',
|
||||
extra: {
|
||||
title: '填写投被保人信息',
|
||||
title: '填写被保险人信息',
|
||||
hiddenRight: '1'
|
||||
}
|
||||
})
|
||||
@@ -656,6 +657,8 @@ export default {
|
||||
this.insuredInfo.occupationName = name
|
||||
this.insuredInfo.occupationCode = code
|
||||
this.insuredInfo.occupationType = lifeGrade
|
||||
// this.occupationName = name
|
||||
// this.occupationCode = code
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -668,18 +671,36 @@ export default {
|
||||
if (this.isAppnt) {
|
||||
return
|
||||
}
|
||||
this.$jump({
|
||||
flag: 'navigation',
|
||||
extra: {
|
||||
title: '职业类别',
|
||||
hiddenRight: '1'
|
||||
}
|
||||
})
|
||||
this.occupationShowPicker = !this.occupationShowPicker
|
||||
selectComp(this, 2, '1')
|
||||
// 筛选按钮的点击事件
|
||||
this.insureType = insureType
|
||||
if (this.insureType === '2') {
|
||||
this.occupationName = this.insuredInfo.occupationName
|
||||
this.occupationCode = this.insuredInfo.occupationCode
|
||||
// this.occupationName = this.insuredInfo.occupationName
|
||||
// this.occupationCode = this.insuredInfo.occupationCode
|
||||
}
|
||||
},
|
||||
appCallBack(data) {
|
||||
if (data.trigger == 'right_button_click') {
|
||||
if (this.currentPopupIndex == 1) {
|
||||
if (this.selectUser == '1') {
|
||||
this.customerShowPicker2 = false
|
||||
} else {
|
||||
this.customerShowPicker = false
|
||||
}
|
||||
} else if (this.currentPopupIndex == 2) {
|
||||
this.occupationShowPicker = false
|
||||
} else if (this.currentPopupIndex == 3) {
|
||||
this.isScan = false
|
||||
this.isScan2 = false
|
||||
}
|
||||
// 筛选按钮的点击事件
|
||||
this.$jump({
|
||||
flag: 'navigation',
|
||||
extra: {
|
||||
title: '填写被保险人信息',
|
||||
hiddenRight: '1',
|
||||
},
|
||||
})
|
||||
}
|
||||
},
|
||||
areaSelect(insureType) {
|
||||
@@ -731,28 +752,6 @@ export default {
|
||||
// }
|
||||
// })
|
||||
// },
|
||||
appCallBack() {
|
||||
// 筛选按钮的点击事件
|
||||
this.$jump({
|
||||
flag: 'navigation',
|
||||
extra: {
|
||||
title: '投被保人信息',
|
||||
hiddenRight: '1'
|
||||
}
|
||||
})
|
||||
if (this.currentPopupIndex == 1) {
|
||||
if (this.selectUser == '1') {
|
||||
this.customerShowPicker2 = false
|
||||
} else {
|
||||
this.customerShowPicker = false
|
||||
}
|
||||
} else if (this.currentPopupIndex == 2) {
|
||||
this.occupationShowPicker = false
|
||||
} else if (this.currentPopupIndex == 3) {
|
||||
this.isScan = false
|
||||
this.isScan2 = false
|
||||
}
|
||||
},
|
||||
//弹框选择
|
||||
toSelect(pickerType, valueKey) {
|
||||
// 投被同人不允许编辑
|
||||
@@ -1091,7 +1090,7 @@ export default {
|
||||
this.$jump({
|
||||
flag: 'navigation',
|
||||
extra: {
|
||||
title: '投被保人信息',
|
||||
title: '填写被保险人信息',
|
||||
hiddenRight: '1'
|
||||
}
|
||||
})
|
||||
@@ -1607,7 +1606,7 @@ export default {
|
||||
// this.$jump({
|
||||
// flag: 'navigation',
|
||||
// extra: {
|
||||
// title: '投保人信息',
|
||||
// title: '填写被保险人信息',
|
||||
// hiddenRight: '1'
|
||||
// }
|
||||
// })
|
||||
|
||||
@@ -229,9 +229,9 @@ export default {
|
||||
return this.$toast('被保险人不得多于10人。')
|
||||
}
|
||||
if(item.relation == '1' && item.check){
|
||||
return this.$toast('与被保险人关系为本人,仅允许录入一次。')
|
||||
return this.$toast('与投保人关系为本人,仅允许录入一次。')
|
||||
}else if(item.relation == '2' && item.check){
|
||||
return this.$toast('与被保险人关系为配偶,仅允许录入一次。')
|
||||
return this.$toast('与投保人关系为配偶,仅允许录入一次。')
|
||||
}
|
||||
// if (!item.check) {
|
||||
//增加
|
||||
|
||||
Reference in New Issue
Block a user