mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 23:56:43 +08:00
Merge branch 'dev' of http://112.124.100.131/GFRS/ebiz-h5 into dev
This commit is contained in:
@@ -1144,7 +1144,7 @@ export default {
|
||||
this.insuredInfo.effectiveDateType = true
|
||||
}
|
||||
this.effectiveDateTypeAbleInsured = false
|
||||
}else {
|
||||
} else {
|
||||
//身份证
|
||||
if (this.insuredInfo.birthday) {
|
||||
let age = utilsAge.getAge(this.insuredInfo.birthday, new Date())
|
||||
@@ -1153,12 +1153,14 @@ export default {
|
||||
this.insuredInfo.effectiveDateType = false
|
||||
}
|
||||
}
|
||||
// 选择户口本时,是否长期默认为是,不可点击,有效止期隐藏
|
||||
// 选择户口本时,是否长期默认为是,不可点击,有效止期隐藏
|
||||
if(value.id==2){
|
||||
this.insuredInfo.effectiveDateType = true
|
||||
this.insuredInfo.certiexpiredate = '9999-01-01'
|
||||
this.effectiveDateTypeAbleInsured = true
|
||||
this.isInsuredCertiexpiredate = false
|
||||
}else{
|
||||
this.insuredInfo.certiexpiredate = ''
|
||||
this.insuredInfo.effectiveDateType = false
|
||||
this.effectiveDateTypeAbleInsured = false
|
||||
this.isInsuredCertiexpiredate = true
|
||||
@@ -1385,15 +1387,34 @@ export default {
|
||||
this.insuredInfo.sex = customerSex ? customerSex.toString() : '0' //性别
|
||||
|
||||
this.insuredInfo.birthday = data.birthday //出生日期
|
||||
// if (data.customerIdType == 1) {
|
||||
|
||||
this.insuredInfo.idType = data.customerIdType //证件类型
|
||||
this.insuredInfo.idNo = data.customerIdNumber //证件类别
|
||||
// }
|
||||
this.insuredInfo.effectiveDateType = false //是否长期
|
||||
if (data.idEffectEndDate == '9999-01-01') {
|
||||
this.insuredInfo.effectiveDateType = true //是否长期
|
||||
} else {
|
||||
this.insuredInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
|
||||
if (data.customerIdType == 2) {
|
||||
this.insuredInfo.effectiveDateType = true
|
||||
this.insuredInfo.certiexpiredate = '9999-01-01'
|
||||
this.effectiveDateTypeAbleInsured = true
|
||||
this.isInsuredCertiexpiredate = false
|
||||
}else{
|
||||
this.isInsuredCertiexpiredate = true
|
||||
// 因为学平险产品 和 少儿卡单 被保人证件类型只有身份证和户口本 所以回显被保人信息时 如果不是身份证和户口本 就隐藏被保人证件类型
|
||||
if ((this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0049' || this.itemProductDTOS.productCode == 'GFRS_M0050' || this.itemProductDTOS.productCode == 'GFRS_M0052')
|
||||
&& data.customerIdType != 1) {
|
||||
this.insuredInfo.idType = ''
|
||||
this.insuredInfo.certiexpiredate = ''
|
||||
this.insuredInfo.effectiveDateType = false;
|
||||
this.effectiveDateTypeAbleInsured = false
|
||||
}else{
|
||||
if (data.idEffectEndDate == '9999-01-01') {
|
||||
this.insuredInfo.certiexpiredate = ''
|
||||
this.insuredInfo.effectiveDateType = true //是否长期
|
||||
this.effectiveDateTypeAbleInsured = true
|
||||
} else {
|
||||
this.insuredInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
|
||||
this.insuredInfo.effectiveDateType = false;
|
||||
this.effectiveDateTypeAbleInsured = false
|
||||
}
|
||||
}
|
||||
}
|
||||
this.insuredInfo.email = data.email //邮箱
|
||||
this.insuredInfo.mobile = data.customerPhone //移动电话
|
||||
@@ -1572,6 +1593,8 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
let insuredAge = utilsAge.getAge(this.insuredInfo.birthday, new Date())
|
||||
console.log('计算年龄', insuredAge)
|
||||
//如果证件类型是身份证
|
||||
if (this.insuredInfo.idType == '1') {
|
||||
console.log('证件类型是身份证')
|
||||
@@ -1648,8 +1671,6 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
let insuredAge = utilsAge.getAge(this.insuredInfo.birthday, new Date())
|
||||
console.log('计算年龄', insuredAge)
|
||||
if (this.itemProductDTOS.productCode === 'GFRS_M0022') {
|
||||
// return
|
||||
// 如果是未成年人
|
||||
@@ -1725,7 +1746,13 @@ export default {
|
||||
return this.$toast('投保人和被保人关系不是本人,证件号码不可一致,请修改。')
|
||||
}
|
||||
}
|
||||
|
||||
// 是否长期选项 赋值
|
||||
if (this.userInfo.effectiveDateType){
|
||||
this.userInfo.certiexpiredate = '9999-01-01'
|
||||
}
|
||||
if (this.insuredInfo.effectiveDateType) {
|
||||
this.insuredInfo.certiexpiredate = '9999-01-01'
|
||||
}
|
||||
this.infoUpdate()
|
||||
// console.log('success')
|
||||
} else {
|
||||
@@ -1982,8 +2009,6 @@ export default {
|
||||
//GFRS-2641--被保险人年龄小于20周岁(不含),婚姻状况默认为未婚;
|
||||
if (age < 20) {
|
||||
this.insuredInfo.marriage = '2'
|
||||
} else {
|
||||
this.insuredInfo.marriage = ''
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2036,6 +2061,7 @@ export default {
|
||||
this.insuredInfo.homeCity = this.userInfo.homeCity
|
||||
this.insuredInfo.homeArea = this.userInfo.homeArea
|
||||
this.insuredInfo.homeAddress = this.userInfo.homeAddress
|
||||
// 针对 3款学平险 和 少儿安康产品 被保人证件类型默认为户口本 --2021-08-26
|
||||
|
||||
// 2516--三款学平险-- 0048义务教育 0049 幼儿园 0050 高中
|
||||
// GFRS-2641--被保险人职业:幼儿园版默认学龄前儿童,义务教育、高中/高等教育默认一般学生
|
||||
@@ -2047,20 +2073,33 @@ export default {
|
||||
this.insuredInfo.marriage = '2'
|
||||
this.insuredInfo.mobile = this.userInfo.mobile
|
||||
this.insuredInfo.email = this.userInfo.email
|
||||
} else if (this.itemProductDTOS.productCode == 'GFRS_M0049') {
|
||||
this.insuredInfo.idType = '2'
|
||||
this.insuredInfo.effectiveDateType = true
|
||||
this.insuredInfo.certiexpiredate = '9999-01-01'
|
||||
// 选择户口本时,是否长期默认为是,不可点击,有效止期隐藏
|
||||
this.effectiveDateTypeAbleInsured = true
|
||||
this.isInsuredCertiexpiredate = false
|
||||
} else if (this.itemProductDTOS.productCode == 'GFRS_M0049') {
|
||||
this.insuredInfo.occupationCode = '2099908'
|
||||
this.insuredInfo.occupationName = '学龄前儿童'
|
||||
this.insuredInfo.idType = '2'
|
||||
this.insuredInfo.effectiveDateType = true
|
||||
this.insuredInfo.certiexpiredate = '9999-01-01'
|
||||
// 选择户口本时,是否长期默认为是,不可点击,有效止期隐藏
|
||||
this.effectiveDateTypeAbleInsured = true
|
||||
this.isInsuredCertiexpiredate = false
|
||||
}
|
||||
// GFRS-2641--少儿安康,默认户口本,且户口本证件截止日期默认长期
|
||||
if (this.itemProductDTOS.productCode == 'GFRS_M0052') {
|
||||
this.insuredInfo.idType = '2'
|
||||
this.insuredInfo.certiexpiredate = ''
|
||||
this.insuredInfo.certiexpiredate = '9999-01-01'
|
||||
this.insuredInfo.effectiveDateType = true
|
||||
this.insuredInfo.occupationCode = '2099907'
|
||||
this.insuredInfo.occupationName = '一般学生'
|
||||
this.insuredInfo.marriage = '2'
|
||||
// 选择户口本时,是否长期默认为是,不可点击,有效止期隐藏
|
||||
this.effectiveDateTypeAbleInsured = true
|
||||
this.isInsuredCertiexpiredate = false
|
||||
}
|
||||
|
||||
// 2516--除万福卡,投保人、被保险人年收入,默认为0,允许修改
|
||||
|
||||
Reference in New Issue
Block a user