feat(sign): 补齐医护端与患者端签署流程

This commit is contained in:
xy
2026-09-28 19:57:57 +08:00
parent a25716c861
commit 8024075439
22 changed files with 1082 additions and 163 deletions
+10 -6
View File
@@ -6,16 +6,19 @@ import { clearPersistedSession, resetSignFlow, signingState } from '@/composable
const router = useRouter()
const resultTitle = computed(() =>
signingState.mode === 'real' && signingState.backendStatus === 'GENERATING'
? '签名已提交,文书生成中'
: '知情同意书已提交',
)
const resultTitle = computed(() => {
if (signingState.mode !== 'real') return '知情同意书已提交'
if (signingState.backendStatus === 'GENERATING') return '签名已提交,文书生成中'
if (signingState.backendStatus === 'WAITING_CONFIRM') return '签署已提交,等待科室确认'
return '知情同意书已提交'
})
const resultCopy = computed(() =>
signingState.mode === 'real' && signingState.backendStatus === 'GENERATING'
? '签名图片已安全提交,系统正在生成签署后文书。最终状态以医签通服务端为准。'
: '本次签署结果已提交至医签通。请按照医务人员指引完成后续诊疗安排。',
: signingState.mode === 'real' && signingState.backendStatus === 'WAITING_CONFIRM'
? '患者签名和签署文书已安全保存,等待医务人员完成科室确认。请勿重复签署。'
: '本次签署结果已提交至医签通。请按照医务人员指引完成后续诊疗安排。',
)
const statusLabel = computed(() => {
@@ -25,6 +28,7 @@ const statusLabel = computed(() => {
const labels: Record<string, string> = {
SIGNED: '已签署',
WAITING_CONFIRM: '待科室确认',
GENERATING: '生成中',
WAITING_SIGN: '待签署',
FAILED: '处理失败',