UNPKG

@tachybase/plugin-workflow-approval

Version:

Approval base in Workflow

92 lines (91 loc) 1.95 kB
/**审批发起的状态*/ export declare const APPROVAL_STATUS: { /** 草稿 */ DRAFT: number; /** 退回 */ RETURNED: number; /** 提交 */ SUBMITTED: number; /** 处理中 */ PROCESSING: number; /** 通过 */ APPROVED: number; /** 重新发起 */ RESUBMIT: number; /** 已拒绝 */ REJECTED: number; /** 异常 */ ERROR: number; }; /** * 审批执行的状态 */ export declare const APPROVAL_ACTION_STATUS: { /** 已分配 */ ASSIGNED: any; /** 待处理 */ PENDING: number; /** 退回 */ RETURNED: number; /** 通过 */ APPROVED: number; /** 已拒绝 */ REJECTED: number; /** 取消 */ CANCELED: number; /** 撤回 */ WITHDRAWN: number; }; export declare const approvalStatusOptions: ({ value: any; label: string; color: string; } | { value: number; label: string; color?: undefined; })[]; export declare const approvalStatusConfigObj: {}; export declare const ApprovalStatusEnums: ({ value: number; label: string; editable: boolean; color?: undefined; } | { value: number; label: string; color: string; editable: boolean; } | { value: number; label: string; color: string; editable?: undefined; })[]; export declare const ApprovalStatusEnumDict: {}; export declare const JobStatusEnums: { 0: { color: string; label: string; }; 1: { color: string; label: string; }; [-5]: { color: string; label: string; }; [-6]: { color: string; label: string; }; }; export declare const VoteCategory: { SINGLE: symbol; ALL: symbol; VOTE: symbol; }; export declare const VoteCategoryEnums: {}; export declare function voteOption(value: number): symbol; export declare function flatSchemaArray(sourceData: any, filter: any, needRecursion?: boolean): any[];