diff --git a/openhis-ui-vue3/src/views/clinicmanagement/bargain/component/prescriptionlist.vue b/openhis-ui-vue3/src/views/clinicmanagement/bargain/component/prescriptionlist.vue index 6908d51e7..865efff9b 100755 --- a/openhis-ui-vue3/src/views/clinicmanagement/bargain/component/prescriptionlist.vue +++ b/openhis-ui-vue3/src/views/clinicmanagement/bargain/component/prescriptionlist.vue @@ -926,23 +926,36 @@ function handleDelete() { } if (hasSavedItem) { - // 有已保存的行,调用后端API删除 - savePrescription({ adviceSaveList: deleteList }).then((res) => { - if (res.code == 200) { - proxy.$modal.msgSuccess('操作成功'); - getListInfo(false); - } + // 🔧 Bug #454: 删除前弹出确认提示,告知用户将级联删除关联检验申请单 + const hasLabItem = deleteList.some(item => item.adviceType === 3); + const confirmMsg = hasLabItem + ? '删除此医嘱将同时删除关联的检验申请单,是否确认删除?' + : '确认删除选中的医嘱项目吗?'; + + proxy.$modal.confirm(confirmMsg).then(() => { + savePrescription({ adviceSaveList: deleteList }).then((res) => { + if (res.code == 200) { + proxy.$modal.msgSuccess('操作成功'); + getListInfo(false); + expandOrder.value = []; + groupIndexList.value = []; + groupList.value = []; + isAdding.value = false; + adviceQueryParams.value.adviceType = undefined; + } + }); + }).catch(() => { + // 用户取消删除 }); } else { // 只有新增行,已经在前端删除完成 proxy.$modal.msgSuccess('操作成功'); + expandOrder.value = []; + groupIndexList.value = []; + groupList.value = []; + isAdding.value = false; + adviceQueryParams.value.adviceType = undefined; } - - expandOrder.value = []; - groupIndexList.value = []; - groupList.value = []; - isAdding.value = false; - adviceQueryParams.value.adviceType = undefined; } function handleNumberClick(item, index) {