From 55a05b8dfe9a760feb8f6fb6f8b4e0089d88b111 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期三, 14 一月 2026 10:47:22 +0800
Subject: [PATCH] 编辑来票台账来票数和未来票数关系

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

diff --git a/src/views/productionManagement/workOrder/index.vue b/src/views/productionManagement/workOrder/index.vue
index a538c1d..34b368d 100644
--- a/src/views/productionManagement/workOrder/index.vue
+++ b/src/views/productionManagement/workOrder/index.vue
@@ -61,9 +61,9 @@
       </el-form>
       <template #footer>
         <span class="dialog-footer">
-          <el-button @click="editDialogVisible = false">鍙栨秷</el-button>
           <el-button type="primary"
                      @click="handleUpdate">纭畾</el-button>
+          <el-button @click="editDialogVisible = false">鍙栨秷</el-button>
         </span>
       </template>
     </el-dialog>
@@ -184,9 +184,9 @@
       </el-form>
       <template #footer>
         <span class="dialog-footer">
-          <el-button @click="reportDialogVisible = false">鍙栨秷</el-button>
           <el-button type="primary"
                      @click="handleReport">纭畾</el-button>
+          <el-button @click="reportDialogVisible = false">鍙栨秷</el-button>
         </span>
       </template>
     </el-dialog>
@@ -211,6 +211,11 @@
     {
       label: "宸ュ崟缂栧彿",
       prop: "workOrderNo",
+      width: "140",
+    },
+    {
+      label: "鐢熶骇璁㈠崟鍙�",
+      prop: "productOrderNpsNo",
       width: "140",
     },
     {
@@ -284,6 +289,7 @@
           clickFun: row => {
             showReportDialog(row);
           },
+          disabled: row => row.planQuantity <= 0,
         },
       ],
     },
@@ -395,6 +401,12 @@
   };
 
   const handleReport = () => {
+    if (reportForm.planQuantity <= 0) {
+      ElMessageBox.alert("寰呯敓浜ф暟閲忎负0锛屾棤娉曟姤宸�", "鎻愮ず", {
+        confirmButtonText: "纭畾",
+      });
+      return;
+    }
     if (!reportForm.quantity || reportForm.quantity <= 0) {
       ElMessageBox.alert("璇疯緭鍏ユ湁鏁堢殑鏈鐢熶骇鏁伴噺", "鎻愮ず", {
         confirmButtonText: "纭畾",

--
Gitblit v1.9.3