feat(projects): 新增 '我发起的' 功能

This commit is contained in:
AN
2025-06-30 22:37:29 +08:00
parent c3ea81dc0d
commit a77edc2e36
16 changed files with 454 additions and 39 deletions

View File

@ -141,7 +141,7 @@ declare namespace Api {
type WorkflowActivityStatus = 0 | 1;
/** 流程实例 */
type ProcessInstance = Common.CommonRecord<{
type Instance = Common.CommonRecord<{
/** 主键 */
id: CommonType.IdType;
/** 租户编号 */
@ -194,15 +194,15 @@ declare namespace Api {
}>;
/** 流程实例搜索参数 */
type ProcessInstanceSearchParams = CommonType.RecordNullable<
Pick<ProcessInstance, 'flowName' | 'flowCode' | 'businessId' | 'category' | 'nodeName'> &
type InstanceSearchParams = CommonType.RecordNullable<
Pick<Instance, 'flowName' | 'flowCode' | 'businessId' | 'category' | 'nodeName'> &
Api.Common.CommonSearchParams & {
startUserId: CommonType.IdType;
createByIds: CommonType.IdType[];
}
>;
/** 流程实例列表 */
type ProcessInstanceList = Common.PaginatingQueryRecord<ProcessInstance>;
type InstanceList = Common.PaginatingQueryRecord<Instance>;
/** 流程作废操作参数 */
type FlowInvalidOperateParams = CommonType.RecordNullable<{
@ -212,6 +212,14 @@ declare namespace Api {
comment: string;
}>;
/** 流程撤销操作参数 */
type CancelProcessApplyParams = CommonType.RecordNullable<{
/** 主键 */
businessId: CommonType.IdType;
/** 撤销原因 */
message: string;
}>;
/** 启动流程操作参数 */
type StartWorkflowOperateParams = CommonType.RecordNullable<{
/** 流程定义ID */
@ -225,7 +233,7 @@ declare namespace Api {
/** 启动流程结果 */
type StartWorkflowResult = CommonType.RecordNullable<{
/** 流程实例ID */
processInstanceId: CommonType.IdType;
instanceId: CommonType.IdType;
/** 任务ID */
taskId: CommonType.IdType;
}>;

View File

@ -61,6 +61,7 @@ declare module "@elegant-router/types" {
"workflow_process-instance": "/workflow/process-instance";
"workflow_task": "/workflow/task";
"workflow_task_all-task-waiting": "/workflow/task/all-task-waiting";
"workflow_task_my-document": "/workflow/task/my-document";
};
/**
@ -160,6 +161,7 @@ declare module "@elegant-router/types" {
| "workflow_process-definition"
| "workflow_process-instance"
| "workflow_task_all-task-waiting"
| "workflow_task_my-document"
>;
/**