From 80fea9ca648dcebc3b44fa068c927fa67dafb7fb Mon Sep 17 00:00:00 2001
From: 张诺 <zhang_12370@163.com>
Date: 星期三, 29 四月 2026 10:27:41 +0800
Subject: [PATCH] fix(workOrder): 修正工单报告数量计算逻辑

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

diff --git a/src/views/productionManagement/workOrder/index.vue b/src/views/productionManagement/workOrder/index.vue
index 4a4f9bb..7fcdab2 100644
--- a/src/views/productionManagement/workOrder/index.vue
+++ b/src/views/productionManagement/workOrder/index.vue
@@ -1435,12 +1435,11 @@
 
   currentReportRowData.value = row;
   reportForm.planQuantity = row.planQuantity - row.completeQuantity;
-  reportForm.quantity = row.planQuantity !== undefined && row.planQuantity !== null ? row.planQuantity : null;
+  reportForm.quantity = row.planQuantity - row.completeQuantity;
   reportForm.productProcessRouteItemId = row.productProcessRouteItemId;
   reportForm.workOrderId = row.id;
   reportForm.reportWork = row.reportWork;
   reportForm.productMainId = row.productMainId;
-  reportForm.planQuantity = row.planQuantity;
   reportForm.startTime = "";
   reportForm.endTime = "";
   reportForm.replenishQty = 0;

--
Gitblit v1.9.3