Blame view

Yi.Vben5.Vue3/apps/web-antd/src/api/workflow/task/model.d.ts 2.13 KB
515fceeb   “wangming”   框架初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
  export interface ButtonWithPermission {
    code: string;
    value: null | string;
    show: boolean;
  }
  
  export interface TaskInfo {
    id: string;
    categoryName: string;
    creationTime: string;
    updateTime: string;
    tenantId: string;
    delFlag?: any;
    definitionId: string;
    instanceId: string;
    flowName: string;
    businessId: string;
    nodeCode: string;
    nodeName: string;
    nodeType: number;
    permissionList?: any;
    userList?: any;
    formCustom: string;
    formPath?: any;
    flowCode: string;
    version: string;
    flowStatus: string;
    flowStatusName: string;
    assigneeIds: string;
    assigneeNames: string;
    processedBy: string;
    type: string;
    nodeRatio?: string;
    createBy: string;
    createByName: string;
    targetNodeName?: string;
    buttonList: ButtonWithPermission[];
  }
  
  export interface CompleteTaskReqData {
    messageType: string[];
    flowCopyList: { userId: string; userName: string }[];
    taskId: ID;
    taskVariables: Record<string, any>;
    variables: any;
    // 附件ID 1,2,3,4形式
    fileId?: string;
    // 选人 key为节点code value为用户ID join(,)
    assigneeMap: { [key: string]: string };
  }
  
  export interface StartWorkFlowReqData {
    /**
     * 业务ID
     */
    businessId: ID;
    /**
     * flowCode
     */
    flowCode: string;
    /**
     * 流程变量
     */
    variables: Record<string, any>;
  }
  
  export interface TaskOperationData {
    message?: string;
    taskId: ID;
    // 单个操作人
    userId?: ID;
    // 多个操作人
    userIds?: IDS;
  }
  
  /**
   * 操作类型,委派 delegateTask、转办 transferTask、加签 addSignature、减签 reductionSignature
   */
  export type TaskOperationType =
    | 'addSignature'
    | 'delegateTask'
    | 'reductionSignature'
    | 'transferTask';
  
  export interface NextNodeInfo {
    skipList: string[];
    id: string;
    creationTime: string;
    updateTime: string;
    tenantId: string;
    delFlag: string;
    nodeType: number;
    definitionId: string;
    nodeCode: string;
    nodeName: string;
    permissionFlag: string;
    nodeRatio: string;
    coordinate: string;
    version: string;
    anyNodeSkip: any;
    listenerType: any;
    listenerPath: any;
    handlerType: any;
    handlerPath: any;
    formCustom: string;
    formPath: any;
    ext: string;
  }