| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- export interface FlowDefinition {
- id: number
- code: string
- name: string
- description?: string
- category?: string
- version: number
- status: number // 0-草稿 1-已发布 2-停用
- formSchema?: string
- flowJson?: string
- createTime?: string
- updateTime?: string
- }
- export interface FlowInstance {
- id: number
- definitionId: number
- definitionName?: string
- instanceNo?: string
- businessKey?: string
- status: number // 0-运行中 1-已完成 2-已终止
- startTime?: string
- endTime?: string
- currentNode?: string
- createBy?: string
- }
- export interface FlowTask {
- id: number
- instanceId: number
- definitionName?: string
- nodeName: string
- assigneeId?: number
- assigneeName?: string
- status: number // 0-待处理 1-已处理 2-转办
- action?: string
- comment?: string
- createTime?: string
- endTime?: string
- }
- export interface FlowNodeConfig {
- id: string
- type: 'start' | 'approval' | 'cc' | 'condition' | 'end'
- name: string
- x: number
- y: number
- properties?: Record<string, unknown>
- }
- export interface FlowEdgeConfig {
- id: string
- sourceNodeId: string
- targetNodeId: string
- properties?: Record<string, unknown>
- }
- export interface ApprovalAction {
- action: 'pass' | 'reject' | 'rollback' | 'transfer'
- comment?: string
- transferTo?: number
- }
- export interface NodeProgress {
- nodeId: string
- nodeName: string
- nodeType: string
- status: 'completed' | 'current' | 'pending'
- tasks: FlowTask[]
- isMyTurn: boolean
- }
- export interface ProcessProgress {
- instance: FlowInstance
- definition: FlowDefinition
- nodes: NodeProgress[]
- records: ApprovalRecord[]
- remainingNodeCount: number
- }
- export interface ApprovalRecord {
- id?: number
- taskId: number
- instanceId: number
- nodeId: string
- nodeName: string
- operatorId: number
- operatorName?: string
- actionType: string
- actionResult: string
- comment?: string
- createTime?: string
- }
|