From 95235b810e574c8176039630b9d20d4340facb07 Mon Sep 17 00:00:00 2001 From: Ranyunqiao <2499115710@qq.com> Date: Tue, 14 Apr 2026 16:31:53 +0800 Subject: [PATCH] =?UTF-8?q?367=20=E9=97=A8=E8=AF=8A=E5=8C=BB=E7=94=9F?= =?UTF-8?q?=E7=AB=99=EF=BC=9A=E6=A3=80=E9=AA=8C=E5=BC=80=E5=8D=95=E2=80=9C?= =?UTF-8?q?=E5=85=8D=E7=96=AB=E2=80=9D=E7=B1=BB=E5=88=AB=E4=B8=8B=E7=9A=84?= =?UTF-8?q?=E6=A3=80=E9=AA=8C=E9=A1=B9=E7=9B=AE=E5=8F=96=E5=80=BC=E9=94=99?= =?UTF-8?q?=E8=AF=AF=EF=BC=8C=E4=B8=8E=E5=90=8E=E5=8F=B0=E7=BB=B4=E6=8A=A4?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=B8=8D=E4=B8=80=E8=87=B4=20357=20=E9=97=A8?= =?UTF-8?q?=E8=AF=8A=E6=8C=82=E5=8F=B7=EF=BC=9A=E9=80=9A=E8=BF=87=E2=80=9C?= =?UTF-8?q?=E9=A2=84=E7=BA=A6=E7=AD=BE=E5=88=B0=E2=80=9D=E4=BA=A7=E7=94=9F?= =?UTF-8?q?=E7=9A=84=E8=AE=B0=E5=BD=95=EF=BC=8C=E5=88=97=E8=A1=A8=E2=80=9C?= =?UTF-8?q?=E6=8C=82=E5=8F=B7=E7=B1=BB=E5=9E=8B=E2=80=9D=E6=9C=AA=E4=BD=93?= =?UTF-8?q?=E7=8E=B0=E9=A2=84=E7=BA=A6=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../appservice/impl/TicketAppServiceImpl.java | 4 +- .../web/appointmentmanage/dto/TicketDto.java | 11 + .../dto/CurrentDayEncounterDto.java | 7 + .../chargemanage/dto/EncounterFormData.java | 6 + .../OutpatientRegistrationAppMapper.xml | 6 +- .../administration/domain/Encounter.java | 5 + .../charge/outpatientregistration/index.vue | 9 +- .../inspection/inspectionApplication.vue | 585 ++---------------- 8 files changed, 90 insertions(+), 543 deletions(-) diff --git a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/appointmentmanage/appservice/impl/TicketAppServiceImpl.java b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/appointmentmanage/appservice/impl/TicketAppServiceImpl.java index 720b1466..72c652fb 100644 --- a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/appointmentmanage/appservice/impl/TicketAppServiceImpl.java +++ b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/appointmentmanage/appservice/impl/TicketAppServiceImpl.java @@ -153,7 +153,9 @@ public class TicketAppServiceImpl implements ITicketAppService { dto.setIdCard(raw.getIdCard()); dto.setDoctorId(raw.getDoctorId()); dto.setDepartmentId(raw.getDepartmentId()); - dto.setRealPatientId(raw.getPatientId()); + dto.setRealPatientId(raw.getPatientId()); + dto.setOrderId(raw.getOrderId()); + dto.setOrderNo(raw.getOrderNo()); // 性别处理:直接使用患者表中的 genderEnum Integer genderEnum = raw.getGenderEnum(); diff --git a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/appointmentmanage/dto/TicketDto.java b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/appointmentmanage/dto/TicketDto.java index afc073a4..6d3bba6c 100644 --- a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/appointmentmanage/dto/TicketDto.java +++ b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/appointmentmanage/dto/TicketDto.java @@ -115,4 +115,15 @@ public class TicketDto { * 身份证号 */ private String idCard; + + /** + * 预约订单ID + */ + @JsonSerialize(using = ToStringSerializer.class) + private Long orderId; + + /** + * 预约订单号 + */ + private String orderNo; } diff --git a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/chargemanage/dto/CurrentDayEncounterDto.java b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/chargemanage/dto/CurrentDayEncounterDto.java index 2fcba3d2..62236dd8 100644 --- a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/chargemanage/dto/CurrentDayEncounterDto.java +++ b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/chargemanage/dto/CurrentDayEncounterDto.java @@ -146,4 +146,11 @@ public class CurrentDayEncounterDto { */ private Integer displayOrder; + /** + * 是否来自预约签到 + * true: 预约签到 + * false: 正常挂号 + */ + private Boolean isFromAppointment; + } diff --git a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/chargemanage/dto/EncounterFormData.java b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/chargemanage/dto/EncounterFormData.java index c75000fd..4910a375 100644 --- a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/chargemanage/dto/EncounterFormData.java +++ b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/chargemanage/dto/EncounterFormData.java @@ -72,6 +72,12 @@ public class EncounterFormData { @JsonSerialize(using = ToStringSerializer.class) private Long organizationId; + /** + * 预约订单ID(用于预约签到时关联预约订单) + */ + @JsonSerialize(using = ToStringSerializer.class) + private Long orderId; + /** * 设置默认值 */ diff --git a/openhis-server-new/openhis-application/src/main/resources/mapper/chargemanage/OutpatientRegistrationAppMapper.xml b/openhis-server-new/openhis-application/src/main/resources/mapper/chargemanage/OutpatientRegistrationAppMapper.xml index 2f5fa0e8..311345e3 100644 --- a/openhis-server-new/openhis-application/src/main/resources/mapper/chargemanage/OutpatientRegistrationAppMapper.xml +++ b/openhis-server-new/openhis-application/src/main/resources/mapper/chargemanage/OutpatientRegistrationAppMapper.xml @@ -67,7 +67,8 @@ T9.payment_id AS paymentId, T9.picture_url AS pictureUrl, T9.birth_date AS birthDate, - COALESCE(T9.identifier_no, T9.patient_bus_no, '') AS identifierNo + COALESCE(T9.identifier_no, T9.patient_bus_no, '') AS identifierNo, + COALESCE(T9.order_id IS NOT NULL, false) AS isFromAppointment from ( SELECT T1.tenant_id AS tenant_id, T1.id AS encounter_id, @@ -93,7 +94,8 @@ ai.picture_url AS picture_url, T8.birth_date AS birth_date, T8.bus_no AS patient_bus_no, - T18.identifier_no AS identifier_no + T18.identifier_no AS identifier_no, + T1.order_id AS order_id FROM adm_encounter AS T1 LEFT JOIN adm_organization AS T2 ON T1.organization_id = T2.ID AND T2.delete_flag = '0' LEFT JOIN adm_healthcare_service AS T3 ON T1.service_type_id = T3.ID AND T3.delete_flag = '0' diff --git a/openhis-server-new/openhis-domain/src/main/java/com/openhis/administration/domain/Encounter.java b/openhis-server-new/openhis-domain/src/main/java/com/openhis/administration/domain/Encounter.java index 43cfb365..4e374b7d 100644 --- a/openhis-server-new/openhis-domain/src/main/java/com/openhis/administration/domain/Encounter.java +++ b/openhis-server-new/openhis-domain/src/main/java/com/openhis/administration/domain/Encounter.java @@ -151,4 +151,9 @@ public class Encounter extends HisBaseEntity { */ @TableField("missed_time") private Date missedTime; + + /** + * 预约订单ID + */ + private Long orderId; } diff --git a/openhis-ui-vue3/src/views/charge/outpatientregistration/index.vue b/openhis-ui-vue3/src/views/charge/outpatientregistration/index.vue index 2de232eb..46362db0 100644 --- a/openhis-ui-vue3/src/views/charge/outpatientregistration/index.vue +++ b/openhis-ui-vue3/src/views/charge/outpatientregistration/index.vue @@ -445,7 +445,13 @@ prop="healthcareName" :show-overflow-tooltip="true" width="200" - /> + > + +