feat-wip(projects): 新增待办任务功能,优化代码

This commit is contained in:
AN
2025-06-22 12:33:56 +08:00
parent ae5c7e8372
commit b3dccb542e
15 changed files with 406 additions and 38 deletions

View File

@ -305,6 +305,10 @@ declare namespace Api {
/** 流程版本号 */
version: string;
}>;
/** 任务列表 */
type TaskList = Common.PaginatingQueryRecord<Task>;
/** 协作方式 */
type CooperateType = 1 | 2 | 3 | 4 | 5 | 6 | 7;
@ -378,11 +382,25 @@ declare namespace Api {
attachmentList: Api.System.Oss[];
}>;
type InstanceIdWithHisTask = CommonType.RecordNullable<{
/** 历史任务列表 */
type HisTaskList = Common.PaginatingQueryRecord<HisTask>;
/** 流程实例ID与历史任务 */
type InstanceIdWithHisTask = Common.CommonRecord<{
/** 流程实例ID */
instanceId: CommonType.IdType;
/** 历史任务 */
list: HisTask[];
}>;
/** 任务搜索参数 */
type TaskSearchParams = CommonType.RecordNullable<
Pick<Task, 'flowName' | 'flowCode' | 'businessId' | 'category' | 'nodeName'> &
Api.Common.CommonSearchParams & {
createByIds: CommonType.IdType[];
}
>;
/** 消息类型 */
type MessageType = '1' | '2' | '3';

View File

@ -59,6 +59,8 @@ declare module "@elegant-router/types" {
"workflow_leave": "/workflow/leave";
"workflow_process-definition": "/workflow/process-definition";
"workflow_process-instance": "/workflow/process-instance";
"workflow_task": "/workflow/task";
"workflow_task_all-task-waiting": "/workflow/task/all-task-waiting";
};
/**
@ -157,6 +159,7 @@ declare module "@elegant-router/types" {
| "workflow_leave"
| "workflow_process-definition"
| "workflow_process-instance"
| "workflow_task_all-task-waiting"
>;
/**