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 '';
}