提交 | 用户 | 时间
|
ebc552
|
1 |
import request from '@/config/axios' |
L |
2 |
|
|
3 |
export interface MmItemAccuracyRateVO { |
|
4 |
id: string |
|
5 |
itemId: string, |
|
6 |
outId: string, |
|
7 |
sampleLength: number, |
|
8 |
valueType: number, |
|
9 |
beginTime: Date, |
|
10 |
inDeviation: number, |
|
11 |
inAccuracyRate: number, |
|
12 |
outDeviation: number, |
|
13 |
outAccuracyRate: number, |
|
14 |
isEnable: number, |
|
15 |
} |
|
16 |
|
|
17 |
export interface MmItemAccuracyRatePageReqVO extends PageParam { |
|
18 |
itemId?: string |
|
19 |
} |
|
20 |
|
|
21 |
// 查询MmItemAccuracyRate列表 |
|
22 |
export const getMmItemAccuracyRatePage = (params: MmItemAccuracyRatePageReqVO) => { |
|
23 |
return request.get({ url: '/model/item/accuracy-rate/page', params }) |
|
24 |
} |
|
25 |
|
|
26 |
// 查询MmItemAccuracyRate详情 |
|
27 |
export const getMmItemAccuracyRate = (id: number) => { |
|
28 |
return request.get({ url: `/model/item/accuracy-rate/get/${id}`}) |
|
29 |
} |
|
30 |
|
|
31 |
// 新增MmItemAccuracyRate |
|
32 |
export const createMmItemAccuracyRate = (data: MmItemAccuracyRateVO) => { |
|
33 |
return request.post({ url: '/model/item/accuracy-rate/create', data }) |
|
34 |
} |
|
35 |
|
|
36 |
// 修改MmItemAccuracyRate |
|
37 |
export const updateMmItemAccuracyRate = (data: MmItemAccuracyRateVO) => { |
|
38 |
return request.put({ url: '/model/item/accuracy-rate/update', data }) |
|
39 |
} |
|
40 |
|
|
41 |
// 删除MmItemAccuracyRate |
|
42 |
export const deleteMmItemAccuracyRate = (id: number) => { |
|
43 |
return request.delete({ url: '/model/item/accuracy-rate/delete?id=' + id }) |
|
44 |
} |
|
45 |
|
|
46 |
|
|
47 |
// 查询getItemAccuracyRateList详情 |
|
48 |
export const getItemAccuracyRateList = () => { |
|
49 |
return request.get({ url: `/model/item/accuracy-rate/list`}) |
|
50 |
} |