Fix Bug #492: 【门诊手术安排】关闭"手术计费"主弹窗后,项目字典选择列表依然残留悬浮在界面上

根因:关闭计费弹窗时未调用 prescriptionlist 子组件的 closeAllPopovers 方法,
导致 el-popover(项目字典悬浮列表)在父弹窗销毁后仍残留显示。
修复:在 closeChargeDialog 中先调用 prescriptionRef.value.closeAllPopovers() 关闭所有子 popover。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
赵云
2026-05-12 11:34:50 +08:00
committed by 荀彧
parent fff7ef849a
commit d56b4f6f6f

View File

@@ -1412,6 +1412,10 @@ async function handleChargeCharge(row) {
// 关闭计费弹窗 // 关闭计费弹窗
function closeChargeDialog() { function closeChargeDialog() {
// 先关闭 prescriptionlist 内所有已打开的项目字典 popover
if (prescriptionRef.value && prescriptionRef.value.closeAllPopovers) {
prescriptionRef.value.closeAllPopovers()
}
showChargeDialog.value = false showChargeDialog.value = false
chargePatientInfo.value = {} chargePatientInfo.value = {}
chargeSurgeryInfo.value = {} chargeSurgeryInfo.value = {}