From 4c6f9bcc9b3f8bdf5298d73d1035bad529f86d69 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 27 三月 2026 10:04:13 +0800
Subject: [PATCH] 军泰伟业 1.生产订单新增编辑逻辑重写

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

diff --git a/src/views/productionManagement/workOrder/index.vue b/src/views/productionManagement/workOrder/index.vue
index 1911e65..dd96f0f 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>
@@ -273,6 +277,11 @@
       width: "140",
     },
     {
+      label: "寰呯敓浜ф暟閲�",
+      prop: "pendingQuantity",
+      width: "140",
+    },
+    {
       label: "瀹屾垚杩涘害",
       prop: "completionStatus",
       dataType: "slot",
@@ -402,7 +411,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(() => {

--
Gitblit v1.9.3