From cfb1ea1b3cb158d50b81fc1efe1f21d5a05fd007 Mon Sep 17 00:00:00 2001 From: wangjian963 <15215920+aprilry@user.noreply.gitee.com> Date: Fri, 5 Jun 2026 15:32:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=89=8B=E6=9C=AF=E7=94=B3=E8=AF=B7):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=8B=E6=9C=AF=E9=83=A8=E4=BD=8D=E6=9C=AA?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=88=B0cli=5Fsurgery=E8=A1=A8=E5=8F=8A?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E5=B1=95=E7=A4=BA=E4=B8=BA=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 后端:保存手术申请单时,从descJson解析surgerySite字段,写入 cli_surgery.body_site和wor_service_request.content_json,解决 手术部位数据未持久化到手术主表的问题 - 前端:手术申请详情弹窗加载字典数据(手术等级、麻醉方式、手术 部位、切口类别、手术性质),将descJson中的字典编码翻译为中文 标签展示,解决详情中显示原始编码(如"1")而非实际名称的问题 --- .../impl/RequestFormManageAppServiceImpl.java | 8 +++ .../applicationShow/surgeryApplication.vue | 55 ++++++++++++++++++- 2 files changed, 62 insertions(+), 1 deletion(-) diff --git a/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/regdoctorstation/appservice/impl/RequestFormManageAppServiceImpl.java b/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/regdoctorstation/appservice/impl/RequestFormManageAppServiceImpl.java index aef0ab28b..6a750aae1 100755 --- a/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/regdoctorstation/appservice/impl/RequestFormManageAppServiceImpl.java +++ b/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/regdoctorstation/appservice/impl/RequestFormManageAppServiceImpl.java @@ -342,6 +342,7 @@ public class RequestFormManageAppServiceImpl implements IRequestFormManageAppSer String plannedTime = descMap != null ? (String) descMap.get("plannedTime") : null; String surgeryIndication = descMap != null ? (String) descMap.get("surgeryIndication") : null; String preoperativeDiagnosis = descMap != null ? (String) descMap.get("preoperativeDiagnosis") : null; + String surgerySite = descMap != null ? (String) descMap.get("surgerySite") : null; // 🔧 BugFix#318: 从 activityList 获取手术项目名称 String adviceDefinitionName = null; @@ -422,6 +423,9 @@ public class RequestFormManageAppServiceImpl implements IRequestFormManageAppSer if (preoperativeDiagnosis != null && !preoperativeDiagnosis.isEmpty()) { contentMap.put("preoperativeDiagnosis", preoperativeDiagnosis); } + if (surgerySite != null && !surgerySite.isEmpty()) { + contentMap.put("surgerySite", surgerySite); + } if (!contentMap.isEmpty()) { try { ObjectMapper objectMapper = new ObjectMapper(); @@ -492,6 +496,10 @@ public class RequestFormManageAppServiceImpl implements IRequestFormManageAppSer // intentionally ignored } } + // 从 descJson 解析手术部位,写入 body_site 字段 + if (surgerySite != null && !surgerySite.isEmpty()) { + surgery.setBodySite(surgerySite); + } // 填充患者姓名(从 adm_patient 查询) if (patientId != null) { try { diff --git a/healthlink-his-ui/src/views/inpatientDoctor/home/components/applicationShow/surgeryApplication.vue b/healthlink-his-ui/src/views/inpatientDoctor/home/components/applicationShow/surgeryApplication.vue index 9e0a96680..5618bca0c 100755 --- a/healthlink-his-ui/src/views/inpatientDoctor/home/components/applicationShow/surgeryApplication.vue +++ b/healthlink-his-ui/src/views/inpatientDoctor/home/components/applicationShow/surgeryApplication.vue @@ -397,11 +397,12 @@