From 9c6cea8bae9779a3289161a56b40641f3ef2074d Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期一, 30 三月 2026 14:49:54 +0800
Subject: [PATCH] fix:报工报废数量不再关联生产数量

---
 src/views/productionManagement/workOrder/index.vue |   19 +++++--------------
 1 files changed, 5 insertions(+), 14 deletions(-)

diff --git a/src/views/productionManagement/workOrder/index.vue b/src/views/productionManagement/workOrder/index.vue
index 96e3f27..48d5baf 100644
--- a/src/views/productionManagement/workOrder/index.vue
+++ b/src/views/productionManagement/workOrder/index.vue
@@ -315,6 +315,10 @@
       prop: "model",
     },
     {
+      label: "UID鐮�",
+      prop: "uidNo",
+    },
+    {
       label: "鍗曚綅",
       prop: "unit",
     },
@@ -393,7 +397,7 @@
           clickFun: row => {
             showReportDialog(row);
           },
-          disabled: row => row.planQuantity <= 0,
+          disabled: row => row.planQuantity <= 0 || row.productOrderIsEnd,
         },
       ],
     },
@@ -541,7 +545,6 @@
   const handleQuantityInput = value => {
     if (value === "" || value === null || value === undefined) {
       reportForm.quantity = null;
-      reportForm.scrapQty = null;
       return;
     }
     const num = Number(value);
@@ -550,29 +553,17 @@
     }
     if (num < 1) {
       reportForm.quantity = null;
-      reportForm.scrapQty = null;
       return;
     }
     if (!Number.isInteger(num)) {
       const intValue = Math.floor(num);
       if (intValue < 1) {
         reportForm.quantity = null;
-        reportForm.scrapQty = null;
         return;
       }
       reportForm.quantity = intValue;
     } else {
       reportForm.quantity = num;
-    }
-    // 濡傛灉 totalInvestment 鏈夊�硷紝鑷姩璁$畻 scrapQty = totalInvestment - quantity
-    if (reportForm.totalInvestment !== null && reportForm.totalInvestment !== undefined && reportForm.totalInvestment !== "") {
-      const total = Number(reportForm.totalInvestment);
-      const qty = Number(reportForm.quantity);
-      if (total > qty) {
-        reportForm.scrapQty = total - qty;
-      } else {
-        reportForm.scrapQty = null;
-      }
     }
   };
 

--
Gitblit v1.9.3