Commit 83714d3a authored by 任鸿志's avatar 任鸿志

refactor(outpatientCharging): 优化结算逻辑

- 修改了医技预约和慢病审核的判断条件
- 调整了结算流程,增加了对不同保险类型的处理
- 优化了错误提示信息的显示逻辑
- 注释掉了部分未使用的代码
parent b30ad3c8
......@@ -1757,16 +1757,9 @@ export default {
this.ismb = true
}
})
// 医技预约channel=4不走审核 省职也要加审核 25-7-10
if ((!this.ismb && this.man_name != '1') || this.channel == '4' && this.form.insurance_type != 'PROVINCE') {
if (this.orders.length > 0) {
this.ybjs()
} else {
this.$message.error('请勾选结算类型和待结算的费用清单')
this.yujiesuanload = false
}
} else {
this.yujiesuanLoading=true
// 医技预约channel=4不走审核 省职也要加审核 25-7-10 慢病审核
if ( ( this.channel != '4' && (this.man_name =='4' || (this.ismb && this.man_name == '')) )||this.form.insurance_type == 'PROVINCE' && this.ztvalue.value != 'SELF_PAY' && this.ztvalue.value != 'LOCAL_YB' && this.man_name != '1' && this.man_name != '3' ) {
this.yujiesuanLoading=true
const { code, data } = await verifyFeeStatus({
patient_id: this.patientData.patient_id,
serial_no: this.cost_id.toString(),
......@@ -1788,7 +1781,48 @@ export default {
this.yujiesuanLoading=false
}
}else{
if (this.orders.length > 0) {
this.ybjs()
} else {
this.$message.error('请勾选结算类型和待结算的费用清单')
this.yujiesuanload = false
}
}
// if ((!this.ismb && this.man_name != '1') || this.channel == '4' && this.form.insurance_type != 'PROVINCE') {
// if (this.orders.length > 0) {
// this.ybjs()
// } else {
// this.$message.error('请勾选结算类型和待结算的费用清单')
// this.yujiesuanload = false
// }
// } else {
// this.yujiesuanLoading=true
// const { code, data } = await verifyFeeStatus({
// patient_id: this.patientData.patient_id,
// serial_no: this.cost_id.toString(),
// })
// if (code == 200) {
// this.yujiesuanLoading=false
// if (data.status == 2) {
// this.$message.error(data.msg)
// return false
// } else {
// if (this.orders.length > 0) {
// this.ybjs()
// } else {
// this.$message.error('请勾选结算类型和待结算的费用清单')
// this.yujiesuanload = false
// }
// }
// }else{
// this.yujiesuanLoading=false
// }
// }
},
// async jiesuan() {
// this.shenfenzheng = this.tableData.patient.idCard
......@@ -1946,7 +1980,7 @@ export default {
return false
}
if (this.select_type == '01') {
if (this.form.insurance_type == 'LOCAL') {
// if (this.form.insurance_type == 'LOCAL') {
this.jeizhishow = true
const that = this
setTimeout(function () {
......@@ -1955,9 +1989,9 @@ export default {
// setTimeout(() => {
// }, 500);
} else {
this.qrjs()
}
// } else {
// this.qrjs()
// }
} else if ((this.ztvalue.value == 'SELF_PAY' || this.man_name == '1') && this.man_name != '2') {
this.selfPre()
} else {
......@@ -2433,7 +2467,7 @@ export default {
selectCardYiboPreselect(data, x, y) {
console.log(data,'多病种慢病')
// 判断慢病
if (this.selectTableArr[0]?.settle_type.is_mb || this.man_name == '4') {
if ((this.selectTableArr[0]?.settle_type.is_mb || this.man_name == '4') && this.man_name!='1' && this.man_name!='2' && this.man_name!='3') {
// 判断多病种慢病
console.log(data,'多病种慢病')
if (data?.mzdbjbs_arr.length > 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment