Fix Bug #538: 手术申请删除后医嘱未同步删除 — 根因:handleDelete 未 emit('saved') 通知父组件刷新医嘱列表,修复:删除/取消成功后追加 emit('saved') 触发 prescriptionRef.getListInfo()

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-18 11:05:37 +08:00
parent ad85e4d284
commit 7c0d103409

View File

@@ -856,6 +856,7 @@ function handleDelete(row) {
}).then(() => {
getList()
proxy.$modal.msgSuccess('删除成功')
emit('saved') // 通知父组件刷新医嘱列表
}).catch(error => {
console.error('删除手术失败:', error)
proxy.$modal.msgError('删除失败')
@@ -867,6 +868,7 @@ function handleDelete(row) {
}).then(() => {
getList()
proxy.$modal.msgSuccess('手术已取消')
emit('saved') // 通知父组件刷新医嘱列表
}).catch(error => {
console.error('取消手术失败:', error)
proxy.$modal.msgError('取消失败')