选择户口本时,是否长期默认为是,不可点击,有效止期隐藏

This commit is contained in:
liyuetong
2021-08-25 18:59:08 +08:00
parent cf93e23f1a
commit a6a3f34377

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() {
@@ -1080,7 +1082,7 @@ export default {
if (this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0049' || this.itemProductDTOS.productCode == 'GFRS_M0050' || this.itemProductDTOS.productCode == 'GFRS_M0052') {
this.columns = DataDictionary.insuredIdTypeSpecial
} else {
this.columns = DataDictionary.insuredIdType
this.columns = DataDictionary.idType
}
}
},
@@ -1150,6 +1152,16 @@ export default {
//身份证年龄小于等于45不可选长期
this.insuredInfo.effectiveDateType = false
}
}
// 选择户口本时,是否长期默认为是,不可点击,有效止期隐藏
if(value.id==2){
this.insuredInfo.effectiveDateType = true
this.effectiveDateTypeAbleInsured = true
this.isInsuredCertiexpiredate = false
}else{
this.insuredInfo.effectiveDateType = false
this.effectiveDateTypeAbleInsured = false
this.isInsuredCertiexpiredate = true
}
this.insuredInfo.idType = value.id
}