mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-08 10:36:43 +08:00
修改卡单被保人职业类型
This commit is contained in:
@@ -272,6 +272,7 @@
|
||||
label='职业类别'
|
||||
placeholder='请输入'
|
||||
name='职业类别'
|
||||
readonly
|
||||
:value='insuredInfo.occupationName'
|
||||
right-icon='arrow'
|
||||
/>
|
||||
@@ -605,8 +606,7 @@
|
||||
>元
|
||||
</van-button
|
||||
>
|
||||
<van-goods-action-button type='danger' text='立即投保' @click='nextStep' v-no-more-click='1000'
|
||||
style='border-radius: 0em; width: 50%; height: 40px' />
|
||||
<van-goods-action-button type='danger' text='立即投保' @click='nextStep' v-no-more-click='1000' style='border-radius: 0em; width: 50%; height: 40px' />
|
||||
</van-goods-action>
|
||||
<!-- <van-dialog v-model="showDialog" title="温馨提示" message="被保险人年龄与所投保的方案不一致,请核实。" show-cancel-button @confirm="nextStep" confirmButtonText="继续投保" cancelButtonText="核对信息"> -->
|
||||
|
||||
@@ -679,6 +679,7 @@ import Vue from 'vue'
|
||||
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant'
|
||||
import riskRules from '../common/risk-rules'
|
||||
import occupationList from '@/components/ebiz/occipation/data/occupation'
|
||||
import {idNoCheck8} from "../sale/js/verification";
|
||||
|
||||
DataDictionary.relationToAppnt = DataDictionary.relationToAppnt.slice(0, 4)
|
||||
Vue.use(Checkbox).use(CheckboxGroup)
|
||||
@@ -1833,9 +1834,14 @@ export default {
|
||||
this.insuredInfo.homeAddress = data.homeAddress //家庭详细地址
|
||||
//2516--三个学平险--被保险人职业类别默认学生,允许修改。
|
||||
if (this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0049' || this.itemProductDTOS.productCode == 'GFRS_M0050'
|
||||
|| this.itemProductDTOS.productCode === 'GFRS_M0062' || this.itemProductDTOS.productCode === 'GFRS_M0063'||this.itemProductDTOS.productCode === 'GFRS_M0064') {
|
||||
|| this.itemProductDTOS.productCode === 'GFRS_M0063'||this.itemProductDTOS.productCode === 'GFRS_M0064') {
|
||||
this.insuredInfo.occupationCode = '2099907'
|
||||
this.insuredInfo.occupationName = '一般学生'
|
||||
this.insuredInfo.occupationType = '1'
|
||||
} else if (this.itemProductDTOS.productCode === 'GFRS_M0062') {
|
||||
this.insuredInfo.occupationCode = '2099908'
|
||||
this.insuredInfo.occupationName = '学龄前儿童'
|
||||
this.insuredInfo.occupationType = '1'
|
||||
} else {
|
||||
this.insuredInfo.occupationCode = data.occupationCode
|
||||
this.insuredInfo.occupationName = data.occupationName
|
||||
@@ -2064,6 +2070,11 @@ export default {
|
||||
// return this.$toast('户口本的证件号码长度应等于18位')
|
||||
// }
|
||||
}
|
||||
else if (this.userInfo.idType == '8') {
|
||||
if (idNoCheck8(this.userInfo,'cardList').text){
|
||||
return this.$toast(idNoCheck8(this.userInfo,'cardList').text)
|
||||
}
|
||||
}
|
||||
let insuredAge = utilsAge.getAge(this.insuredInfo.birthday, new Date(this.cvaliDate))
|
||||
console.log('计算年龄', insuredAge)
|
||||
//如果证件类型是身份证或户口本
|
||||
@@ -2203,6 +2214,11 @@ export default {
|
||||
return this.$toast('您填写的证件号码有误')
|
||||
}
|
||||
}
|
||||
else if (this.insuredInfo.idType == '8') {
|
||||
if (idNoCheck8(this.insuredInfo,'cardList').text){
|
||||
return this.$toast(idNoCheck8(this.insuredInfo,'cardList').text)
|
||||
}
|
||||
}
|
||||
if (this.itemProductDTOS.productCode === 'GFRS_M0022') {
|
||||
// return
|
||||
// 如果是未成年人
|
||||
@@ -2751,10 +2767,11 @@ export default {
|
||||
// GFRS-2641--被保险人职业:幼儿园版默认学龄前儿童,义务教育、高中/高等教育默认一般学生
|
||||
// 被保险人婚姻默认未婚,允许修改
|
||||
// 被保险人手机及邮箱默认投保人,允许修改
|
||||
if (this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0050' || this.itemProductDTOS.productCode === 'GFRS_M0062'
|
||||
if (this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0050'
|
||||
|| this.itemProductDTOS.productCode === 'GFRS_M0064') {
|
||||
this.insuredInfo.occupationCode = '2099907'
|
||||
this.insuredInfo.occupationName = '一般学生'
|
||||
this.insuredInfo.occupationType = '1'
|
||||
this.insuredInfo.marriage = '2'
|
||||
this.insuredInfo.mobile = this.userInfo.mobile
|
||||
this.insuredInfo.email = this.userInfo.email
|
||||
@@ -2766,8 +2783,22 @@ export default {
|
||||
// this.isInsuredCertiexpiredate = false
|
||||
this.isInsuredCertiexpiredate = true
|
||||
} else if (this.itemProductDTOS.productCode == 'GFRS_M0049' || this.itemProductDTOS.productCode === 'GFRS_M0063') {
|
||||
this.insuredInfo.occupationCode = '2099907'
|
||||
this.insuredInfo.occupationName = '一般学生'
|
||||
this.insuredInfo.occupationType = '1'
|
||||
this.insuredInfo.marriage = '2'
|
||||
this.insuredInfo.idType = '2'
|
||||
// this.insuredInfo.effectiveDateType = true
|
||||
// this.insuredInfo.certiexpiredate = '9999-12-31'
|
||||
// 去掉--选择户口本时,是否长期默认为是,不可点击,有效止期隐藏(证件类型为户口本时,被保人年龄小于16周岁时,户口本有效止期长期变更为第16周岁日期)
|
||||
// this.effectiveDateTypeAbleInsured = true
|
||||
// this.isInsuredCertiexpiredate = false
|
||||
this.isInsuredCertiexpiredate = true
|
||||
}
|
||||
else if (this.itemProductDTOS.productCode === 'GFRS_M0062') {
|
||||
this.insuredInfo.occupationCode = '2099908'
|
||||
this.insuredInfo.occupationName = '学龄前儿童'
|
||||
this.insuredInfo.occupationType = '1'
|
||||
this.insuredInfo.marriage = '2'
|
||||
this.insuredInfo.idType = '2'
|
||||
// this.insuredInfo.effectiveDateType = true
|
||||
@@ -2784,6 +2815,7 @@ export default {
|
||||
// this.insuredInfo.effectiveDateType = true
|
||||
this.insuredInfo.occupationCode = '2099907'
|
||||
this.insuredInfo.occupationName = '一般学生'
|
||||
this.insuredInfo.occupationType = '1'
|
||||
this.insuredInfo.marriage = '2'
|
||||
// 去掉--选择户口本时,是否长期默认为是,不可点击,有效止期隐藏(证件类型为户口本时,被保人年龄小于16周岁时,户口本有效止期长期变更为第16周岁日期)
|
||||
this.effectiveDateTypeAbleInsured = true
|
||||
|
||||
Reference in New Issue
Block a user