新增MES审批流设计功能,包括审批流定义、审批实例管理及审批办理接口,支持可视化设计与业务单据联动,提升审批流程的灵活性与用户体验。

This commit is contained in:
geht
2026-05-29 15:49:10 +08:00
parent 94132ea8da
commit aefa44b8a9
48 changed files with 5603 additions and 261 deletions

View File

@@ -0,0 +1,34 @@
import { defHttp } from '/@/utils/http/axios';
/**
* 发起审批 API全局悬浮按钮使用
* @author GHT
* @date 2026-05-29 for【QH-MES审批流设计】发起审批运行时
*/
enum Api {
publishedList = '/xslmes/approvalLaunch/publishedList',
bizRecords = '/xslmes/approvalLaunch/bizRecords',
launch = '/xslmes/approvalLaunch/launch',
launchBatch = '/xslmes/approvalLaunch/launchBatch',
}
/**
* 已发布审批流列表(可发起的单据类型)
*/
export const getPublishedFlows = () => defHttp.get({ url: Api.publishedList });
/**
* 根据审批流查询其绑定单据的记录列表
*/
export const getBizRecords = (params: { flowId: string; keyword?: string }) => defHttp.get({ url: Api.bizRecords, params });
/**
* 发起审批(单条)
*/
export const launchApproval = (params: { flowId: string; bizDataId: string; bizTitle?: string }) => defHttp.post({ url: Api.launch, params });
/**
* 批量发起审批(列表多选)
*/
export const launchApprovalBatch = (params: { flowId: string; items: { bizDataId: string; bizTitle?: string }[] }) =>
defHttp.post({ url: Api.launchBatch, params });