feat: [bpm][antd] 流程打印迁移

This commit is contained in:
jason
2025-11-08 22:13:29 +08:00
parent ed923a2661
commit 143c9660da
8 changed files with 382 additions and 3 deletions

View File

@@ -20,6 +20,7 @@ export namespace BpmProcessInstanceApi {
export interface User {
avatar: string;
deptName?: string;
id: number;
nickname: string;
}
@@ -101,6 +102,22 @@ export namespace BpmProcessInstanceApi {
}[];
taskId: string;
}
/** 打印数据任务信息 */
export interface PrintTask {
description: string;
id: number;
name: string;
signPicUrl?: string;
}
/** 打印数据 */
export interface PrintData {
printTemplateEnable: boolean;
printTemplateHtml?: string;
processInstance: ProcessInstance;
tasks: PrintTask[];
}
}
/** 查询我的流程实例分页 */
@@ -205,3 +222,10 @@ export async function getProcessInstanceBpmnModelView(id: string) {
`/bpm/process-instance/get-bpmn-model-view?id=${id}`,
);
}
/** 获取流程实例打印数据 */
export async function getProcessInstancePrintData(id: string) {
return requestClient.get<BpmProcessInstanceApi.PrintData>(
`/bpm/process-instance/get-print-data?processInstanceId=${id}`,
);
}