| | |
| | | import { http } from '@/utils/http' |
| | | import type { InspectStVO, InspectRecordVO } from './inspect.d' |
| | | |
| | | type ID = number | string |
| | | /** |
| | | * 点检汇总列表 |
| | | */ |
| | | export const getInspStList = (params: any) => { |
| | | params.viewMode = 'Day' |
| | | return http.get<InspectStVO[]>('/eims/inspectSt/list', params) |
| | | } |
| | | |
| | | /** |
| | | * 根据id查询汇总 |
| | | * @param id |
| | | */ |
| | | export const getInspSt = (id: ID) => { |
| | | return http.get<InspectStVO>(`/eims/inspectSt/${id}`) |
| | | } |
| | | |
| | | /** |
| | | * 根据id查询汇总 |
| | | * @param stId |
| | | */ |
| | | export const getInspStByStId = (stId: string) => { |
| | | return http.get<InspectStVO>(`/eims/inspectSt/info/${stId}`) |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param data |
| | | */ |
| | | export const updateInspRecord = (data: any) => { |
| | | return http.post<void>('/eims/inspRecord', data) |
| | | return http.put<void>('/eims/inspRecord', data) |
| | | } |
| | | |
| | | /** |
| | | * 批量更新点检记录 |
| | | * @param data |
| | | */ |
| | | export const updateInspRecordBatch = (data: any) => { |
| | | return http.put<void>('/eims/inspRecord/editBatch', data) |
| | | } |
| | | |
| | | /** |
| | | * 更新点检汇总 |
| | | * @param data |
| | | */ |
| | | export const updateInspectSt = (data: any) => { |
| | | return http.put<void>('/eims/inspectSt', data) |
| | | } |