diff --git a/src/views/ebiz/agentEenter/js/methods.js b/src/views/ebiz/agentEenter/js/methods.js index c19a452dd..8a020f962 100644 --- a/src/views/ebiz/agentEenter/js/methods.js +++ b/src/views/ebiz/agentEenter/js/methods.js @@ -859,7 +859,6 @@ export function sureArea(that, area, type, flag = false) { */ export function getIdentityInfo(that, data, type) { if (data.name && data.name != '待识别') { - if (type == '1') { that.userInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(4, 2)}-${data.startDate.substr(6, 2)}` that.userInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(4, 2)}-${data.endDate.substr(6, 2)}` that.userInfo.name = data.name @@ -867,15 +866,6 @@ export function getIdentityInfo(that, data, type) { that.userInfo.birthday = `${data.birthYear}-${data.birthMonth}-${data.birthDay}` that.userInfo.sex = data.gender == '男' ? '0' : '1' that.effectiveDateTypeAble = idToData(data.idNo).age <= 45 - } else if (type == '2') { - that.insuredInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(4, 2)}-${data.startDate.substr(6, 2)}` - that.insuredInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(4, 2)}-${data.endDate.substr(6, 2)}` - that.insuredInfo.name = data.name - that.insuredInfo.idNo = data.idNo - that.insuredInfo.birthday = `${data.birthYear}-${data.birthMonth}-${data.birthDay}` - that.insuredInfo.sex = data.gender == '男' ? '0' : '1' - that.effectiveDateTypeAbleInsured = idToData(data.idNo).age <= 45 - } } that.isScan = false that.bankisScan = false diff --git a/src/views/ebiz/cardList/information.vue b/src/views/ebiz/cardList/information.vue index fd688cd9d..3018dffa6 100644 --- a/src/views/ebiz/cardList/information.vue +++ b/src/views/ebiz/cardList/information.vue @@ -196,7 +196,7 @@ @confirm="onDateConfirm($event, '7')" ref="certiexpiredate" :flag="true" - :readonly="idLimit" + :readonly="idLimitInsured" >
{ @@ -76,6 +86,7 @@ export function getIdentityInfo(that, data, type) { that.userInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(5, 2)}-${data.endDate.substr(8, 2)}` // that.userInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(4, 2)}-${data.endDate.substr(6, 2)}` that.effectiveDateTypeAble = true + that.idLimit = false } else { // 勾选长期 that.userInfo.effectiveDateType = true @@ -83,36 +94,42 @@ export function getIdentityInfo(that, data, type) { that.effectiveDateTypeAble = false // 证件截止日期不需要校验 that.certiexpiredateRequired = false + //截止日期不可编辑 + that.idLimit = true } } } if (type == '2') { // 正面 if (data.name && data.name != '待识别') { - that.userInfo.insuredName = data.name - that.insuredInfo.idNo = that.userInfo.insuredidNo = data.idNo - that.insuredInfo.birthday = that.userInfo.insuredBirthday = `${data.birthYear}-${data.birthMonth}-${data.birthDay}` - that.insuredInfo.insuredSex = that.userInfo.insuredSex = data.gender == '男' ? '0' : '1' + that.insuredInfo.name = data.name + that.insuredInfo.idNo = data.idNo + that.insuredInfo.birthday = `${data.birthYear}-${data.birthMonth}-${data.birthDay}` + that.insuredInfo.sex = data.gender == '男' ? '0' : '1' } // 反面 if (data.startDate && data.startDate != '待识别') { - that.userInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(5, 2)}-${data.startDate.substr(8, 2)}` + that.insuredInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(5, 2)}-${data.startDate.substr(8, 2)}` //that.userInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(4, 2)}-${data.startDate.substr(6, 2)}` // 是否为长期身份证 if (data.endDate != '长期') { - that.userInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(5, 2)}-${data.endDate.substr(8, 2)}` + that.insuredInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(5, 2)}-${data.endDate.substr(8, 2)}` // that.userInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(4, 2)}-${data.endDate.substr(6, 2)}` - that.effectiveDateTypeAble = true + that.effectiveDateTypeAbleInsured = true + that.idLimitInsured = false } else { // 勾选长期 - that.userInfo.effectiveDateType = true + that.insuredInfo.effectiveDateType = true // 长期按钮不禁用 - that.effectiveDateTypeAble = false + that.effectiveDateTypeAbleInsured = false // 证件截止日期不需要校验 - that.certiexpiredateRequired = false + that.certiexpiredateRequiredInsured = false + //截止日期不可编辑 + that.idLimitInsured = true } } } + that.isScan = false let title = type == '1' ? '投保人信息' : '被保人信息' that.$jump({