hotfix[20230815]惠桂保神经性耳聋提示增加判断

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-08-15 16:50:54 +08:00
parent 7082d19d6a
commit c9593f5877
2 changed files with 74 additions and 51 deletions

View File

@@ -79,7 +79,8 @@ export default {
riskDTO: {}, riskDTO: {},
productDate: '', productDate: '',
orderInfoDTO:{}, orderInfoDTO:{},
isGroupCard:'' isGroupCard:'',
mainRiskCode: ''
// isLessEighteen: true // 被保人手机号和邮箱默认展示 // isLessEighteen: true // 被保人手机号和邮箱默认展示
} }
}, },
@@ -101,6 +102,11 @@ export default {
this.orderInfoDTO = res.orderDTO.orderInfoDTO this.orderInfoDTO = res.orderDTO.orderInfoDTO
this.insuredInfo = res.orderDTO.insuredDTOs this.insuredInfo = res.orderDTO.insuredDTOs
this.insuredInfo.forEach(item => { this.insuredInfo.forEach(item => {
item.riskDTOLst.forEach(ii=>{
if(ii.isMainRisk == '0'){
this.mainRiskCode = ii.mainRiskCode
}
})
item.homeName = getAreaName([{ code: item.homeProvince }, { code: item.homeCity }, { code: item.homeArea }]) item.homeName = getAreaName([{ code: item.homeProvince }, { code: item.homeCity }, { code: item.homeArea }])
}) })
// this.riskDTO = res.orderDTO.insuredDTOs[0].riskDTOLst[0] // this.riskDTO = res.orderDTO.insuredDTOs[0].riskDTOLst[0]
@@ -132,13 +138,27 @@ export default {
}, },
methods: { methods: {
nextStep() { nextStep() {
Dialog.alert({ if(this.mainRiskCode == 'GFRS_M0058'){
title: '特别提醒', Dialog.alert({
messageAlign: 'left', title: '特别提醒',
confirmButtonText: '确认', messageAlign: 'left',
message: `2023年9月1日起生效的惠桂保保单不能参保的5类既往症中增加了“神经性耳聋”敬请注意`, confirmButtonText: '确认',
}) message: `2023年9月1日起生效的惠桂保保单不能参保的5类既往症中增加了“神经性耳聋”敬请注意`,
.then(() => { })
.then(() => {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + `/#/cardList/SignatureConfirmation?isGroupCard=`+this.isGroupCard
},
routerInfo: {
path: `/cardList/SignatureConfirmation?isGroupCard=`+this.isGroupCard
}
})
})
.catch(() => {
})
}else{
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
@@ -148,9 +168,7 @@ export default {
path: `/cardList/SignatureConfirmation?isGroupCard=`+this.isGroupCard path: `/cardList/SignatureConfirmation?isGroupCard=`+this.isGroupCard
} }
}) })
}) }
.catch(() => {
})
} }
} }
} }

View File

@@ -290,6 +290,7 @@ export default {
accBankProvince: '', accBankProvince: '',
accBankCity: '', accBankCity: '',
areaStr: '', areaStr: '',
mainRiskCode: '',
isGroupCard:'' //1 团险标识 isGroupCard:'' //1 团险标识
} }
}, },
@@ -310,17 +311,13 @@ export default {
this.bankListName = orderDetail.orderAccountDTO.bankName this.bankListName = orderDetail.orderAccountDTO.bankName
this.orderStatus = orderDetail.orderInfoDTO.orderStatus this.orderStatus = orderDetail.orderInfoDTO.orderStatus
localStorage.orderNo = orderDetail.orderInfoDTO.orderNo localStorage.orderNo = orderDetail.orderInfoDTO.orderNo
// this.radio = '3' orderDetail.insuredDTOs.forEach(item=>{
// this.isLoading = true item.riskDTOLst.forEach(ii=>{
// this.$toast.loading({ if(ii.isMainRisk == '0'){
// duration: 0, // 持续展示 toast this.mainRiskCode = ii.mainRiskCode
// forbidClick: true, // 禁用背景点击 }
// loadingType: 'spinner', })
// message: '加载中……' })
// })
// setTimeout(() => {
// this.pay()
// }, 500)
} else { } else {
document.title = '支付分享' document.title = '支付分享'
// 再次支付 调详情 获取信息 // 再次支付 调详情 获取信息
@@ -744,6 +741,40 @@ export default {
let res = await saveOrUpdateAccount(data) let res = await saveOrUpdateAccount(data)
this.$toast.clear() this.$toast.clear()
if (res.result == '0') { if (res.result == '0') {
if(this.mainRiskCode == 'GFRS_M0058'){
Dialog.alert({
title: '特别提醒',
messageAlign: 'left',
confirmButtonText: '确认',
message: `2023年9月1日起生效的惠桂保保单不能参保的5类既往症中增加了“神经性耳聋”敬请注意`,
})
.then(() => {
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
loadingType: 'spinner',
message: '加载中……'
})
this.acceptInsurance()
})
.catch(() => {
})
}else{
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
loadingType: 'spinner',
message: '加载中……'
})
this.acceptInsurance()
}
} else {
this.$toast(res.resultMessage)
this.isLoading = false
}
} else {
if(this.mainRiskCode == 'GFRS_M0058'){
Dialog.alert({ Dialog.alert({
title: '特别提醒', title: '特别提醒',
messageAlign: 'left', messageAlign: 'left',
@@ -761,32 +792,7 @@ export default {
}) })
.catch(() => { .catch(() => {
}) })
} else { }else{
this.$toast(res.resultMessage)
this.isLoading = false
}
// })
} else {
// if (!flag) {
// let rs = await this.underWrite()
// if (rs.result != '0') {
// this.$toast.clear()
// return this.$toast(rs.resultMessage)
// }
// if (rs.uwResult != '02') {
// return this.$toast(rs.message)
// }
// }
Dialog.alert({
title: '特别提醒',
messageAlign: 'left',
confirmButtonText: '确认',
message: `2023年9月1日起生效的惠桂保保单不能参保的5类既往症中增加了“神经性耳聋”敬请注意`,
})
.then(() => {
this.$toast.loading({ this.$toast.loading({
duration: 0, // 持续展示 toast duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击 forbidClick: true, // 禁用背景点击
@@ -794,9 +800,8 @@ export default {
message: '加载中……' message: '加载中……'
}) })
this.acceptInsurance() this.acceptInsurance()
}) }
.catch(() => {
})
} }
}, },
// 选择微信支付校验身份证类型 // 选择微信支付校验身份证类型