import type { Node } from '../core-flow'; import type FormDesignSetting from './FormDesignSetting'; import type FormValues from './FormValues'; import type Idea from './Idea'; import type OperateLog from './OperateLog'; import type PassedNodeInfo from './PassedNodeInfo'; import type Permission from './Permission'; import type { SendBackRecordInfo } from './SendBackRecordType'; import type SendBackRecordType from './SendBackRecordType'; import type WorkFlowCourse from './WorkfFlowCourse'; export interface CurrentWriteInfo { /** * 待办事项id */ id: string; /** * 节点名称 */ name: string; /** * 当前办理人信息 */ operateUserName: string; /** * 当前处理人id */ userId: string; /** * 当前处理人部门id */ deptId: string; /** * 上一节点用户id */ preUserId: string; /** * 上一节点部门id */ preDeptId: string; /** * 上一节点用户名称 */ preUserName: string; /** * 上一节点部门名称 */ preDeptName: string; } export interface ReqSendBackRecord { /** * 申请记录id */ id: string; /** * 申请人name */ userName: string; /** * 申请人id */ userId: string; /** * 状态 */ status: string; /** * 请求的创建时间 */ createTime: string; /** * 申请退回原因 */ reason: string; /** * 表单id */ recordId: string; } /** * 表单数据 */ export default interface FormData { /** * 表单数据id */ id?: string; /** * 权限 */ permission?: Permission; /** * 表单值 */ formValues: FormValues; /** * 表单设计器 */ formDesign: FormDesignSetting; /** * 临时意见 */ flowIdea?: Idea; /** * 当前的流程节点 */ flowNode?: Node; /** * 意见列表 */ ideaList?: Idea[]; /** * 流程记录 */ flowRecord?: WorkFlowCourse[]; /** * 当前节点状态和当前办理人信息 */ currentWriteInfo?: CurrentWriteInfo[]; /** * 已途经节点列表 */ passNodes?: PassedNodeInfo[]; /** * 退回说明 */ sendBackRecord?: SendBackRecordType; /** * 退回记录(列表) */ sendBackRecordList?: SendBackRecordInfo[]; /** * 操作日志 */ operateLogList?: OperateLog[]; reqSendBackRecordList?: ReqSendBackRecord[]; /** * 流程类型 * * `changeDataFlow`为数据变更流程 * `normalFlow` 为正常流转流程 */ flowType?: 'changeDataFlow' | 'normalFlow'; }