【国富惠桂保团体医疗保险产品上线金掌桂投保开发需求】证件截止日期为按钮长期问题

This commit is contained in:
li.yuetong
2022-04-20 10:55:03 +08:00
parent fb6aeaaa33
commit 537350bcb7
2 changed files with 35 additions and 4 deletions

View File

@@ -697,12 +697,39 @@ export default {
if(that.$route.query.insuredId){ //编辑 if(that.$route.query.insuredId){ //编辑
res.orderDTO.insuredDTOs.forEach(item => { res.orderDTO.insuredDTOs.forEach(item => {
if(that.$route.query.insuredId == item.insuredId){ 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 { } else {
if(that.$route.query.relationToAppnt == '1'){ //新增关系为本人 if(that.$route.query.relationToAppnt == '1'){ //新增关系为本人
Object.assign(this.userInfo,res.orderDTO.appntDTO) 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() { insureTrial() {
let that = this let that = this
console.log(this.userInfo,'this.insuredInfo.birthday') if(this.insuredInfo.birthday || that.$route.query.relationToAppnt == '1'){
if(this.insuredInfo.birthday){
// 获取卡单列表 // 获取卡单列表
let birthday = that.$route.query.relationToAppnt == '1'?this.userInfo.birthday:this.insuredInfo.birthday
let data = { let data = {
trialInfos: [{ productCode: that.itemProductDTOS.productCode,birthday:this.insuredInfo.birthday}], trialInfos: [{ productCode: that.itemProductDTOS.productCode,birthday:birthday}],
} }
insureTrial(data) insureTrial(data)

View File

@@ -358,6 +358,10 @@ export default {
deleteGroupCardByInsured(params).then(res => { deleteGroupCardByInsured(params).then(res => {
if (res.result == '0') { if (res.result == '0') {
this.chooseList.splice(index, 1) this.chooseList.splice(index, 1)
//删除本人,恢复本人可点击功能
if(choose.relationToAppnt == '1'){
this.persons[0].check = false
}
// this.formatChoose(choose, index) // this.formatChoose(choose, index)
} }
}) })