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) } })