From d3260f0286a59fafb141a898c193fdfc7eec104e Mon Sep 17 00:00:00 2001 From: liyuetong Date: Tue, 18 May 2021 16:11:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A2=AB=E4=BF=9D=E4=BA=BA=E8=BA=AB=E4=BB=BD?= =?UTF-8?q?=E8=AF=81=E6=89=AB=E6=8F=8F--=E6=95=B0=E6=8D=AE=E5=9B=9E?= =?UTF-8?q?=E6=98=BE=E8=AF=81=E4=BB=B6=E6=AD=A2=E6=9C=9F=E5=92=8C=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E9=95=BF=E6=9C=9F=EF=BC=8C=E6=98=AF=E5=90=A6=E5=8F=AF?= =?UTF-8?q?=E7=82=B9=E5=87=BB=EF=BC=8C=E5=8F=AF=E6=A0=A1=E9=AA=8C=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/agentEenter/js/methods.js | 10 ----- src/views/ebiz/cardList/information.vue | 4 +- src/views/ebiz/cardList/js/methods.js | 49 ++++++++++++++++-------- 3 files changed, 36 insertions(+), 27 deletions(-) diff --git a/src/views/ebiz/agentEenter/js/methods.js b/src/views/ebiz/agentEenter/js/methods.js index 0a0a278ed..5174d7ccb 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({