feat(patient-h5): 接入签署令牌与签名上传

This commit is contained in:
yelan
2026-09-01 10:13:45 +08:00
parent e467f03f23
commit 40cd313786
11 changed files with 614 additions and 42 deletions
+17
View File
@@ -1,15 +1,32 @@
import type { SignDeliveryChannel, SignatureUploadResponse } from '@/api/types'
export type SignerRelation = '本人' | '父亲' | '母亲' | '其他监护人' | '其他'
export type SignFlowMode = 'mock' | 'real'
export type SignFlowStatus =
'idle' | 'loading' | 'ready' | 'blocked' | 'submitting' | 'submitted' | 'error'
export interface SignFlowState {
mode: SignFlowMode
status: SignFlowStatus
patientName: string
visitNo: string
documentTitle: string
taskNo: string
taskId: string
deliveryId: string
uploadToken: string
channel: SignDeliveryChannel | ''
consentAccepted: boolean
signerName: string
relation: SignerRelation | ''
signatureCaptured: boolean
submittedAt: string
backendStatus: string
pipelineId: string
uploadResult: SignatureUploadResponse | null
errorMessage: string
}
export const relationOptions: Array<{ value: SignerRelation; label: string }> = [