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('价格计算过程中遇到错误,请检查输入数据');