卡单隐藏证件截止日期 及 相关联动处理--提交人:白金岩

This commit is contained in:
bai.jinyan
2021-08-26 11:50:47 +08:00
parent 1e2e4d9f6b
commit 10974e9749

View File

@@ -198,6 +198,7 @@
</van-button>
</van-field>
<FieldDatePicter
v-if="isInsuredCertiexpiredate"
:v-validate='{ required: certiexpiredateRequiredInsured }'
required
label='证件截止日期'
@@ -749,7 +750,8 @@ export default {
load: false, //防止重复请求
value: false
},
occupationalType: DataDictionary.queryOccupationalByType[0].id
occupationalType: DataDictionary.queryOccupationalByType[0].id,
isInsuredCertiexpiredate:true, //被保人有效止期是否显示
}
},
created() {
@@ -1151,6 +1153,18 @@ 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
}
this.insuredInfo.idType = value.id
}
},
@@ -1373,16 +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.customerIdType == 2) {
this.insuredInfo.effectiveDateType = true
this.insuredInfo.certiexpiredate = '9999-01-01'
this.effectiveDateTypeAbleInsured = true
this.isInsuredCertiexpiredate = false
}else{
if ((this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0049' || this.itemProductDTOS.productCode == 'GFRS_M0050' || this.itemProductDTOS.productCode == 'GFRS_M0052')
&& DataDictionary.insuredIdTypeSpecial.indexOf(data.customerIdType) < 0 ) {
this.insuredInfo.idType = ''
this.insuredInfo.certiexpiredate = ''
this.insuredInfo.effectiveDateType = false;
this.isInsuredCertiexpiredate = true
this.effectiveDateTypeAbleInsured = false
}else{
this.insuredInfo.effectiveDateType = false;
this.effectiveDateTypeAbleInsured = false
this.isInsuredCertiexpiredate = true
if (data.idEffectEndDate == '9999-01-01') {
this.insuredInfo.certiexpiredate = '9999-01-01'
this.insuredInfo.effectiveDateType = true //是否长期
} else {
this.insuredInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
}
}
}
this.insuredInfo.email = data.email //邮箱
this.insuredInfo.mobile = data.customerPhone //移动电话
this.insuredInfo.homeProvince = data.homeProvince //家庭省
@@ -1713,7 +1745,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 {
@@ -2038,17 +2076,24 @@ export default {
} else if (this.itemProductDTOS.productCode == 'GFRS_M0049') {
this.insuredInfo.idType = '2'
this.insuredInfo.effectiveDateType = true
this.insuredInfo.certiexpiredate = '9999-01-01'
this.insuredInfo.occupationCode = '2099908'
this.insuredInfo.occupationName = '学龄前儿童'
// 选择户口本时,是否长期默认为是,不可点击,有效止期隐藏
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允许修改