车间能级提升-智能设备管理系统
zhuguifei
2025-03-14 3e0f519c396ac8a72e7bbd426e4f38fa6cc403dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import type { InspectPlanVO } from './model';
 
import type { ID, IDS } from '#/api/common';
 
import { commonExport } from '#/api/helper';
import { requestClient } from '#/api/request';
 
enum Api {
  inspectPlanExport = '/eims/inspectPlan/export',
  inspectPlanList = '/eims/inspectPlan/list',
  root = '/eims/inspectPlan'
}
 
/**
 * 查询点检计划列表
 * @param query
 * @returns {*}
 */
 
export function listInspPlan(params?: any) {
  return requestClient.get<InspectPlanVO[]>(Api.inspectPlanList, { params });
}
 
 
 
/**
 * 查询点检计划详细
 * @param inspectPlanId
 */
export function getInspPlan(inspectPlanId: ID) {
  return requestClient.get<InspectPlanVO>(`${Api.root}/${inspectPlanId}`);
}
 
/**
 * 新增点检计划
 * @param data
 */
export function addInspPlan(data: any) {
  return requestClient.postWithMsg<void>(Api.root, data);
}
 
/**
 * 修改点检计划
 * @param data
 */
export function updateInspPlan(data: any) {
  return requestClient.putWithMsg<void>(Api.root, data);
}
 
/**
 * 删除点检计划
 * @param inspectPlanId
 */
export function delInspPlan(inspectPlanId: IDS) {
  return requestClient.deleteWithMsg<void>(`${Api.root}/${inspectPlanId}`);
}
/**
 * 导出
 * @param
 */
export function inspPlanExport(data: any) {
  return commonExport(Api.inspectPlanExport, data);
}