From 5fc4e0f0cd2554eeaa911384ed87373aa4ee3c5f Mon Sep 17 00:00:00 2001
From: ZN <zhang_12370@163.com>
Date: 星期一, 30 三月 2026 10:51:21 +0800
Subject: [PATCH] feat(生产报表/销售台账): 添加审核备注列并优化发货状态显示

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

diff --git a/src/views/productionManagement/workOrder/index.vue b/src/views/productionManagement/workOrder/index.vue
index d0740dc..8923304 100644
--- a/src/views/productionManagement/workOrder/index.vue
+++ b/src/views/productionManagement/workOrder/index.vue
@@ -366,6 +366,8 @@
           clickFun: row => {
             handleEdit(row);
           },
+          // 褰撻渶姹傛暟閲忕瓑浜庡畬鎴愭暟閲忕殑鏃跺�欙紝鎸夐挳涓嶅彲鐐瑰嚮
+          disabled: row => Number(row?.planQuantity) === Number(row?.completeQuantity),
         },
         {
           name: "娴佽浆鍗�",
@@ -384,7 +386,7 @@
           clickFun: row => {
             showReportDialog(row);
           },
-          disabled: row => row.planQuantity <= 0,
+          disabled: row => Number(row?.planQuantity) <= Number(row?.completeQuantity) || row.planQuantity <= 0,
         },
         // {
         //   name:"瀹℃牳",
@@ -711,7 +713,7 @@
 
   const showReportDialog = row => {
     currentReportRowData.value = row;
-    reportForm.planQuantity = row.planQuantity;
+    reportForm.planQuantity = row.planQuantity - row.completeQuantity;
     reportForm.quantity =
       row.quantity !== undefined && row.quantity !== null ? row.quantity : null;
     reportForm.productProcessRouteItemId = row.productProcessRouteItemId;

--
Gitblit v1.9.3