提交 | 用户 | 时间
|
5cc1d9
|
1 |
import request from '@/config/axios' |
D |
2 |
|
|
3 |
export interface DailySalesVO { |
|
4 |
id: string |
|
5 |
lsh : string |
|
6 |
rq: string |
|
7 |
xsmz: string |
|
8 |
xsmzName: string, |
|
9 |
xsl: number, |
|
10 |
bz: string, |
|
11 |
|
|
12 |
} |
|
13 |
|
|
14 |
export interface DailySalesPageReqVO extends PageParam { |
|
15 |
xsmz?: string, |
|
16 |
startDate?: Date, |
|
17 |
endDate?: Date, |
|
18 |
} |
|
19 |
|
|
20 |
// 查询DailySales列表 |
|
21 |
export const getDailySalesPage = (params: DailySalesPageReqVO) => { |
0b04a1
|
22 |
return request.get({ url: '/xmcpms/prod/sale/volume/page', params }) |
5cc1d9
|
23 |
} |
D |
24 |
|
|
25 |
// 查询DailySales列表 |
|
26 |
export const getPointList = (params: DailySalesPageReqVO) => { |
0b04a1
|
27 |
return request.get({ url: '/xmcpms/prod/sale/volume/list', params }) |
5cc1d9
|
28 |
} |
D |
29 |
|
|
30 |
// 查询DailySales详情 |
|
31 |
export const getDailySales = (id: number) => { |
0b04a1
|
32 |
return request.get({ url: `/xmcpms/prod/sale/volume/info/${id}`}) |
5cc1d9
|
33 |
} |
D |
34 |
|
|
35 |
// 新增DailySales |
|
36 |
export const createDailySales = (data: DailySalesVO) => { |
0b04a1
|
37 |
return request.post({ url: '/xmcpms/prod/sale/volume/create', data }) |
5cc1d9
|
38 |
} |
D |
39 |
|
|
40 |
// 修改DailySales |
|
41 |
export const updateDailySales = (data: DailySalesVO) => { |
0b04a1
|
42 |
return request.put({ url: '/xmcpms/prod/sale/volume/update', data }) |
5cc1d9
|
43 |
} |
D |
44 |
|
|
45 |
// 删除DailySales |
|
46 |
export const deleteDailySales = (id: number) => { |
0b04a1
|
47 |
return request.delete({ url: '/xmcpms/prod/sale/volume/delete?id=' + id }) |
5cc1d9
|
48 |
} |
D |
49 |
|
|
50 |
//导出DailySalesList |
|
51 |
export const exportDailySales = (params) => { |
0b04a1
|
52 |
return request.download({ url: '/xmcpms/prod/sale/volume/export', params }) |
5cc1d9
|
53 |
} |
D |
54 |
|
|
55 |
// 下载用户导入模板 |
|
56 |
export const importPointTemplate = () => { |
0b04a1
|
57 |
return request.download({ url: '/xmcpms/prod/sale/volume/get-import-template' }) |
5cc1d9
|
58 |
} |