From e7a7bd1eda1830ba3b70a274f5a3649d838418d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=BA=91?= <赵云@gentronhealth.com> Date: Sat, 9 May 2026 22:19:03 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#464:=20[=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E7=AE=A1=E7=90=86-=E8=AF=8A=E7=96=97=E7=9B=AE=E5=BD=95]=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=A1=B9=E7=9B=AE=E6=97=B6"=E9=9B=B6?= =?UTF-8?q?=E5=94=AE=E4=BB=B7"=E6=9C=AA=E4=B8=8E"=E8=AF=8A=E7=96=97?= =?UTF-8?q?=E5=AD=90=E9=A1=B9"=E5=90=88=E8=AE=A1=E6=80=BB=E4=BB=B7?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- .../components/diagnosisTreatmentDialog.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openhis-ui-vue3/src/views/catalog/diagnosistreatment/components/diagnosisTreatmentDialog.vue b/openhis-ui-vue3/src/views/catalog/diagnosistreatment/components/diagnosisTreatmentDialog.vue index 6c864519..3bd2b641 100755 --- a/openhis-ui-vue3/src/views/catalog/diagnosistreatment/components/diagnosisTreatmentDialog.vue +++ b/openhis-ui-vue3/src/views/catalog/diagnosistreatment/components/diagnosisTreatmentDialog.vue @@ -474,6 +474,10 @@ function calculateTotalPrice() { } }); totalPrice.value = sum.toFixed(2); + // Bug #464: 零售价与诊疗子项合计总价实时同步 + if (treatmentItems.value.length > 0 && treatmentItems.value[0].adviceDefinitionId !== '') { + form.value.retailPrice = parseFloat(totalPrice.value); + } } catch (error) { totalPrice.value = '0.00'; proxy.$modal.msgWarning('价格计算过程中遇到错误,请检查输入数据');