From 46d143d1d6fe8f286399f4d027c9a86adf7cd7fc Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期三, 09 七月 2025 08:50:01 +0800
Subject: [PATCH] feat(inspection,maintenance): - 实现保养工单批量确认功能 - 在点检记录确认时增加时间限制,距离上次更新时间两小时内不允许确认

---
 eims-ui-mobile/src/service/inspect.ts |   33 ++++++++++++++++++++++++++++++---
 1 files changed, 30 insertions(+), 3 deletions(-)

diff --git a/eims-ui-mobile/src/service/inspect.ts b/eims-ui-mobile/src/service/inspect.ts
index 55da5d3..3aad82e 100644
--- a/eims-ui-mobile/src/service/inspect.ts
+++ b/eims-ui-mobile/src/service/inspect.ts
@@ -1,12 +1,27 @@
 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}`)
 }
 
 /**
@@ -21,9 +36,21 @@
  * @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)
+}

--
Gitblit v1.9.3