回滚-卡单隐藏证件截止日期--提交人:白金岩

This commit is contained in:
bai.jinyan
2021-08-25 19:48:12 +08:00
parent a6a3f34377
commit 49a4683ba4

View File

@@ -198,7 +198,6 @@
</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='证件截止日期'
@@ -750,8 +749,7 @@ export default {
load: false, //防止重复请求 load: false, //防止重复请求
value: false value: false
}, },
occupationalType: DataDictionary.queryOccupationalByType[0].id, occupationalType: DataDictionary.queryOccupationalByType[0].id
isInsuredCertiexpiredate:true, //被保人有效止期是否显示
} }
}, },
created() { created() {
@@ -1082,7 +1080,7 @@ export default {
if (this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0049' || this.itemProductDTOS.productCode == 'GFRS_M0050' || this.itemProductDTOS.productCode == 'GFRS_M0052') { 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 this.columns = DataDictionary.insuredIdTypeSpecial
} else { } else {
this.columns = DataDictionary.idType this.columns = DataDictionary.insuredIdType
} }
} }
}, },
@@ -1144,7 +1142,7 @@ export default {
this.insuredInfo.effectiveDateType = true this.insuredInfo.effectiveDateType = true
} }
this.effectiveDateTypeAbleInsured = false this.effectiveDateTypeAbleInsured = false
}else { } else {
//身份证 //身份证
if (this.insuredInfo.birthday) { if (this.insuredInfo.birthday) {
let age = utilsAge.getAge(this.insuredInfo.birthday, new Date()) let age = utilsAge.getAge(this.insuredInfo.birthday, new Date())
@@ -1152,16 +1150,6 @@ export default {
//身份证年龄小于等于45不可选长期 //身份证年龄小于等于45不可选长期
this.insuredInfo.effectiveDateType = false 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 this.insuredInfo.idType = value.id
} }