From 9c9d121e47423b325e62bfd03b4332ec1e5bdf4d Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 27 三月 2026 16:05:51 +0800
Subject: [PATCH] 军泰伟业 1.已发货数量等于总数量时,状态为已发货。已发货数量小于总数量时,状态建议新增发货中 2.产品清除工艺路线点击确定后,仍然回显绑定的工艺路线 3.新增退货单时,退一部分货后,继续对此退货单进行退货操作,展示数据有误

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

diff --git a/src/views/productionManagement/workOrder/index.vue b/src/views/productionManagement/workOrder/index.vue
index f27b39c..f8b0594 100644
--- a/src/views/productionManagement/workOrder/index.vue
+++ b/src/views/productionManagement/workOrder/index.vue
@@ -128,6 +128,10 @@
               <span class="info-value">{{ transferCardRowData.completeQuantity }}</span>
             </div>
             <div class="info-item">
+              <span class="info-label">寰呯敓浜ф暟閲�</span>
+              <span class="info-value">{{ (transferCardRowData.planQuantity || 0) - (transferCardRowData.completeQuantity || 0) }}</span>
+            </div>
+            <div class="info-item">
               <span class="info-label">鑹搧鏁伴噺</span>
               <span class="info-value">0</span>
             </div>
@@ -224,6 +228,7 @@
     downProductWorkOrder,
   } from "@/api/productionManagement/workOrder.js";
   import { getUserProfile, userListNoPageByTenantId } from "@/api/system/user.js";
+
   import QRCode from "qrcode";
   import { getCurrentInstance, reactive, toRefs } from "vue";
   import FilesDia from "./components/filesDia.vue";
@@ -255,10 +260,6 @@
       prop: "model"
     },
     {
-      label: "瑙勬牸鍨嬪彿",
-      prop: "drawingNumber",
-    },
-    {
       label: "鍗曚綅",
       prop: "unit",
     },
@@ -274,6 +275,11 @@
     {
       label: "瀹屾垚鏁伴噺",
       prop: "completeQuantity",
+      width: "140",
+    },
+    {
+      label: "寰呯敓浜ф暟閲�",
+      prop: "pendingQuantity",
       width: "140",
     },
     {
@@ -333,7 +339,7 @@
           clickFun: row => {
             showReportDialog(row);
           },
-          disabled: row => row.planQuantity <= 0,
+          disabled: row => row.status === 1 || row.status === 3 || row.planQuantity <= 0,
         },
       ],
     },
@@ -406,7 +412,10 @@
     productWorkOrderPage(params)
       .then(res => {
         tableLoading.value = false;
-        tableData.value = res.data.records;
+        tableData.value = res.data.records.map(item => ({
+          ...item,
+          pendingQuantity: (item.planQuantity || 0) - (item.completeQuantity || 0)
+        }));
         page.total = res.data.total;
       })
       .catch(() => {
@@ -641,6 +650,7 @@
       justify-content: flex-start;
     }
   }
+
 </style>
 
 <style  lang="scss">

--
Gitblit v1.9.3