From c21ff2a3055fa16881a2ee31c25b156ca425a286 Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期二, 08 九月 2026 14:19:02 +0800
Subject: [PATCH] fix: 修复报工台账删除无效,前后端传参不一致

---
 src/views/productionManagement/productionReporting/index.vue |    5 +++--
 src/api/productionManagement/productionReporting.js          |    7 +++++++
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/api/productionManagement/productionReporting.js b/src/api/productionManagement/productionReporting.js
index 3e29943..432386f 100644
--- a/src/api/productionManagement/productionReporting.js
+++ b/src/api/productionManagement/productionReporting.js
@@ -41,3 +41,10 @@
     data: query,
   });
 }
+// 鐢熶骇鎶ュ伐-鍒犻櫎
+export function productionReportDeletePath(query) {
+  return request({
+    url: "/productionProductMain" + `/${query.id}`,
+    method: "delete",
+  });
+}
diff --git a/src/views/productionManagement/productionReporting/index.vue b/src/views/productionManagement/productionReporting/index.vue
index d848563..027c8ec 100644
--- a/src/views/productionManagement/productionReporting/index.vue
+++ b/src/views/productionManagement/productionReporting/index.vue
@@ -158,7 +158,7 @@
   import {
     productionReportUpdate,
     workListPageById,
-    productionReportDelete,
+    productionReportDelete, productionReportDeletePath,
   } from "@/api/productionManagement/productionReporting.js";
   import { productionProductMainListPage } from "@/api/productionManagement/productionProductMain.js";
   import { userListNoPageByTenantId } from "@/api/system/user.js";
@@ -310,7 +310,8 @@
       cancelButtonText: "鍙栨秷",
       type: "warning",
     }).then(() => {
-      productionReportDelete({ id: row.id }).then(res => {
+
+      productionReportDeletePath({ id: row.id }).then(res => {
         if (res.code === 200) {
           proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛");
           getList();

--
Gitblit v1.9.3