cxc-szcx-uniapp/api/leaveApi.js

56 lines
1.1 KiB
JavaScript
Raw Normal View History

2024-10-12 00:53:10 +00:00
import {
https
} from '@/utils/http.js';
export function qjAddApi(config) { // 发起请假流程申请
return https({
url: '/CxcQxj/cxcQxj/add',
method: 'post',
data: config
})
}
2025-02-24 07:28:03 +00:00
2024-10-12 00:53:10 +00:00
export function queryZwmcAndExaApi(username) { // 根据username获取职位名称和审批领导列表
return https({
url: '/CxcQxj/cxcQxj/queryZwmcByUsername',
method: 'get',
data: {
username
}
})
2024-10-14 00:51:28 +00:00
}
export function qjQueryByIdApi(config) { // 通过id查询请假数据 流程用
return https({
url: '/CxcQxj/cxcQxj/queryById',
method: 'get',
data: config
})
2025-02-07 02:26:15 +00:00
}
export function queryHisDateApi(username) { // 根据username获取最新请假结束日期
return https({
url: '/CxcQxj/cxcQxj/queryHisDate',
method: 'get',
data: {
username
}
})
2025-02-24 07:28:03 +00:00
}
export function queryLeaveListApi(params) { // 获取所有请假信息
return https({
url: '/CxcQxj/cxcQxj/list',
method: 'get',
data: params
})
2025-02-27 01:34:41 +00:00
}
export function countByOrgApi(params) { // 获取所有请假信息
return https({
url: '/CxcQxj/cxcQxj/countByOrg',
method: 'get',
data: params
})
2024-10-12 00:53:10 +00:00
}