车间能级提升-智能设备管理系统
zhuguifei
2025-04-08 c6e203d8e80c9cd8f74c79498662fa20d223ff56
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
import type { IDS, PageQuery, PageResult } from '#/api/common';
import type { SpareInoutVO } from '#/api/eims/spare-inout/model';
 
import { commonExport } from '#/api/helper';
import { requestClient } from '#/api/request';
 
enum Api {
  root = '/eims/spareInout',
  spareInoutExport = '/eims/spareInout/export',
  spareInoutList = '/eims/spareInout/list'
}
 
/**
 * 查询【备件台账】列表
 * @param query
 * @returns {*}
 */
 
export function listSpareInout(params?: PageQuery) {
  return requestClient.get<PageResult<SpareInoutVO>>(Api.spareInoutList, { params });
}
 
/**
 * 查询【备件台账】详细
 * @param spareInoutId
 */
export function getSpareInout(spareInoutId: any) {
  return requestClient.get<SpareInoutVO>(`${Api.root}/${spareInoutId}`);
}
 
/**
 * 新增【备件台账】
 * @param data
 */
export function addSpareInout(data: any) {
  return requestClient.postWithMsg<void>(Api.root, data);
}
 
/**
 * 修改【备件台账】
 * @param data
 */
export function updateSpareInout(data: any) {
  return requestClient.putWithMsg<void>(Api.root, data);
}
 
/**
 * 删除【备件台账】
 * @param spareInoutIds
 */
export function delSpareInout(spareInoutIds: IDS) {
  return requestClient.deleteWithMsg<void>(`${Api.root}/${spareInoutIds}`);
}
 
/**
 * 导出【备件台账】
 * @param data
 */
export function spareInoutExport(data: any) {
  return commonExport(Api.spareInoutExport, data);
}