zhxy-jsd/src/api/base/xsQjApi.ts
2025-10-24 21:29:01 +08:00

62 lines
1.4 KiB
TypeScript
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 { get, post } from "@/utils/request";
/**
* 查询学生请假列表
*/
export const findXsQjListApi = async (params: any) => {
return await get("/api/xsQj/findPage", params);
};
/**
* 根据ID获取学生请假详情
*/
export const findXsQjByIdApi = async (params: { id: string }) => {
return await get("/api/xsQj/getDetail", params);
};
/**
* 学生请假审批
*/
export const xsQjSpApi = async (params: any) => {
return await post("/api/xsQj/sp", params);
};
/**
* 学生请假审批终止
*/
export const xsQjStopApi = async (params: any) => {
return await post("/api/xsQj/stop", params);
};
/**
* 学生请假审批转办
*/
export const xsQjTransferApi = async (params: any) => {
return await post("/api/xsQj/transfer", params);
};
/**
* 学生请假统计
* @param date 统计日期 格式yyyy-MM-dd不传默认当天
*/
export const xsQjStatisticsApi = async (params?: { date?: string }) => {
return await get("/api/xsQj/statistics", params);
};
/**
* 获取学生请假审批流程
* @param ywId 业务ID
* @param ywType 业务类型
*/
export const getXsQjApprovalProcessApi = (ywId: string, ywType: string = 'XS_QJ') => {
return get("/api/lcglSp/getByYwIdAndYwType", { ywId, ywType });
};
/**
* 确认放行
*/
export const confirmReleaseApi = async (params: { id: string; fxjsId: string; fxjsxm: string }) => {
return await post("/api/xsQj/confirmRelease", params);
};