Fix Bug #444: 门诊手术医嘱"已引用计费药品"列表未正常显示药品 — handleMedicalAdvice 调用 getPrescriptionList 时未传递 generateSourceEnum=6 和 sourceBillNo 参数,导致后端默认按医生处方(generateSourceEnum=1)查询而非手术计费查询,手术计费药品依赖 Part 2 SQL 兜底但可能遗漏无 med_medication_request 记录的药品

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-18 17:19:07 +08:00
parent 1b0028e62f
commit 4972ca64da

View File

@@ -1565,7 +1565,7 @@ function handleMedicalAdvice(row) {
temporaryMedicalLoading.value = true // 🔧 新增:开始加载
// 调用计费接口获取数据
getPrescriptionList(row.visitId).then((res) => {
getPrescriptionList(row.visitId, 6, row.operCode).then((res) => {
console.log('=== 拉取计费数据返回结果 ===', res)
if (res.code === 200 && res.data) {
// 🔧 修复:显示所有药品请求数据,不管有没有计费项目