effectiveDateType字符串类型转为布尔型,true,false

This commit is contained in:
liyuetong
2021-12-13 14:13:41 +08:00
parent 4a6f15b8aa
commit 015c8605a9

View File

@@ -576,7 +576,8 @@ export default {
}) })
}) })
this.setInsuredCustomerMarriage(this.insuredPersonInfo.marriage) this.setInsuredCustomerMarriage(this.insuredPersonInfo.marriage)
//是否长期
this.insuredPersonInfo.effectiveDateType = this.insuredPersonInfo.effectiveDateType == 'true' ? true : false
//被保人证件类型如果是身份证时证件截止日期证件截止日期应为第16周岁的生日日期。 //被保人证件类型如果是身份证时证件截止日期证件截止日期应为第16周岁的生日日期。
if(this.insuredPersonInfo.idType == '2' && idToData(this.insuredPersonInfo.idNo).age <16){ if(this.insuredPersonInfo.idType == '2' && idToData(this.insuredPersonInfo.idNo).age <16){
// 获取出生日期年份16 // 获取出生日期年份16
@@ -589,9 +590,6 @@ export default {
}else{ }else{
this.insuredPersonInfo.certiexpiredate = year+'-'+ this.insuredPersonInfo.birthday.substr(5,5) this.insuredPersonInfo.certiexpiredate = year+'-'+ this.insuredPersonInfo.birthday.substr(5,5)
} }
}else{
//是否长期
this.insuredPersonInfo.effectiveDateType = this.insuredPersonInfo.effectiveDateType == 'true' ? true : false
} }
if (this.insuredPersonInfo.homeProvince.length) { if (this.insuredPersonInfo.homeProvince.length) {
this.insuredHomeName = getAreaName([ this.insuredHomeName = getAreaName([