Files
qhmes/jeecgboot-vue3/src/views/approval/flow/launch.api.ts

35 lines
1.1 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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 });