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