From a660db06773007b1be690e0674829c00a57aeb7b Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期三, 24 十二月 2025 16:21:23 +0800
Subject: [PATCH] 订单首页流程卡新增楼层编号显示

---
 north-glass-erp/northglass-erp/src/views/pp/reportingWorks/AddReportingWork.vue |    9 +++++++--
 1 files changed, 7 insertions(+), 2 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 9ba8da4..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)){
                         //瀹屽伐鎬绘暟銆佹湰娆″畬宸ユ暟銆佸凡鍏ュ簱鏁伴噺
@@ -899,7 +901,10 @@
     }
   }
 }
+
+const brokenGridKey = ref(0)
 const openedBrokenTable = async () => {
+  brokenGridKey.value++
   await nextTick()
   console.log('breakageType:', titleSelectJson.value.breakageType)
   console.log('breakageReason:', titleSelectJson.value.breakageReason)
@@ -1893,7 +1898,7 @@
           +brokenRow.glass_child+'.'+brokenRow.order_number+'.'+brokenRow.technology_number"
           style="width: 80%;height:75% ">
         <vxe-grid
-
+            :key="brokenGridKey"
             height="400px"
             ref="brokenGrid"
             class="mytable-scrollbar"

--
Gitblit v1.8.0