mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 19:06:43 +08:00
卡单隐藏证件截止日期 及 相关联动处理--提交人:白金岩
This commit is contained in:
@@ -198,6 +198,7 @@
|
|||||||
</van-button>
|
</van-button>
|
||||||
</van-field>
|
</van-field>
|
||||||
<FieldDatePicter
|
<FieldDatePicter
|
||||||
|
v-if="isInsuredCertiexpiredate"
|
||||||
:v-validate='{ required: certiexpiredateRequiredInsured }'
|
:v-validate='{ required: certiexpiredateRequiredInsured }'
|
||||||
required
|
required
|
||||||
label='证件截止日期'
|
label='证件截止日期'
|
||||||
@@ -749,7 +750,8 @@ export default {
|
|||||||
load: false, //防止重复请求
|
load: false, //防止重复请求
|
||||||
value: false
|
value: false
|
||||||
},
|
},
|
||||||
occupationalType: DataDictionary.queryOccupationalByType[0].id
|
occupationalType: DataDictionary.queryOccupationalByType[0].id,
|
||||||
|
isInsuredCertiexpiredate:true, //被保人有效止期是否显示
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -1151,6 +1153,18 @@ export default {
|
|||||||
this.insuredInfo.effectiveDateType = false
|
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
|
this.insuredInfo.idType = value.id
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1373,15 +1387,33 @@ export default {
|
|||||||
this.insuredInfo.sex = customerSex ? customerSex.toString() : '0' //性别
|
this.insuredInfo.sex = customerSex ? customerSex.toString() : '0' //性别
|
||||||
|
|
||||||
this.insuredInfo.birthday = data.birthday //出生日期
|
this.insuredInfo.birthday = data.birthday //出生日期
|
||||||
// if (data.customerIdType == 1) {
|
|
||||||
this.insuredInfo.idType = data.customerIdType //证件类型
|
this.insuredInfo.idType = data.customerIdType //证件类型
|
||||||
this.insuredInfo.idNo = data.customerIdNumber //证件类别
|
this.insuredInfo.idNo = data.customerIdNumber //证件类别
|
||||||
// }
|
if (data.customerIdType == 2) {
|
||||||
this.insuredInfo.effectiveDateType = false //是否长期
|
this.insuredInfo.effectiveDateType = true
|
||||||
if (data.idEffectEndDate == '9999-01-01') {
|
this.insuredInfo.certiexpiredate = '9999-01-01'
|
||||||
this.insuredInfo.effectiveDateType = true //是否长期
|
this.effectiveDateTypeAbleInsured = true
|
||||||
} else {
|
this.isInsuredCertiexpiredate = false
|
||||||
this.insuredInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
|
}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.email = data.email //邮箱
|
||||||
this.insuredInfo.mobile = data.customerPhone //移动电话
|
this.insuredInfo.mobile = data.customerPhone //移动电话
|
||||||
@@ -1713,7 +1745,13 @@ export default {
|
|||||||
return this.$toast('投保人和被保人关系不是本人,证件号码不可一致,请修改。')
|
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()
|
this.infoUpdate()
|
||||||
// console.log('success')
|
// console.log('success')
|
||||||
} else {
|
} else {
|
||||||
@@ -2038,17 +2076,24 @@ export default {
|
|||||||
} else if (this.itemProductDTOS.productCode == 'GFRS_M0049') {
|
} else if (this.itemProductDTOS.productCode == 'GFRS_M0049') {
|
||||||
this.insuredInfo.idType = '2'
|
this.insuredInfo.idType = '2'
|
||||||
this.insuredInfo.effectiveDateType = true
|
this.insuredInfo.effectiveDateType = true
|
||||||
|
this.insuredInfo.certiexpiredate = '9999-01-01'
|
||||||
this.insuredInfo.occupationCode = '2099908'
|
this.insuredInfo.occupationCode = '2099908'
|
||||||
this.insuredInfo.occupationName = '学龄前儿童'
|
this.insuredInfo.occupationName = '学龄前儿童'
|
||||||
|
// 选择户口本时,是否长期默认为是,不可点击,有效止期隐藏
|
||||||
|
this.effectiveDateTypeAbleInsured = true
|
||||||
|
this.isInsuredCertiexpiredate = false
|
||||||
}
|
}
|
||||||
// GFRS-2641--少儿安康,默认户口本,且户口本证件截止日期默认长期
|
// GFRS-2641--少儿安康,默认户口本,且户口本证件截止日期默认长期
|
||||||
if (this.itemProductDTOS.productCode == 'GFRS_M0052') {
|
if (this.itemProductDTOS.productCode == 'GFRS_M0052') {
|
||||||
this.insuredInfo.idType = '2'
|
this.insuredInfo.idType = '2'
|
||||||
this.insuredInfo.certiexpiredate = ''
|
this.insuredInfo.certiexpiredate = '9999-01-01'
|
||||||
this.insuredInfo.effectiveDateType = true
|
this.insuredInfo.effectiveDateType = true
|
||||||
this.insuredInfo.occupationCode = '2099907'
|
this.insuredInfo.occupationCode = '2099907'
|
||||||
this.insuredInfo.occupationName = '一般学生'
|
this.insuredInfo.occupationName = '一般学生'
|
||||||
this.insuredInfo.marriage = '2'
|
this.insuredInfo.marriage = '2'
|
||||||
|
// 选择户口本时,是否长期默认为是,不可点击,有效止期隐藏
|
||||||
|
this.effectiveDateTypeAbleInsured = true
|
||||||
|
this.isInsuredCertiexpiredate = false
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2516--除万福卡,投保人、被保险人年收入,默认为0,允许修改
|
// 2516--除万福卡,投保人、被保险人年收入,默认为0,允许修改
|
||||||
|
|||||||
Reference in New Issue
Block a user