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/repair.ts |   64 +++++++++++++++++++++++++++++--
 1 files changed, 59 insertions(+), 5 deletions(-)

diff --git a/eims-ui-mobile/src/service/repair.ts b/eims-ui-mobile/src/service/repair.ts
index b763de3..c6aa009 100644
--- a/eims-ui-mobile/src/service/repair.ts
+++ b/eims-ui-mobile/src/service/repair.ts
@@ -1,5 +1,5 @@
 import { http } from '@/utils/http'
-import type { RepairReqVO, RepairResVO } from './repair.d'
+import type { RepairReqVO, RepairResVO, RepairFbVO, RepairRecordVO } from './repair.d'
 type ID = number | string
 
 /**
@@ -23,16 +23,28 @@
   return http.get<RepairReqVO[]>('/eims/repairReq/list', params)
 }
 
-
-
-
-
 /**
  * 缁翠慨鍗曞垪琛�
  */
 export const getRepairResList = (params: any) => {
   return http.get<RepairResVO[]>('/eims/repairRes/list', params)
 }
+
+/**
+ * 鏌ヨ鏈畬鎴愮殑缁翠慨鍗�
+ * @param id
+ */
+export const getRepairResUnfinished = (status: string) => {
+  return http.get<int>(`/eims/repairRes/list/unfinished?status=${status}`)
+}
+/**
+ * 鏌ヨ缁翠慨鍗�
+ * @param data
+ */
+export const getRepairRes = (id: ID) => {
+  return http.get<RepairResVO>(`/eims/repairRes/${id}`)
+}
+
 /**
  * 鏂板缁翠慨鍗�
  * @param data
@@ -40,3 +52,45 @@
 export const addRepairRes = (data: any) => {
   return http.post<void>('/eims/repairRes/add', data)
 }
+
+
+/**
+ * 鏇存柊缁翠慨宸ュ崟
+ * @param data
+ */
+export const updateRepairRes = (data: any) => {
+  return http.put<void>('/eims/repairRes', data)
+}
+
+
+
+/**
+ * 鏌ヨ缁翠慨璇勪环
+ * @param id
+ */
+export const getRepairFb = (id: ID) => {
+  return http.get<RepairFbVO>(`/eims/repairFb/${id}`)
+}
+
+/**
+ * 鏂板缁翠慨璇勪环
+ * @param data
+ */
+export const addRepairFb = (data: any) => {
+  return http.post<void>('/eims/repairFb', data)
+}
+
+/**
+ * 缂栬緫缁翠慨璇勪环
+ * @param data
+ */
+export const updateRepairFb = (data: any) => {
+  return http.put<void>('/eims/repairFb', data)
+}
+
+/**
+ * 缁翠慨璁板綍鍒楄〃
+ */
+export const getRepairRecordList = (params: any) => {
+  return http.get<RepairRecordVO[]>('/eims/repairRecord/list', params)
+}

--
Gitblit v1.9.3