export interface ExamineTag { name: string; type: string; selected?: 'false' | 'true'; } export interface WorkFlowNodeType { fileTypeId?: string; id?: string; only?: string; checked?: string; memo?: string; method?: string; name?: string; nextWfleveId?: string; nextWfleveType?: string; wfleveId?: string; isMuch?: string; disabled?: boolean; selected?: string; nodes?: WorkFlowNodeType[]; handleType?: string; remind?: any; limit?: any; nextWfName?: string; receiveName?: string; accInfo?: string; } export interface RecordType { flag: string; size: string; node: WorkFlowNodeType[]; } export interface RoleType { selectoperate: RecordType[]; } export interface FlowInstanceNode { flag: '0' | '1'; /** * 路由id */ id: string; /** * TODO: 注释作用 */ uuid?: string; /** * 节点类型 */ type: 'user' | 'dept' | 'op'; /** * 名称 */ name: string; /** * 可选的操作类型 */ examinetag?: ExamineTag[]; /** * 操作类型 * * @type {string} * @memberof FlowInstanceNode */ handleType?: string; /** * TODO: 注释作用 */ nodes?: FlowInstanceNode[]; /** * 是否单选 */ only?: 'true' | 'false'; /** * 是否可选 */ checked?: 'true' | 'false'; /** * 是否已选中 */ selected?: 'true' | 'false'; deptUserType?: 'dept' | 'user'; selectedOrder: number; limit?: string; remind?: string; } export interface FlowInstance { flag: 'flowinstance'; size?: string; node: FlowInstanceNode[]; title?: string; remind?: { content: string; isRemind: '1' | '0'; }; dbDeptList?: { [x: string]: string[]; }; } export interface ToFlowParamsType { filetypeid: string; title: string; userid: string; deptid: string; flag: string; workitemid: string; workflowid: string; recordid: string; formDesignId?: string; } export interface WorkflowInfoType { flag: any; selectedRole: string; selectedOperate: string; wfoperateid: string; node: any[]; remind: { content: string; isRemind: '1' | '0'; }; formDesignId?: string; /** * 流程结束标识 值为"1"表示流程结束 */ endFlag: string; /** * 流程id */ workflowid: string; /** * 待办事项id */ workitemid: string; /** * 流程发送异常提示信息 */ exception: string; /** * 扩展参数 */ attr?: string; size?: any; title?: string; /** * 传递流程变量。 * * 格式:deptRange=dept1|dept2|dept3,other=1|2|3|4 */ extendattr?: string; } export interface WorkflowSendType { send: (sendParams: any) => Promise; onOk: (value: WorkflowInfoType) => void; workflowInfo: WorkflowInfoType; sendWorkFlowStatus: string; onChange: (value: WorkflowInfoType) => void; open: boolean; onClose: () => void; onSuccessClose: () => void; onCancel: () => void; isMobile: boolean; /** * 弹窗的确认按钮是否加载中 */ okBtnLoading: boolean; getSelectedFlowOperators: (value: FlowInstanceNode) => string[]; }