From 3b55fed0ba65d887969acbe118c1a868bc3b3ad0 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期三, 07 一月 2026 17:13:46 +0800
Subject: [PATCH] 生产报工加删除按钮

---
 src/views/productionManagement/productionReporting/index.vue |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/src/views/productionManagement/productionReporting/index.vue b/src/views/productionManagement/productionReporting/index.vue
index 97a3656..a08326a 100644
--- a/src/views/productionManagement/productionReporting/index.vue
+++ b/src/views/productionManagement/productionReporting/index.vue
@@ -152,6 +152,7 @@
   import {
     productionReportUpdate,
     workListPageById,
+    productionReportDelete,
   } from "@/api/productionManagement/productionReporting.js";
   import { productionProductMainListPage } from "@/api/productionManagement/productionProductMain.js";
   import { userListNoPageByTenantId } from "@/api/system/user.js";
@@ -262,6 +263,13 @@
             showOutput(row);
           },
         },
+        {
+          name: "鍒犻櫎",
+          type: "danger",
+          clickFun: row => {
+            deleteReport(row);
+          },
+        },
       ],
     },
   ]);
@@ -293,6 +301,24 @@
     }
     handleQuery();
   };
+  const deleteReport = row => {
+    ElMessageBox.confirm("纭畾鍒犻櫎璇ユ姤宸ュ悧锛�", "鎻愮ず", {
+      confirmButtonText: "纭畾",
+      cancelButtonText: "鍙栨秷",
+      type: "warning",
+    }).then(() => {
+      productionReportDelete({ id: row.id }).then(res => {
+        if (res.code === 200) {
+          proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛");
+          getList();
+        } else {
+          ElMessageBox.alert(res.msg || "鍒犻櫎澶辫触", "鎻愮ず", {
+            confirmButtonText: "纭畾",
+          });
+        }
+      });
+    });
+  };
   const pagination = obj => {
     page.current = obj.page;
     page.size = obj.limit;

--
Gitblit v1.9.3