From 3bfe25c2f29ee2b47be7efbc780505af4783e445 Mon Sep 17 00:00:00 2001 From: chenqi Date: Thu, 19 Mar 2026 10:25:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(medical):=20=E4=BF=AE=E5=A4=8D=E5=8C=BB?= =?UTF-8?q?=E5=98=B1=E5=89=82=E9=87=8F=E8=AE=A1=E7=AE=97=E5=92=8C=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=90=8C=E6=AD=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修正剂量转换公式,将乘法改为除法以正确计算 - 修复剂量数量字段的计算逻辑错误 - 添加字典文本字段回显支持 - 实现医嘱组套字段同步功能 - 保留组套中的原始值而不是强制重置 - 修复设备名称映射字段错误 --- .../OutpatientRegistrationAppMapper.xml | 2 +- .../components/MedicalOrderSetDialog.vue | 6 +- .../basicmanage/medicalOrderSet/index.vue | 51 +++++++----- .../prescription/prescriptionlist.vue | 79 ++++++++++++++++++- 4 files changed, 111 insertions(+), 27 deletions(-) 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 0e4c32c5..26ce80db 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 @@ -194,7 +194,7 @@ SELECT tad.dev_act_id, tad.quantity, tad.unit_code, - addf.device_name, + addf.name AS device_name, addf.py_str AS device_py_str, addf.wb_str AS device_wb_str FROM tmp_activity_device tad diff --git a/openhis-ui-vue3/src/views/basicmanage/medicalOrderSet/components/MedicalOrderSetDialog.vue b/openhis-ui-vue3/src/views/basicmanage/medicalOrderSet/components/MedicalOrderSetDialog.vue index 5830fcf2..1b48cada 100644 --- a/openhis-ui-vue3/src/views/basicmanage/medicalOrderSet/components/MedicalOrderSetDialog.vue +++ b/openhis-ui-vue3/src/views/basicmanage/medicalOrderSet/components/MedicalOrderSetDialog.vue @@ -146,7 +146,7 @@ v-model="scope.row.doseQuantity" @input=" (value) => { - scope.row.dose = value * scope.row.unitConversionRatio; + scope.row.dose = value / scope.row.unitConversionRatio; } " /> @@ -164,7 +164,7 @@ v-model="scope.row.dose" @input=" (value) => { - scope.row.doseQuantity = value / scope.row.unitConversionRatio; + scope.row.doseQuantity = value * scope.row.unitConversionRatio; } " /> @@ -543,7 +543,9 @@ function openEdit(tab, row) { dose: item.dose, doseQuantity: item.doseQuantity, methodCode: item.methodCode, + methodCode_dictText: item.methodCode_dictText, rateCode: item.rateCode, + rateCode_dictText: item.rateCode_dictText, // 医嘱类型(药品=1):没有则按表名推断(药品表 -> 药品) adviceType: item.adviceType !== undefined diff --git a/openhis-ui-vue3/src/views/basicmanage/medicalOrderSet/index.vue b/openhis-ui-vue3/src/views/basicmanage/medicalOrderSet/index.vue index 02834861..bbcaffd7 100644 --- a/openhis-ui-vue3/src/views/basicmanage/medicalOrderSet/index.vue +++ b/openhis-ui-vue3/src/views/basicmanage/medicalOrderSet/index.vue @@ -222,26 +222,26 @@