From 537350bcb7c838d77c4db73d6130255d24987a1e Mon Sep 17 00:00:00 2001 From: "li.yuetong" Date: Wed, 20 Apr 2022 10:55:03 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=9B=BD=E5=AF=8C=E6=83=A0=E6=A1=82?= =?UTF-8?q?=E4=BF=9D=E5=9B=A2=E4=BD=93=E5=8C=BB=E7=96=97=E4=BF=9D=E9=99=A9?= =?UTF-8?q?=E4=BA=A7=E5=93=81=E4=B8=8A=E7=BA=BF=E9=87=91=E6=8E=8C=E6=A1=82?= =?UTF-8?q?=E6=8A=95=E4=BF=9D=E5=BC=80=E5=8F=91=E9=9C=80=E6=B1=82=E3=80=91?= =?UTF-8?q?=E8=AF=81=E4=BB=B6=E6=88=AA=E6=AD=A2=E6=97=A5=E6=9C=9F=E4=B8=BA?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E9=95=BF=E6=9C=9F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/cardList/GroupInsuredInfo.vue | 35 +++++++++++++++++--- src/views/ebiz/cardList/GroupInsuredList.vue | 4 +++ 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/src/views/ebiz/cardList/GroupInsuredInfo.vue b/src/views/ebiz/cardList/GroupInsuredInfo.vue index 802a07f48..00813ed15 100644 --- a/src/views/ebiz/cardList/GroupInsuredInfo.vue +++ b/src/views/ebiz/cardList/GroupInsuredInfo.vue @@ -697,12 +697,39 @@ export default { if(that.$route.query.insuredId){ //编辑 res.orderDTO.insuredDTOs.forEach(item => { if(that.$route.query.insuredId == item.insuredId){ - that.insuredInfo = item + // that.insuredInfo = item + if(that.$route.query.relationToAppnt == '1'){ + Object.assign(this.userInfo,item) + that.userInfo.certiexpiredate = that.userInfo.effectiveDateType == 'true'?'':that.userInfo.certiexpiredate + that.userInfo.homeName = getAreaName([ + { code: that.userInfo.homeProvince }, + { code: that.userInfo.homeCity }, + { code: that.userInfo.homeArea } + ]) + that.insuredInfo.birthday = that.userInfo.birthday + }else{ + Object.assign(that.insuredInfo,item) + that.insuredInfo.certiexpiredate = that.insuredInfo.effectiveDateType == 'true'?'':that.insuredInfo.certiexpiredate + that.insuredInfo.homeName = getAreaName([ + { code: that.insuredInfo.homeProvince }, + { code: that.insuredInfo.homeCity }, + { code: that.insuredInfo.homeArea } + ]) + } } }) + console.log(that.insuredInfo,'that.insuredInfo') } else { if(that.$route.query.relationToAppnt == '1'){ //新增关系为本人 Object.assign(this.userInfo,res.orderDTO.appntDTO) + that.userInfo.certiexpiredate = that.userInfo.effectiveDateType == 'true'?'':that.userInfo.certiexpiredate + this.userInfo.homeName = getAreaName([ + { code: this.userInfo.homeProvince }, + { code: this.userInfo.homeCity }, + { code: this.userInfo.homeArea } + ]) + that.insuredInfo.birthday = that.userInfo.birthday + that.userInfo.medical = '0' } } } @@ -994,11 +1021,11 @@ export default { //试算逻辑 insureTrial() { let that = this - console.log(this.userInfo,'this.insuredInfo.birthday') - if(this.insuredInfo.birthday){ + if(this.insuredInfo.birthday || that.$route.query.relationToAppnt == '1'){ // 获取卡单列表 + let birthday = that.$route.query.relationToAppnt == '1'?this.userInfo.birthday:this.insuredInfo.birthday let data = { - trialInfos: [{ productCode: that.itemProductDTOS.productCode,birthday:this.insuredInfo.birthday}], + trialInfos: [{ productCode: that.itemProductDTOS.productCode,birthday:birthday}], } insureTrial(data) diff --git a/src/views/ebiz/cardList/GroupInsuredList.vue b/src/views/ebiz/cardList/GroupInsuredList.vue index 7c2426682..9d03006a2 100644 --- a/src/views/ebiz/cardList/GroupInsuredList.vue +++ b/src/views/ebiz/cardList/GroupInsuredList.vue @@ -358,6 +358,10 @@ export default { deleteGroupCardByInsured(params).then(res => { if (res.result == '0') { this.chooseList.splice(index, 1) + //删除本人,恢复本人可点击功能 + if(choose.relationToAppnt == '1'){ + this.persons[0].check = false + } // this.formatChoose(choose, index) } })