车间能级提升-智能设备管理系统
zhuguifei
2025-04-27 d7862b2890b68743ec9c4fc05800bb23ec9b412e
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
import { http } from '@/utils/http'
import type { RepairReqVO, RepairResVO } from './repair.d'
type ID = number | string
 
/**
 * 新增报修单
 * @param data
 */
export const addRepairReq = (data: any) => {
  return http.post<void>('/eims/repairReq', data)
}
/**
 * 删除报修单
 * @param id
 */
export const delRepairReq = (id: ID) => {
  return http.del<void>(`/eims/repairReq/${id}`)
}
/**
 * 报修单列表
 */
export const getRepairReqList = (params: any) => {
  return http.get<RepairReqVO[]>('/eims/repairReq/list', params)
}
 
 
 
 
 
/**
 * 维修单列表
 */
export const getRepairResList = (params: any) => {
  return http.get<RepairResVO[]>('/eims/repairRes/list', params)
}
/**
 * 新增维修单
 * @param data
 */
export const addRepairRes = (data: any) => {
  return http.post<void>('/eims/repairRes/add', data)
}