From e251dae38f7661ec16bc0f97d6075ce367538bb8 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期三, 12 八月 2026 14:40:09 +0800
Subject: [PATCH] fix: 移除发货小数限制

---
 src/api/safeProduction/lineInspection.js |  176 +++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 160 insertions(+), 16 deletions(-)

diff --git a/src/api/safeProduction/lineInspection.js b/src/api/safeProduction/lineInspection.js
index 94dd2e3..2a81d2e 100644
--- a/src/api/safeProduction/lineInspection.js
+++ b/src/api/safeProduction/lineInspection.js
@@ -4,39 +4,183 @@
  * 绾胯矾宸℃API鎺ュ彛
  */
 
-// 鑾峰彇绾胯矾宸℃鍒楄〃
-export function getLineInspectionList(params) {
+// 鑾峰彇绾胯矾瀹氭椂宸℃浠诲姟鍒楄〃
+export function getLineInspectionTaskList(params) {
   return request({
-    url: "/device/lineInspection/list",
+    url: "/safeLineInspectionTask/page",
     method: "get",
     params,
   });
 }
 
-// 鏂板鎴栦慨鏀圭嚎璺贰妫�璁板綍
-export function addOrEditLineInspection(data) {
+// 鏍规嵁ID鑾峰彇绾胯矾瀹氭椂宸℃浠诲姟璇︽儏
+export function getLineInspectionTaskById(id) {
   return request({
-    url: "/device/lineInspection/addOrEdit",
+    url: `/safeLineInspectionTask/${id}`,
+    method: "get",
+  });
+}
+
+// 鏂板绾胯矾瀹氭椂宸℃浠诲姟
+export function addLineInspectionTask(data) {
+  return request({
+    url: "/safeLineInspectionTask",
     method: "post",
     data,
   });
 }
 
-// 鍒犻櫎绾胯矾宸℃璁板綍
-export function deleteLineInspection(ids) {
+// 淇敼绾胯矾瀹氭椂宸℃浠诲姟
+export function updateLineInspectionTask(data) {
   return request({
-    url: "/device/lineInspection/delete",
-    method: "delete",
-    data: ids,
+    url: "/safeLineInspectionTask",
+    method: "put",
+    data,
   });
 }
 
-// 瀵煎嚭绾胯矾宸℃璁板綍
-export function exportLineInspection(params) {
+// 鍒犻櫎绾胯矾瀹氭椂宸℃浠诲姟
+export function deleteLineInspectionTask(ids) {
   return request({
-    url: "/device/lineInspection/export",
-    method: "post",
+    url: "/safeLineInspectionTask/" + ids.join(","),
+    method: "delete",
+  });
+}
+
+// 鑾峰彇绾胯矾宸℃鍒楄〃
+export function getLineInspectionList(params) {
+  return request({
+    url: "/safeLineInspection/page",
+    method: "get",
     params,
-    responseType: 'blob',
+  });
+}
+
+// 鏍规嵁ID鑾峰彇绾胯矾宸℃璇︽儏
+export function getLineInspectionById(id) {
+  return request({
+    url: `/safeLineInspection/${id}`,
+    method: "get",
+  });
+}
+
+// 鏂板绾胯矾宸℃
+export function addLineInspection(data) {
+  return request({
+    url: "/safeLineInspection",
+    method: "post",
+    data,
+  });
+}
+
+// 淇敼绾胯矾宸℃
+export function updateLineInspection(data) {
+  return request({
+    url: "/safeLineInspection",
+    method: "put",
+    data,
+  });
+}
+
+// 鍒犻櫎绾胯矾宸℃
+export function deleteLineInspection(ids) {
+  return request({
+    url: "/safeLineInspection/" + ids.join(","),
+    method: "delete",
+  });
+}
+
+// 鎵ц宸℃
+export function executeLineInspection(data) {
+  return request({
+    url: "/safeLineInspection/execute",
+    method: "put",
+    data,
+  });
+}
+
+// 鑾峰彇宸℃璁板綍鍒楄〃
+export function getInspectionRecords(inspectionId) {
+  return request({
+    url: `/safeLineInspectionRecord/list/${inspectionId}`,
+    method: "get",
+  });
+}
+
+// 鏂板宸℃璁板綍
+export function addInspectionRecord(data) {
+  return request({
+    url: "/safeLineInspectionRecord",
+    method: "post",
+    data,
+  });
+}
+
+// 淇敼宸℃璁板綍
+export function updateInspectionRecord(data) {
+  return request({
+    url: "/safeLineInspectionRecord",
+    method: "put",
+    data,
+  });
+}
+
+// 鍒犻櫎宸℃璁板綍
+export function deleteInspectionRecord(ids) {
+  return request({
+    url: "/safeLineInspectionRecord/" + ids.join(","),
+    method: "delete",
+  });
+}
+
+// 鎵归噺鏂板宸℃璁板綍
+export function batchAddInspectionRecords(data) {
+  return request({
+    url: "/safeLineInspectionRecord/batch",
+    method: "post",
+    data,
+  });
+}
+
+// 鑾峰彇宸℃闅愭偅鍒楄〃
+export function getInspectionHazards(params) {
+  return request({
+    url: "/safeLineInspectionHazard/page",
+    method: "get",
+    params,
+  });
+}
+
+// 鏍规嵁宸℃浠诲姟ID鑾峰彇闅愭偅鍒楄〃
+export function getHazardsByInspectionId(inspectionId) {
+  return request({
+    url: `/safeLineInspectionHazard/list/${inspectionId}`,
+    method: "get",
+  });
+}
+
+// 鏂板闅愭偅
+export function addInspectionHazard(data) {
+  return request({
+    url: "/safeLineInspectionHazard",
+    method: "post",
+    data,
+  });
+}
+
+// 淇敼闅愭偅
+export function updateInspectionHazard(data) {
+  return request({
+    url: "/safeLineInspectionHazard",
+    method: "put",
+    data,
+  });
+}
+
+// 鍒犻櫎闅愭偅
+export function deleteInspectionHazard(ids) {
+  return request({
+    url: "/safeLineInspectionHazard/" + ids.join(","),
+    method: "delete",
   });
 }

--
Gitblit v1.9.3