From 64b02466b183c6628c27b9c429a3a83e23b89385 Mon Sep 17 00:00:00 2001 From: chenqi Date: Mon, 30 Mar 2026 15:46:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(consultation):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=BC=9A=E8=AF=8AID=E6=9F=A5=E8=AF=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在前端表单中新增会诊ID输入框用于查询过滤 - 更新查询参数对象以包含consultationId字段 - 在后端服务中实现会诊ID的模糊匹配查询逻辑 - 将会诊ID查询条件集成到现有的查询构建器中 - 保持与其他查询条件的兼容性以支持组合筛选 --- .../impl/ConsultationAppServiceImpl.java | 10 ++++++++++ .../consultationapplication/index.vue | 15 +++++++++++++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/consultation/appservice/impl/ConsultationAppServiceImpl.java b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/consultation/appservice/impl/ConsultationAppServiceImpl.java index 32004338..c0b4f143 100644 --- a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/consultation/appservice/impl/ConsultationAppServiceImpl.java +++ b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/consultation/appservice/impl/ConsultationAppServiceImpl.java @@ -186,6 +186,11 @@ public class ConsultationAppServiceImpl implements IConsultationAppService { wrapper.like(ConsultationRequest::getPatientName, dto.getPatientName()); } + // 会诊ID查询(支持模糊匹配) + if (StringUtils.hasText(dto.getConsultationId())) { + wrapper.like(ConsultationRequest::getConsultationId, dto.getConsultationId()); + } + // 按创建时间倒序排列 wrapper.orderByDesc(ConsultationRequest::getConsultationRequestDate); @@ -240,6 +245,11 @@ public class ConsultationAppServiceImpl implements IConsultationAppService { wrapper.like(ConsultationRequest::getPatientName, dto.getPatientName()); } + // 会诊ID查询(支持模糊匹配) + if (StringUtils.hasText(dto.getConsultationId())) { + wrapper.like(ConsultationRequest::getConsultationId, dto.getConsultationId()); + } + // 按创建时间倒序排列 wrapper.orderByDesc(ConsultationRequest::getConsultationRequestDate); diff --git a/openhis-ui-vue3/src/views/consultationmanagement/consultationapplication/index.vue b/openhis-ui-vue3/src/views/consultationmanagement/consultationapplication/index.vue index 8e8489d5..613cd172 100644 --- a/openhis-ui-vue3/src/views/consultationmanagement/consultationapplication/index.vue +++ b/openhis-ui-vue3/src/views/consultationmanagement/consultationapplication/index.vue @@ -81,6 +81,15 @@ /> + + + + 查询 @@ -394,7 +403,8 @@ const queryParams = reactive({ applyDoctor: '', urgency: '', consultationStatus: '', - patientName: '' + patientName: '', + consultationId: '' }) // 会诊状态常量 @@ -702,7 +712,8 @@ const loadData = async () => { consultationStatus: queryParams.consultationStatus, patientName: queryParams.patientName, consultationRequestDate: queryParams.startTime, - consultationUrgency: queryParams.urgency + consultationUrgency: queryParams.urgency, + consultationId: queryParams.consultationId } const res = await queryConsultationListPage(queryData, pagination.currentPage, pagination.pageSize)