import { type IObject } from '@newgrand/udp-core'; import React, { RefObject } from 'react'; export interface IWorkFlowPanelProps { /** * @description 业务类型 */ busTypeCode?: string; /** * @description 不配置,则取url地址里面的wfpiid参数 */ wfPiId?: string; /** * @description 不配置,则取url地址里面的wftaskid参数 */ wfTaskId?: string; /** * @description 不配置,则取url地址里面的wfotype参数 */ wfOType?: string; /** * @description 不配置,则取url地址里面的eformCode参数加EFORM前缀 */ bizType?: string; /** * @description 不配置,则取url地址里面的otype参数 * @default edit */ oType?: 'add' | 'edit' | 'view'; /** * @description 不配置,则取url地址里面的id参数 */ bizPhId?: string; /** * @description 不配置,则取url地址里面的isFromPortal参数 * @default false */ isFromPortal?: boolean; /** * @description 不配置,则取url地址里面的iswftasklist参数 * @default false */ refreshTaskList?: boolean; /** * @description toolbar的id,用于注入审批按钮 */ toolbar?: string | RefObject; /** * @description 高度 * @default 300 */ height?: number; /** * @description 任务办理时,可见的toolbar itemId */ showToolBarItems?: Array; /** * @description 显示所有toolbar按钮 * @default false */ showAllToolBar?: boolean; /** * @description 调用业务单据保存,如果返回false则终止操作 */ bizSaveFn?: (opType: any) => Promise; /** * @description ⽤于审批后进⾏附件上传保存的⽅法 */ postApprovedBizSaveFn?: (opType: any) => Promise; /** * @description 自定义组件任务处理函数,并把工作流参数传到服务端,并在服务端调用工作流api */ onTaskComplete?: (compId: any, taskDealInfo: any) => Promise; /** * @description 设置业务组件附加数据 */ getAttachData?: (opType: any) => Promise; taskDealInfo?: IObject; } /** * 审批办理中间组件(验证参数、请求审批信息数据) * @param props * @constructor */ export declare const WorkFlowPanel: React.ForwardRefExoticComponent & React.RefAttributes<{ [x: string]: any; getApi(): any; }>>;