Fix Bug #498: 看报告功能参数名不匹配(prescriptionNo→encounterId),修复后端接口无法获取正确参数导致报告查询返回空列表的问题

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
赵云
2026-05-16 20:16:43 +08:00
parent 0d9b2879ac
commit 3a928afbc7
2 changed files with 65 additions and 1 deletions

View File

@@ -917,7 +917,7 @@ const handleViewReport = async (row) => {
reportLoading.value = true;
reportData.value = null;
try {
const res = await getTestResult({ prescriptionNo: row.prescriptionNo });
const res = await getTestResult({ encounterId: row.encounterId || patientInfo.value?.encounterId });
if (res.code === 200) {
if (res.data) {
// 支持两种返回格式: