提交 | 用户 | 时间
|
820397
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export type LeaveVO = { |
|
4 |
id: number |
|
5 |
status: number |
|
6 |
type: number |
|
7 |
reason: string |
|
8 |
processInstanceId: string |
|
9 |
startTime: string |
|
10 |
endTime: string |
|
11 |
createTime: string |
|
12 |
} |
|
13 |
|
|
14 |
// 创建请假申请 |
|
15 |
export const createLeave = async (data: LeaveVO) => { |
|
16 |
return await request.post({ url: '/bpm/oa/leave/create', data: data }) |
|
17 |
} |
|
18 |
|
|
19 |
// 获得请假申请 |
|
20 |
export const getLeave = async (id: number) => { |
|
21 |
return await request.get({ url: '/bpm/oa/leave/get?id=' + id }) |
|
22 |
} |
|
23 |
|
|
24 |
// 获得请假申请分页 |
|
25 |
export const getLeavePage = async (params: PageParam) => { |
|
26 |
return await request.get({ url: '/bpm/oa/leave/page', params }) |
|
27 |
} |