提交 | 用户 | 时间
|
5cc1d9
|
1 |
import request from '@/config/axios' |
D |
2 |
|
|
3 |
export interface OnDutyInfoVO { |
|
4 |
|
|
5 |
} |
|
6 |
|
|
7 |
export interface OnDutyInfoPageReqVO extends PageParam { |
|
8 |
|
|
9 |
} |
|
10 |
|
|
11 |
// 查询OnDutyInfo列表 |
|
12 |
export const getOnDutyInfoPage = (params: OnDutyInfoPageReqVO) => { |
73d750
|
13 |
return request.get({ url: '/xmcpms/prod/work/onDutyInfo/page', params }) |
5cc1d9
|
14 |
} |
D |
15 |
|
|
16 |
// 查询OnDutyInfo列表 |
|
17 |
export const getPointList = (params: OnDutyInfoPageReqVO) => { |
73d750
|
18 |
return request.get({ url: '/xmcpms/prod/work/onDutyInfo/list', params }) |
5cc1d9
|
19 |
} |
D |
20 |
|
|
21 |
// 查询OnDutyInfo详情 |
|
22 |
export const getOnDutyInfo = (id: number) => { |
73d750
|
23 |
return request.get({ url: `/xmcpms/prod/prod/work/onDutyInfo/info/${id}`}) |
5cc1d9
|
24 |
} |
D |
25 |
|
|
26 |
// 新增OnDutyInfo |
|
27 |
export const createOnDutyInfo = (data: OnDutyInfoVO) => { |
73d750
|
28 |
return request.post({ url: '/xmcpms/prod/work/onDutyInfo/create', data }) |
5cc1d9
|
29 |
} |
D |
30 |
|
|
31 |
// 修改OnDutyInfo |
|
32 |
export const updateOnDutyInfo = (data: OnDutyInfoVO) => { |
73d750
|
33 |
return request.put({ url: '/xmcpms/prod/work/onDutyInfo/update', data }) |
5cc1d9
|
34 |
} |
D |
35 |
|
|
36 |
// 删除OnDutyInfo |
|
37 |
export const deleteOnDutyInfo = (id: number) => { |
73d750
|
38 |
return request.delete({ url: '/xmcpms/prod/work/onDutyInfo/delete?id=' + id }) |
5cc1d9
|
39 |
} |
D |
40 |
|
|
41 |
//导出OnDutyInfoList |
|
42 |
export const exportOnDutyInfo = (params) => { |
73d750
|
43 |
return request.download({ url: '/xmcpms/prod/work/onDutyInfo/export', params }) |
5cc1d9
|
44 |
} |
D |
45 |
|
|
46 |
// 下载用户导入模板 |
|
47 |
export const importPointTemplate = () => { |
73d750
|
48 |
return request.download({ url: '/xmcpms/prod/work/onDutyInfo/get-import-template' }) |
5cc1d9
|
49 |
} |