Commit 46ee1319 authored by 任鸿志's avatar 任鸿志

refactor(settlement): 优化结算流程中的慢病判断逻辑

- 修改了慢病判断条件,增加了对 man_name 的检查
- 注释掉了慢病未审核禁止结算的代码块
- 优化了诊断代码 p_jbbm 的赋值逻辑,根据 man_name 的不同值进行处理
parent defa0e33
......@@ -2380,9 +2380,10 @@ export default {
},
selectCardYiboPreselect(data, x, y) {
// 判断慢病
if (this.selectTableArr[0]?.settle_type.is_mb) {
if (this.selectTableArr[0]?.settle_type.is_mb && this.man_name=='') {
// 判断多病种慢病
if (data?.mzdbjbs_arr.length > 1) {
if (data?.mzdbjbs_arr.length > 1 ) {
this.moreshow = true
this.moreshowdata = {
data: data,
......@@ -2392,28 +2393,28 @@ export default {
} else {
this.selectCardYiboPre(data, x, y, data?.mzdbjbs_arr[0]?.code)
}
// 慢病未审核禁止结算
if (this.selectTableArr.some(item => item.reviewed != '1')) {
this.$alert('存在未审核的收费项目,请审核后再进行结算!', '提示', {
confirmButtonText: '确定',
callback: action => {
// this.$message({
// type: 'info',
// message: `action: ${ action }`
// });
},
})
return false
}
// // 慢病未审核禁止结算
// if (this.selectTableArr.some(item => item.reviewed != '1')) {
// this.$alert('存在未审核的收费项目,请审核后再进行结算!', '提示', {
// confirmButtonText: '确定',
// callback: action => {
// // this.$message({
// // type: 'info',
// // message: `action: ${ action }`
// // });
// },
// })
// return false
// }
} else {
// 省职未审核禁止结算
if (this.selectTableArr.some(item => item.reviewed != '1') && this.form.insurance_type == 'PROVINCE') {
this.$alert('存在未审核的收费项目,请审核后再进行结算!', '提示', {
confirmButtonText: '确定',
callback: action => {},
})
return false
}
// // 省职未审核禁止结算
// if (this.selectTableArr.some(item => item.reviewed != '1') && this.form.insurance_type == 'PROVINCE') {
// this.$alert('存在未审核的收费项目,请审核后再进行结算!', '提示', {
// confirmButtonText: '确定',
// callback: action => {},
// })
// return false
// }
this.selectCardYiboPre(data, x, y, data?.mzdbjbs_arr[0]?.code)
}
// if (data?.mzdbjbs_arr.length > 1 && this.selectTableArr[0]?.settle_type.is_mb) {
......@@ -2449,7 +2450,7 @@ export default {
channel: this.channel,
is_gz: this.man_name == '3' ? true : false,
injury_date: this.GSdatatime,
p_jbbm: this.selectTableArr[0]?.settle_type.is_mb ? zhenduan : '',
p_jbbm: this.man_name == '1'?'': this.man_name == '2'?'': this.man_name == '3'?'':this.selectTableArr[0]?.settle_type.is_mb ? zhenduan : '',
patient_id: this.patientData.patient_id,
cache_key: data.cache_key,
prescription_nos: this.cost_id,
......
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