feat(patient-h5): 接入签署令牌与签名上传
This commit is contained in:
@@ -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 }> = [
|
||||
|
||||
Reference in New Issue
Block a user