From f0bdf543febd42ed703b6c8a1b7a1405e2f3d615 Mon Sep 17 00:00:00 2001 From: zhaoyun Date: Thu, 28 May 2026 22:20:49 +0800 Subject: [PATCH] Fix Bug #561 --- .../patientmanagement/outpatienrecords/index.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/openhis-ui-vue3/src/views/patientmanagement/outpatienrecords/index.vue b/openhis-ui-vue3/src/views/patientmanagement/outpatienrecords/index.vue index 5e62e8937..8f7c99a8c 100755 --- a/openhis-ui-vue3/src/views/patientmanagement/outpatienrecords/index.vue +++ b/openhis-ui-vue3/src/views/patientmanagement/outpatienrecords/index.vue @@ -54,6 +54,7 @@ + @@ -164,7 +165,12 @@ function getList() { console.log('当前查看患者:', route.query.patientName); } - listOutpatienRecords(queryParams.value).then((response) => { + // 构建请求参数 - "无状态"(0) 转为 undefined,让后端不加过滤 + const requestParams = { ...queryParams.value }; + if (requestParams.subjectStatusEnum === 0) { + requestParams.subjectStatusEnum = undefined; + } + listOutpatienRecords(requestParams).then((response) => { outpatienRecordsList.value = response.data.records; total.value = response.data.total; loading.value = false; @@ -194,6 +200,10 @@ function getStatusTagType(status) { return 'info'; // 已离开 - 灰色 case 5: return 'success'; // 已完成 - 绿色 + case 0: + case null: + case undefined: + return 'info'; // 无状态 - 灰色 default: return ''; }