卡单隐藏清空家庭住址

This commit is contained in:
刘慧影
2025-07-23 11:08:27 +08:00
parent 241c30266a
commit f6ae890e89
3 changed files with 249 additions and 232 deletions

View File

@@ -339,9 +339,9 @@ export default {
healthGrade: '', //健康等级 healthGrade: '', //健康等级
nativeplace: '1', //国家地区 nativeplace: '1', //国家地区
marriageStatus: '', //婚姻状况 marriageStatus: '', //婚姻状况
homeProvince: '450000', //家庭省 homeProvince: '', //家庭省
homeCity: '450100', //家庭市 homeCity: '', //家庭市
homeArea: '450101', //家庭区 homeArea: '', //家庭区
homeName: '', //联系地址 homeName: '', //联系地址
homeAddress: '', //详细地址 homeAddress: '', //详细地址
mobile: '', //移动电话 mobile: '', //移动电话
@@ -404,6 +404,14 @@ export default {
cardOrderDetail(cardInfoDTO).then(res => { cardOrderDetail(cardInfoDTO).then(res => {
if (res.result == '0') { if (res.result == '0') {
Object.assign(that.userInfo,res.orderDTO.appntDTO) Object.assign(that.userInfo,res.orderDTO.appntDTO)
that.userInfo.certiexpiredate =''
that.userInfo.effectiveDateType =''
that.userInfo.homeProvince =''
that.userInfo.homeCity =''
that.userInfo.homeArea =''
that.userInfo.homeName =''
that.userInfo.homeCity =''
that.userInfo.homeAddress =''
// that.userInfo.effectiveDateType = that.userInfo.effectiveDateType == 'true'?true:false // that.userInfo.effectiveDateType = that.userInfo.effectiveDateType == 'true'?true:false
// that.userInfo.certiexpiredate = that.userInfo.effectiveDateType == 'true'?'':that.userInfo.certiexpiredate // that.userInfo.certiexpiredate = that.userInfo.effectiveDateType == 'true'?'':that.userInfo.certiexpiredate
// that.userInfo.homeName = getAreaName([ // that.userInfo.homeName = getAreaName([
@@ -517,7 +525,7 @@ export default {
areaSelect(insureType) { areaSelect(insureType) {
;[this.homeShow, this.insureType] = [true, insureType] ;[this.homeShow, this.insureType] = [true, insureType]
if (insureType === '1') { if (insureType === '1') {
this.areaCode = this.userInfo.homeArea // this.areaCode = this.userInfo.homeArea
} }
}, },
//监听名字变化 //监听名字变化

View File

@@ -414,9 +414,9 @@ export default {
healthGrade: '', //健康等级 healthGrade: '', //健康等级
nativeplace: '1', //国家地区 nativeplace: '1', //国家地区
marriageStatus: '', //婚姻状况 marriageStatus: '', //婚姻状况
homeProvince: '450000', //家庭省 homeProvince: '', //家庭省
homeCity: '450100', //家庭市 homeCity: '', //家庭市
homeArea: '450101', //家庭区 homeArea: '', //家庭区
homeName: '', //联系地址 homeName: '', //联系地址
homeAddress: '', //详细地址 homeAddress: '', //详细地址
mobile: '', //移动电话 mobile: '', //移动电话
@@ -445,9 +445,9 @@ export default {
nativeplace: '1', //国家地区 nativeplace: '1', //国家地区
marriageStatus: '', //婚姻状况 marriageStatus: '', //婚姻状况
marriage: '', marriage: '',
homeProvince: '450000', //家庭省 homeProvince: '', //家庭省
homeCity: '450100', //家庭市 homeCity: '', //家庭市
homeArea: '450101', //家庭区 homeArea: '', //家庭区
homeName: '', //联系地址 homeName: '', //联系地址
homeAddress: '', //详细地址 homeAddress: '', //详细地址
mobile: '', //移动电话 mobile: '', //移动电话
@@ -574,6 +574,7 @@ export default {
let age = utilsAge.getAge(this.insuredInfo.birthday, new Date()) let age = utilsAge.getAge(this.insuredInfo.birthday, new Date())
this.effectiveDateTypeAbleInsured = !(age >= 45) this.effectiveDateTypeAbleInsured = !(age >= 45)
} }
console.log(123133,this.insureInfo, 'that.insuredInfo')
//编辑时走试算接口 //编辑时走试算接口
this.insureTrial(1) this.insureTrial(1)
} }
@@ -595,6 +596,14 @@ export default {
} }
} }
} }
this.insuredInfo.certiexpiredate =''
this.insuredInfo.effectiveDateType =''
this.insuredInfo.homeProvince =''
this.insuredInfo.homeCity =''
this.insuredInfo.homeArea =''
this.insuredInfo.homeName =''
this.insuredInfo.homeCity =''
this.insuredInfo.homeAddress =''
} }
}) })
}, },
@@ -680,7 +689,7 @@ export default {
} }
;[this.homeShow, this.insureType] = [true, insureType] ;[this.homeShow, this.insureType] = [true, insureType]
if (insureType === '2') { if (insureType === '2') {
this.areaCode = this.insuredInfo.homeArea // this.areaCode = this.insuredInfo.homeArea
} }
}, },
//监听名字变化 //监听名字变化

View File

@@ -220,7 +220,7 @@
@click="selectClick('3', '', '2')">证件扫描 @click="selectClick('3', '', '2')">证件扫描
</van-button> </van-button>
</van-field> </van-field>
<FieldDatePicter <!-- <FieldDatePicter
v-if="isInsuredCertiexpiredate" v-if="isInsuredCertiexpiredate"
:v-validate='{ required: certiexpiredateRequiredInsured }' :v-validate='{ required: certiexpiredateRequiredInsured }'
required required
@@ -240,7 +240,7 @@
>长期 >长期
</van-checkbox </van-checkbox
> >
</div> </div> -->
<select-radio required :radios='sexRadio' label='性别' name='性别' v-validate="'required'" <select-radio required :radios='sexRadio' label='性别' name='性别' v-validate="'required'"
:value.sync='insuredInfo.sex'></select-radio> :value.sync='insuredInfo.sex'></select-radio>
<FieldDatePicter <FieldDatePicter
@@ -783,9 +783,9 @@ export default {
healthGrade: '', //健康等级 healthGrade: '', //健康等级
nativeplace: '1', //国家地区 nativeplace: '1', //国家地区
marriageStatus: '', //婚姻状况 marriageStatus: '', //婚姻状况
homeProvince: '450000', //家庭省 homeProvince: '', //家庭省
homeCity: '450100', //家庭市 homeCity: '', //家庭市
homeArea: '450101', //家庭区 homeArea: '', //家庭区
homeName: '', //联系地址 homeName: '', //联系地址
homeAddress: '', //详细地址 homeAddress: '', //详细地址
mobile: '', //移动电话 mobile: '', //移动电话
@@ -814,9 +814,9 @@ export default {
nativeplace: '', //国家地区 nativeplace: '', //国家地区
marriageStatus: '', //婚姻状况 marriageStatus: '', //婚姻状况
marriage: '', marriage: '',
homeProvince: '450000', //家庭省 homeProvince: '', //家庭省
homeCity: '450100', //家庭市 homeCity: '', //家庭市
homeArea: '450101', //家庭区 homeArea: '', //家庭区
homeName: '', //联系地址 homeName: '', //联系地址
homeAddress: '', //详细地址 homeAddress: '', //详细地址
mobile: '', //移动电话 mobile: '', //移动电话
@@ -1103,25 +1103,25 @@ export default {
console.log('errerr', err) console.log('errerr', err)
}) })
}, },
//长期状态改变时 // //长期状态改变时
effectiveDataTypeChange(val) { // effectiveDataTypeChange(val) {
//勾选长期状态时,证件截止日期置空 // //勾选长期状态时,证件截止日期置空
if (val) { // if (val) {
this.userInfo.certiexpiredate = '' // this.userInfo.certiexpiredate = ''
this.certiexpiredateRequired = false // this.certiexpiredateRequired = false
} else { // } else {
this.certiexpiredateRequired = true // this.certiexpiredateRequired = true
} // }
}, // },
//长期状态改变时--被保人 // //长期状态改变时--被保人
effectiveDataTypeChangeInsured(val) { // effectiveDataTypeChangeInsured(val) {
if (val) { // if (val) {
this.insuredInfo.certiexpiredate = '' // this.insuredInfo.certiexpiredate = ''
this.certiexpiredateRequiredInsured = false // this.certiexpiredateRequiredInsured = false
} else { // } else {
this.certiexpiredateRequiredInsured = true // this.certiexpiredateRequiredInsured = true
} // }
}, // },
/** /**
* @description: * @description:
* @param {*} data * @param {*} data
@@ -1493,40 +1493,40 @@ export default {
this.insuredInfo.idNo = this.insuredInfo.certiexpiredate = this.insuredInfo.birthday = '' this.insuredInfo.idNo = this.insuredInfo.certiexpiredate = this.insuredInfo.birthday = ''
//身份证以外的证件类型可以使用长期 //身份证以外的证件类型可以使用长期
//value.id 1 居民身份证 todo //value.id 1 居民身份证 todo
if (value.id != '1') { // if (value.id != '1') {
//2516--三个学平险--被保险人身份信息选择仅保留“身份证、户口本”,目前选择户口本仍要填写身份证到期 // //2516--三个学平险--被保险人身份信息选择仅保留“身份证、户口本”,目前选择户口本仍要填写身份证到期
//时间,如果选择户口本项,默认为长期。 // //时间,如果选择户口本项,默认为长期。
if (this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0049' || this.itemProductDTOS.productCode == 'GFRS_M0050' // 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_M0062' || this.itemProductDTOS.productCode === 'GFRS_M0063'||this.itemProductDTOS.productCode === 'GFRS_M0064') {
this.insuredInfo.effectiveDateType = true
}
this.effectiveDateTypeAbleInsured = false
} else {
//身份证
if (this.insuredInfo.birthday) {
let age = utilsAge.getAge(this.insuredInfo.birthday, new Date())
this.effectiveDateTypeAbleInsured = !(age >= 45)
//身份证年龄小于等于45不可选长期
this.insuredInfo.effectiveDateType = false
}
}
// 去掉--选择户口本时是否长期默认为是不可点击有效止期隐藏证件类型为户口本时被保人年龄小于16周岁时户口本有效止期长期变更为第16周岁日期
if(value.id==2){
this.idLimitInsured = true
//证件类型户口本时,证件截止日期和是否长期不可选择
this.effectiveDateTypeAbleInsured = true //长期按钮是否禁用--被保人
this.insuredInfo.effectiveDateType = false //是否长期
// this.insuredInfo.effectiveDateType = true // this.insuredInfo.effectiveDateType = true
// this.insuredInfo.certiexpiredate = '9999-12-31' // }
// this.effectiveDateTypeAbleInsured = true // this.effectiveDateTypeAbleInsured = false
// this.isInsuredCertiexpiredate = false // } else {
this.isInsuredCertiexpiredate = true // //身份证
}else{ // if (this.insuredInfo.birthday) {
this.insuredInfo.certiexpiredate = '' // let age = utilsAge.getAge(this.insuredInfo.birthday, new Date())
this.insuredInfo.effectiveDateType = false // this.effectiveDateTypeAbleInsured = !(age >= 45)
this.effectiveDateTypeAbleInsured = false // //身份证年龄小于等于45不可选长期
this.isInsuredCertiexpiredate = true // this.insuredInfo.effectiveDateType = false
} // }
// }
// 去掉--选择户口本时是否长期默认为是不可点击有效止期隐藏证件类型为户口本时被保人年龄小于16周岁时户口本有效止期长期变更为第16周岁日期
// if(value.id==2){
// this.idLimitInsured = true
// //证件类型户口本时,证件截止日期和是否长期不可选择
// this.effectiveDateTypeAbleInsured = true //长期按钮是否禁用--被保人
// this.insuredInfo.effectiveDateType = false //是否长期
// // this.insuredInfo.effectiveDateType = true
// // this.insuredInfo.certiexpiredate = '9999-12-31'
// // this.effectiveDateTypeAbleInsured = true
// // this.isInsuredCertiexpiredate = false
// this.isInsuredCertiexpiredate = true
// }else{
// this.insuredInfo.certiexpiredate = ''
// this.insuredInfo.effectiveDateType = false
// this.effectiveDateTypeAbleInsured = false
// this.isInsuredCertiexpiredate = true
// }
this.insuredInfo.idType = value.id this.insuredInfo.idType = value.id
} else if (this.pickerType === 'appntNpType') { } else if (this.pickerType === 'appntNpType') {
this.userInfo.npType = value.id this.userInfo.npType = value.id
@@ -1783,46 +1783,46 @@ export default {
this.insuredInfo.birthday = data.birthday //出生日期 this.insuredInfo.birthday = data.birthday //出生日期
this.insuredInfo.idType = data.customerIdType //证件类型 this.insuredInfo.idType = data.customerIdType //证件类型
this.insuredInfo.idNo = data.customerIdNumber //证件类别 this.insuredInfo.idNo = data.customerIdNumber //证件类别
if(this.insuredInfo.idType == '2' && idToData(this.insuredInfo.idNo).age <16){ // if(this.insuredInfo.idType == '2' && idToData(this.insuredInfo.idNo).age <16){
// 获取出生日期年份16证件类型为户口本时被保人年龄小于16周岁时卡单户口本有效止期长期变更为第16周岁日期 // // 获取出生日期年份16证件类型为户口本时被保人年龄小于16周岁时卡单户口本有效止期长期变更为第16周岁日期
let year = Number(this.insuredInfo.birthday.substr(0,4)) + 16 // let year = Number(this.insuredInfo.birthday.substr(0,4)) + 16
if(this.insuredInfo.birthday.substr(5,5) == '02-29'){ // if(this.insuredInfo.birthday.substr(5,5) == '02-29'){
// 获取某年某月一共多少天 // // 获取某年某月一共多少天
let date = new Date(year, 2, 1) // let date = new Date(year, 2, 1)
let dayEnd = new Date(date.getTime() - 864e5).getDate() // let dayEnd = new Date(date.getTime() - 864e5).getDate()
this.insuredInfo.certiexpiredate = year +'-02-'+ dayEnd // this.insuredInfo.certiexpiredate = year +'-02-'+ dayEnd
}else{ // }else{
this.insuredInfo.certiexpiredate = year +'-'+ this.insuredInfo.birthday.substr(5,5) // this.insuredInfo.certiexpiredate = year +'-'+ this.insuredInfo.birthday.substr(5,5)
} // }
} // }
if (data.customerIdType == 2) { // if (data.customerIdType == 2) {
this.insuredInfo.effectiveDateType = true // this.insuredInfo.effectiveDateType = true
this.insuredInfo.certiexpiredate = '9999-12-31' // this.insuredInfo.certiexpiredate = '9999-12-31'
this.effectiveDateTypeAbleInsured = true // this.effectiveDateTypeAbleInsured = true
this.isInsuredCertiexpiredate = false // this.isInsuredCertiexpiredate = false
} // }
else{ // else{
this.isInsuredCertiexpiredate = true // this.isInsuredCertiexpiredate = true
// 因为学平险产品 少儿卡单 被保人证件类型只有身份证和户口本 所以回显被保人信息时 如果不是身份证和户口本 就隐藏被保人证件类型 // // 因为学平险产品 和 少儿卡单 被保人证件类型只有身份证和户口本 所以回显被保人信息时 如果不是身份证和户口本 就隐藏被保人证件类型
if ((this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0049' || this.itemProductDTOS.productCode == 'GFRS_M0050' // if ((this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0049' || this.itemProductDTOS.productCode == 'GFRS_M0050'
|| this.itemProductDTOS.productCode == 'GFRS_M0052' || this.itemProductDTOS.productCode === 'GFRS_M0062' || this.itemProductDTOS.productCode === 'GFRS_M0063'||this.itemProductDTOS.productCode === 'GFRS_M0064') // || this.itemProductDTOS.productCode == 'GFRS_M0052' || this.itemProductDTOS.productCode === 'GFRS_M0062' || this.itemProductDTOS.productCode === 'GFRS_M0063'||this.itemProductDTOS.productCode === 'GFRS_M0064')
&& data.customerIdType != 1) { // && data.customerIdType != 1) {
this.insuredInfo.idType = '' // this.insuredInfo.idType = ''
this.insuredInfo.certiexpiredate = '' // this.insuredInfo.certiexpiredate = ''
this.insuredInfo.effectiveDateType = false; // this.insuredInfo.effectiveDateType = false;
this.effectiveDateTypeAbleInsured = false // this.effectiveDateTypeAbleInsured = false
}else{ // }else{
if (data.idEffectEndDate == '9999-12-31') { // if (data.idEffectEndDate == '9999-12-31') {
this.insuredInfo.certiexpiredate = '' // this.insuredInfo.certiexpiredate = ''
this.insuredInfo.effectiveDateType = true //是否长期 // this.insuredInfo.effectiveDateType = true //是否长期
this.effectiveDateTypeAbleInsured = true // this.effectiveDateTypeAbleInsured = true
} else { // } else {
this.insuredInfo.certiexpiredate = data.idEffectEndDate //证件截止日期 // this.insuredInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
this.insuredInfo.effectiveDateType = false; // this.insuredInfo.effectiveDateType = false;
this.effectiveDateTypeAbleInsured = false // this.effectiveDateTypeAbleInsured = false
} // }
} // }
} // }
this.insuredInfo.email = data.email //邮箱 this.insuredInfo.email = data.email //邮箱
this.insuredInfo.mobile = data.customerPhone //移动电话 this.insuredInfo.mobile = data.customerPhone //移动电话
// this.insuredInfo.homeProvince = data.homeProvince //家庭省 // this.insuredInfo.homeProvince = data.homeProvince //家庭省
@@ -2122,36 +2122,36 @@ export default {
console.log('证件号码校验有误') console.log('证件号码校验有误')
return this.$toast('您填写的证件号码有误') return this.$toast('您填写的证件号码有误')
} }
if (insuredAge < 46 && this.insuredInfo.effectiveDateType == true) { // if (insuredAge < 46 && this.insuredInfo.effectiveDateType == true) {
return this.$toast('证件有效期错误年龄小于46周岁的公民身份证有效期不能为长期') // return this.$toast('证件有效期错误年龄小于46周岁的公民身份证有效期不能为长期')
} // }
// 年龄在 16-25 周岁之间 // // 年龄在 16-25 周岁之间
if (insuredAge <= 15) { // if (insuredAge <= 15) {
if (Date.parse(this.insuredInfo.certiexpiredate) - Date.parse(new Date()) > Date.parse('1975-01-01')) { // if (Date.parse(this.insuredInfo.certiexpiredate) - Date.parse(new Date()) > Date.parse('1975-01-01')) {
this.insuredInfo.certiexpiredate = '' // this.insuredInfo.certiexpiredate = ''
this.$refs.certiexpiredate.date = '' // this.$refs.certiexpiredate.date = ''
// this.effectiveDateTypeAble = true // // this.effectiveDateTypeAble = true
return this.$toast('证件有效期错误未满16周岁的公民身份证有效期应小于等于5年') // return this.$toast('证件有效期错误未满16周岁的公民身份证有效期应小于等于5年')
} // }
//年龄在 16-25 周岁之间 // //年龄在 16-25 周岁之间
} else if (insuredAge >= 16 && insuredAge <= 25) { // } else if (insuredAge >= 16 && insuredAge <= 25) {
console.log('年龄在16-25周岁之间') // console.log('年龄在16-25周岁之间')
if (Date.parse(this.insuredInfo.certiexpiredate) - Date.parse(new Date()) > Date.parse('1980-01-01')) { // if (Date.parse(this.insuredInfo.certiexpiredate) - Date.parse(new Date()) > Date.parse('1980-01-01')) {
this.insuredInfo.certiexpiredate = '' // this.insuredInfo.certiexpiredate = ''
this.$refs.certiexpiredate.date = '' // this.$refs.certiexpiredate.date = ''
this.certiexpiredateRequiredInsured = true // this.certiexpiredateRequiredInsured = true
return this.$toast('证件有效期不正常16周岁至25周岁公民身份证有效期应小于等于10年') // return this.$toast('证件有效期不正常16周岁至25周岁公民身份证有效期应小于等于10年')
} // }
//年龄在 26-45 周岁之间 // //年龄在 26-45 周岁之间
} else if (insuredAge >= 26 && insuredAge <= 45) { // } else if (insuredAge >= 26 && insuredAge <= 45) {
if (Date.parse(this.insuredInfo.certiexpiredate) - Date.parse(new Date()) > Date.parse('1990-01-01')) { // if (Date.parse(this.insuredInfo.certiexpiredate) - Date.parse(new Date()) > Date.parse('1990-01-01')) {
this.insuredInfo.certiexpiredate = '' // this.insuredInfo.certiexpiredate = ''
this.$refs.certiexpiredate.date = '' // this.$refs.certiexpiredate.date = ''
this.certiexpiredateRequiredInsured = true // this.certiexpiredateRequiredInsured = true
return this.$toast('证件有效期不正常26周岁至45周岁公民身份证有效期应小于等于20年') // return this.$toast('证件有效期不正常26周岁至45周岁公民身份证有效期应小于等于20年')
} // }
} // }
} }
else if (this.insuredInfo.idType == '2'){ else if (this.insuredInfo.idType == '2'){
if (this.insuredInfo.nativeplace != '1') { if (this.insuredInfo.nativeplace != '1') {
@@ -2310,82 +2310,82 @@ export default {
// if (this.insuredInfo.effectiveDateType) { // if (this.insuredInfo.effectiveDateType) {
// this.insuredInfo.certiexpiredate = '9999-12-31' // this.insuredInfo.certiexpiredate = '9999-12-31'
// } // }
switch (this.userInfo.homeArea) { // switch (this.userInfo.homeArea) {
case "500129": // case "500129":
this.userInfo.homeArea = '500229' // this.userInfo.homeArea = '500229'
break // break
case '500130': // case '500130':
this.userInfo.homeArea = '500230' // this.userInfo.homeArea = '500230'
break // break
case '500131': // case '500131':
this.userInfo.homeArea = '500231' // this.userInfo.homeArea = '500231'
break // break
case '500133': // case '500133':
this.userInfo.homeArea = '500233' // this.userInfo.homeArea = '500233'
break // break
case '500135': // case '500135':
this.userInfo.homeArea = '500235' // this.userInfo.homeArea = '500235'
break // break
case '500136': // case '500136':
this.userInfo.homeArea = '500236' // this.userInfo.homeArea = '500236'
break // break
case '500137': // case '500137':
this.userInfo.homeArea = '500237' // this.userInfo.homeArea = '500237'
break // break
case '500138': // case '500138':
this.userInfo.homeArea = '500238' // this.userInfo.homeArea = '500238'
break // break
case '500140': // case '500140':
this.userInfo.homeArea = '500240' // this.userInfo.homeArea = '500240'
break // break
case '500141': // case '500141':
this.userInfo.homeArea = '500241' // this.userInfo.homeArea = '500241'
break // break
case '500142': // case '500142':
this.userInfo.homeArea = '500242' // this.userInfo.homeArea = '500242'
break // break
case '500143': // case '500143':
this.userInfo.homeArea = '500243' // this.userInfo.homeArea = '500243'
break // break
} // }
switch (this.insuredInfo.homeArea) { // switch (this.insuredInfo.homeArea) {
case "500129": // case "500129":
this.insuredInfo.homeArea = '500229' // this.insuredInfo.homeArea = '500229'
break // break
case '500130': // case '500130':
this.insuredInfo.homeArea = '500230' // this.insuredInfo.homeArea = '500230'
break // break
case '500131': // case '500131':
this.insuredInfo.homeArea = '500231' // this.insuredInfo.homeArea = '500231'
break // break
case '500133': // case '500133':
this.insuredInfo.homeArea = '500233' // this.insuredInfo.homeArea = '500233'
break // break
case '500135': // case '500135':
this.insuredInfo.homeArea = '500235' // this.insuredInfo.homeArea = '500235'
break // break
case '500136': // case '500136':
this.insuredInfo.homeArea = '500236' // this.insuredInfo.homeArea = '500236'
break // break
case '500137': // case '500137':
this.insuredInfo.homeArea = '500237' // this.insuredInfo.homeArea = '500237'
break // break
case '500138': // case '500138':
this.insuredInfo.homeArea = '500238' // this.insuredInfo.homeArea = '500238'
break // break
case '500140': // case '500140':
this.insuredInfo.homeArea = '500240' // this.insuredInfo.homeArea = '500240'
break // break
case '500141': // case '500141':
this.insuredInfo.homeArea = '500241' // this.insuredInfo.homeArea = '500241'
break // break
case '500142': // case '500142':
this.insuredInfo.homeArea = '500242' // this.insuredInfo.homeArea = '500242'
break // break
case '500143': // case '500143':
this.insuredInfo.homeArea = '500243' // this.insuredInfo.homeArea = '500243'
break // break
} // }
console.log(this.insuredInfo,'this.insuredInfo') console.log(this.insuredInfo,'this.insuredInfo')
if(this.itemProductDTOS.productCode === 'GFRS_M0091'){ if(this.itemProductDTOS.productCode === 'GFRS_M0091'){
if(this.proSchemeCode == '06860438-A') { if(this.proSchemeCode == '06860438-A') {
@@ -2669,17 +2669,17 @@ export default {
} }
this.insuredInfo.birthday = idToData(val).birthday this.insuredInfo.birthday = idToData(val).birthday
// 获取出生日期年份16证件类型为户口本时被保人年龄小于16周岁时卡单户口本有效止期长期变更为第16周岁日期 // 获取出生日期年份16证件类型为户口本时被保人年龄小于16周岁时卡单户口本有效止期长期变更为第16周岁日期
if(this.insuredInfo.idType == '2' && idToData(this.insuredInfo.idNo).age <16){ // if(this.insuredInfo.idType == '2' && idToData(this.insuredInfo.idNo).age <16){
let year = Number(this.insuredInfo.birthday.substr(0,4)) + 16 // let year = Number(this.insuredInfo.birthday.substr(0,4)) + 16
if(this.insuredInfo.birthday.substr(5,5) == '02-29'){ // if(this.insuredInfo.birthday.substr(5,5) == '02-29'){
// 获取某年某月一共多少天 // // 获取某年某月一共多少天
let date = new Date(year, 2, 1) // let date = new Date(year, 2, 1)
let dayEnd = new Date(date.getTime() - 864e5).getDate() // let dayEnd = new Date(date.getTime() - 864e5).getDate()
this.insuredInfo.certiexpiredate = year+'-02-'+ dayEnd // this.insuredInfo.certiexpiredate = year+'-02-'+ dayEnd
}else{ // }else{
this.insuredInfo.certiexpiredate = year+'-'+ this.insuredInfo.birthday.substr(5,5) // this.insuredInfo.certiexpiredate = year+'-'+ this.insuredInfo.birthday.substr(5,5)
} // }
} // }
this.insuredInfo.sex = idToData(val).sex this.insuredInfo.sex = idToData(val).sex
//GFRS-2641-- 被保险人年龄小于18周岁不含前端需隐藏手机号码、电子邮箱 //GFRS-2641-- 被保险人年龄小于18周岁不含前端需隐藏手机号码、电子邮箱
//GFRS-2641--被保险人大于等于18周岁前端需展示手机号码、电子邮箱且非必填 //GFRS-2641--被保险人大于等于18周岁前端需展示手机号码、电子邮箱且非必填
@@ -2733,7 +2733,7 @@ export default {
marriageStatus: '', //婚姻状况 marriageStatus: '', //婚姻状况
homeProvince: '', //家庭省 homeProvince: '', //家庭省
homeCity: '', //家庭市 homeCity: '', //家庭市
homeArea: '450101', //家庭区 homeArea: '', //家庭区
homeName: '', //联系地址 homeName: '', //联系地址
homeAddress: '', //详细地址 homeAddress: '', //详细地址
mobile: '', //移动电话 mobile: '', //移动电话
@@ -2773,7 +2773,7 @@ export default {
// 去掉--选择户口本时是否长期默认为是不可点击有效止期隐藏证件类型为户口本时被保人年龄小于16周岁时户口本有效止期长期变更为第16周岁日期 // 去掉--选择户口本时是否长期默认为是不可点击有效止期隐藏证件类型为户口本时被保人年龄小于16周岁时户口本有效止期长期变更为第16周岁日期
// this.effectiveDateTypeAbleInsured = true // this.effectiveDateTypeAbleInsured = true
// this.isInsuredCertiexpiredate = false // this.isInsuredCertiexpiredate = false
this.isInsuredCertiexpiredate = true // this.isInsuredCertiexpiredate = true
} else if (this.itemProductDTOS.productCode == 'GFRS_M0049' || this.itemProductDTOS.productCode === 'GFRS_M0063') { } else if (this.itemProductDTOS.productCode == 'GFRS_M0049' || this.itemProductDTOS.productCode === 'GFRS_M0063') {
this.insuredInfo.occupationCode = '2099907' this.insuredInfo.occupationCode = '2099907'
this.insuredInfo.occupationName = '一般学生' this.insuredInfo.occupationName = '一般学生'
@@ -2785,7 +2785,7 @@ export default {
// 去掉--选择户口本时是否长期默认为是不可点击有效止期隐藏证件类型为户口本时被保人年龄小于16周岁时户口本有效止期长期变更为第16周岁日期 // 去掉--选择户口本时是否长期默认为是不可点击有效止期隐藏证件类型为户口本时被保人年龄小于16周岁时户口本有效止期长期变更为第16周岁日期
// this.effectiveDateTypeAbleInsured = true // this.effectiveDateTypeAbleInsured = true
// this.isInsuredCertiexpiredate = false // this.isInsuredCertiexpiredate = false
this.isInsuredCertiexpiredate = true // this.isInsuredCertiexpiredate = true
} }
else if (this.itemProductDTOS.productCode === 'GFRS_M0062') { else if (this.itemProductDTOS.productCode === 'GFRS_M0062') {
this.insuredInfo.occupationCode = '2099908' this.insuredInfo.occupationCode = '2099908'
@@ -2798,7 +2798,7 @@ export default {
// 去掉--选择户口本时是否长期默认为是不可点击有效止期隐藏证件类型为户口本时被保人年龄小于16周岁时户口本有效止期长期变更为第16周岁日期 // 去掉--选择户口本时是否长期默认为是不可点击有效止期隐藏证件类型为户口本时被保人年龄小于16周岁时户口本有效止期长期变更为第16周岁日期
// this.effectiveDateTypeAbleInsured = true // this.effectiveDateTypeAbleInsured = true
// this.isInsuredCertiexpiredate = false // this.isInsuredCertiexpiredate = false
this.isInsuredCertiexpiredate = true // this.isInsuredCertiexpiredate = true
} }
// GFRS-2641--少儿安康,默认户口本,且户口本证件截止日期默认长期 // GFRS-2641--少儿安康,默认户口本,且户口本证件截止日期默认长期
if (this.itemProductDTOS.productCode == 'GFRS_M0052') { if (this.itemProductDTOS.productCode == 'GFRS_M0052') {
@@ -2812,7 +2812,7 @@ export default {
// 去掉--选择户口本时是否长期默认为是不可点击有效止期隐藏证件类型为户口本时被保人年龄小于16周岁时户口本有效止期长期变更为第16周岁日期 // 去掉--选择户口本时是否长期默认为是不可点击有效止期隐藏证件类型为户口本时被保人年龄小于16周岁时户口本有效止期长期变更为第16周岁日期
this.effectiveDateTypeAbleInsured = true this.effectiveDateTypeAbleInsured = true
// this.isInsuredCertiexpiredate = false // this.isInsuredCertiexpiredate = false
this.isInsuredCertiexpiredate = true // this.isInsuredCertiexpiredate = true
} }
// 2516--除万福卡投保人、被保险人年收入默认为0允许修改 // 2516--除万福卡投保人、被保险人年收入默认为0允许修改