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
@@ -44,7 +44,11 @@ import { useAppStore } from '@/stores/app'
import { useLoginStore } from '@/stores/login'
import type { SigningFieldProgress, SigningSignatureRequest } from '@/utils/signing-document'
import { PRIMARY_SIGNATURE_FIELD_ID } from '@/utils/signing-fields'
import { formatSigningMethodTitle, readSigningMethod, toggleSigningMethod } from '@/utils/signing-method'
import {
formatSigningMethodTitle,
readSigningMethod,
toggleSigningMethod,
} from '@/utils/signing-method'
import { downloadSigningPdf } from '@/utils/signing-pdf'
import OnlineSigningDialog from './components/OnlineSigningDialog.vue'
@@ -833,7 +837,7 @@ async function handleTaskAction(action: SigningTaskAction, targetMethod?: Signin
...signingApiOptions.value,
expectedRowVersion: task.rowVersion,
}),
'短信已重新发送',
'短信投递已重新排队',
)
return
}
@@ -1036,7 +1040,7 @@ async function handleSmsSent(mobile: string | null) {
smsSendVisible.value = false
await refreshTask(
updated,
`签署短信已发送${updated?.smsMobileMasked ? `至 ${updated.smsMobileMasked}` : ''},等待患者签署`,
`签署短信投递已排队${updated?.smsMobileMasked ? `至 ${updated.smsMobileMasked}` : ''},等待患者签署`,
)
} catch {
ElMessage.error('发送签署短信失败,请稍后重试')
@@ -1180,6 +1184,7 @@ onMounted(() => {
<SmsSendDialog
:visible="smsSendVisible"
:task="selectedTask"
:is-mock="isSigningMockEnabled"
@close="smsSendVisible = false"
@send="handleSmsSent"
/>