Merge branch 'guanyu' of http://192.168.110.253:3000/wangyizhe/his into guanyu
# Conflicts: # openhis-ui-vue3/src/views/surgicalschedule/index.vue
This commit is contained in:
@@ -1876,13 +1876,14 @@ function handleQuoteBilling() {
|
||||
temporaryBillingMedicines.value = []
|
||||
temporaryAdvices.value = []
|
||||
|
||||
// 🔧 修复 Bug #445: 只保留药品类型(adviceType=1),过滤掉耗材(2)和诊疗项目(3/6)
|
||||
// 同时过滤掉已有 requestId 的项目(已生成医嘱的不需要再次显示在"待生成"列表中)
|
||||
// 🔧 修复 Bug #444: 统一过滤逻辑,与 handleMedicalAdvice 保持一致
|
||||
// 1. 使用 Number() + snake_case 回退,避免类型转换导致过滤失效
|
||||
// 2. 增加关键词二次过滤,排除手术/检查/诊疗等非药品项目
|
||||
const filteredItems = res.data.filter(item => {
|
||||
// 匹配 encounterId
|
||||
if (item.encounterId !== temporaryPatientInfo.value.visitId) return false;
|
||||
// 只保留药品类型(adviceType=1),过滤掉耗材(2)和诊疗项目(3/6)
|
||||
// 🔧 修复 Bug #444: 使用 Number() 显式转换 + snake_case 回退,避免字符串 "1" 匹配失败
|
||||
// 🔧 修复 Bug #444: 使用 Number() 显式转换,增加 snake_case 回退
|
||||
const at = Number(item.adviceType ?? item.advice_type);
|
||||
if (at !== 1) return false;
|
||||
// 过滤掉名称为空的项目
|
||||
|
||||
Reference in New Issue
Block a user