mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 15:46:43 +08:00
【国富惠桂保团体医疗保险产品上线金掌桂投保开发需求】证件截止日期为按钮长期问题
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user