From b14c19a8879cf19baded20dfd9f4432f19431f1d Mon Sep 17 00:00:00 2001 From: chenqi Date: Wed, 25 Mar 2026 16:28:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(prescription):=20=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E5=A4=84=E6=96=B9=E5=88=97=E8=A1=A8=E4=B8=AD=E5=89=82=E9=87=8F?= =?UTF-8?q?=E5=8F=98=E5=8C=96=E5=90=8E=E6=9C=AA=E9=87=8D=E6=96=B0=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E6=80=BB=E9=87=8F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在费率代码选择器上添加 change 事件监听器以触发总量计算 - 在持续时间输入框上添加 change 事件监听器以触发总量计算 - 移除注释的计算调用并添加正确的剂量变化后总量计算逻辑 - 修复 Bug #273 中单次剂量变化后总量未更新的问题 feat(surgery): 为手术管理界面中的手术单号添加链接功能 - 将手术单号列转换为可点击的链接组件 - 为手术单号添加 handleView 点击事件处理 - 扩展手术单号列宽度以改善显示效果 - 在手术排程界面中为手术单号同样添加链接功能 --- .../components/prescription/prescriptionlist.vue | 13 +++++++++---- openhis-ui-vue3/src/views/surgerymanage/index.vue | 8 +++++++- .../src/views/surgicalschedule/index.vue | 8 +++++++- 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue b/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue index 0ffa6e51..57c11e42 100644 --- a/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue +++ b/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue @@ -289,7 +289,9 @@ } // inputRefs.rateCode.blur(); } - " :ref="(el) => (inputRefs.rateCode = el)"> + " + @change="calculateTotalAmount(scope.row, scope.$index)" + :ref="(el) => (inputRefs.rateCode = el)"> @@ -310,7 +312,8 @@ controls-position="right" :controls="false" :ref="(el) => (inputRefs.dispensePerDuration = el)" @keyup.enter.prevent=" handleEnter('dispensePerDuration', scope.row, scope.$index) - "> + " + @change="calculateTotalAmount(scope.row, scope.$index)"> @@ -3883,8 +3886,9 @@ function convertValues(row, index) { row.dose = row.doseQuantity / row.partPercent; break; } + // 🔧 Bug #273 修复:单次剂量变化后重新计算总量 + calculateTotalAmount(row, index); }); - // calculateTotalAmount(row, index); } // 单次剂量数量改变时自动计算总量 @@ -3910,8 +3914,9 @@ function convertDoseValues(row, index) { row.doseQuantity = row.dose * row.partPercent; break; } + // 🔧 Bug #273 修复:单次剂量变化后重新计算总量 + calculateTotalAmount(row, index); }); - // calculateTotalAmount(row, index); } // 总量计算,仅适用只有两种单位的情况 diff --git a/openhis-ui-vue3/src/views/surgerymanage/index.vue b/openhis-ui-vue3/src/views/surgerymanage/index.vue index ee769841..33e90021 100644 --- a/openhis-ui-vue3/src/views/surgerymanage/index.vue +++ b/openhis-ui-vue3/src/views/surgerymanage/index.vue @@ -85,7 +85,13 @@ - + + + diff --git a/openhis-ui-vue3/src/views/surgicalschedule/index.vue b/openhis-ui-vue3/src/views/surgicalschedule/index.vue index 99faeef5..bcaaeefc 100644 --- a/openhis-ui-vue3/src/views/surgicalschedule/index.vue +++ b/openhis-ui-vue3/src/views/surgicalschedule/index.vue @@ -74,7 +74,13 @@ - + + +