From 2a243dc744898018adf7523dcb2d10ded968b432 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期二, 23 十二月 2025 10:43:25 +0800
Subject: [PATCH] 流程卡进度打印功能

---
 north-glass-erp/northglass-erp/src/views/pp/reportingWorks/AddReportingWork.vue |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/reportingWorks/AddReportingWork.vue b/north-glass-erp/northglass-erp/src/views/pp/reportingWorks/AddReportingWork.vue
index 47d70ab..15addfc 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/reportingWorks/AddReportingWork.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/reportingWorks/AddReportingWork.vue
@@ -477,9 +477,11 @@
               if (val<row.completedQuantityComputed){
                          //搴撳瓨鏁伴噺銆佸凡鍏ュ簱鏁伴噺
                 if (val>(row.inventory_quantity-row.received_quantity)){
-                  return new Error(`val
+                  if (totalQuantity-val>(row.inventory_quantity-row.received_quantity)){
+                    return new Error(`val
                                   <=
                                   ${row.inventory_quantity-row.received_quantity}`)
+                  }
                 }else {
                   if (val < (row.inventory_quantity-row.received_quantity)){
                         //瀹屽伐鎬绘暟銆佹湰娆″畬宸ユ暟銆佸凡鍏ュ簱鏁伴噺

--
Gitblit v1.8.0