Fix Bug #446: 【手术管理-门诊手术安排】临时医嘱生成后界面非法关闭且按钮名称/功能显示不一致

移除签名成功后自动关闭弹窗的 setTimeout,改为保留弹窗让用户查看已签发的医嘱状态。
新增 isSignedProp 传递给子组件,使重新打开弹窗时按钮名称保持为"提交医嘱"而非重置为"一键签名并生成医嘱"。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
刘备
2026-05-09 20:18:41 +08:00
parent 0e6dc880b3
commit 0f52327b8b
2 changed files with 16 additions and 11 deletions

View File

@@ -244,10 +244,14 @@ const props = defineProps({
default: () => []
},
// 二区域:临时医嘱预览(已生成医嘱)- v-model:temporary-advices 对应 prop 名
// 🔧 修复:使用驼峰命名,因为 v-model:temporary-advices 会映射到 temporaryAdvices prop
temporaryAdvices: {
type: Array,
default: () => []
},
// 签名状态:用于保持按钮名称一致性
isSignedProp: {
type: Boolean,
default: false
}
})
@@ -306,8 +310,8 @@ const getMethodCodeDict = computed(() => {
return dict
})
// 响应式数据
const isSigned = ref(false)
// 响应式数据 - isSigned 从父组件传入的 prop 初始化
const isSigned = ref(props.isSignedProp)
const signatureTime = ref('')
const showSignDialog = ref(false)
const signPassword = ref('')