From 0fe4f45202452d5038efddffe0a5be4fb3745f8b Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期一, 22 九月 2025 13:33:31 +0800
Subject: [PATCH] 1、中空大理片汇总信息改为所有流程卡缺片信息

---
 UI-Project/src/views/hollow/hollowequipment.vue |   32 ++++++++++++++++----------------
 1 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/UI-Project/src/views/hollow/hollowequipment.vue b/UI-Project/src/views/hollow/hollowequipment.vue
index d738eb9..420f5dc 100644
--- a/UI-Project/src/views/hollow/hollowequipment.vue
+++ b/UI-Project/src/views/hollow/hollowequipment.vue
@@ -72,8 +72,8 @@
           $t('hellow.taskdet')
         }}
         </el-button> 
-        <el-button style="margin-left: 10px;" :disabled="listFlow.length > 0 ? false : true" id="searchButton" type="warning"
-          @click="handleBinde">{{
+        <el-button style="margin-left: 10px;" id="searchButton" type="warning"
+          @click="handleBinde(tab.tableDataa)">{{
             $t('searchOrder.printlabels')
           }}
         </el-button>
@@ -1654,19 +1654,6 @@
       dialogFormVisiblee.value = false
       selectedProjectNo.value = ''
       closeWebSocket(socket);
-      const summary = response.data.reduce((map, item) => {
-        const key = `${item.hollowSequence}`;
-        if (!map[key]) {
-          map[key] = {
-            printQuantity: 1,
-            order_number: item.glassType,
-            processId: item.flowCardId,
-            orderId:item.flowCardId.slice(0, 10)
-          };
-        }
-        return map;
-      }, {});
-      listFlow.value = Object.values(summary);
     } else {
     }
   } catch (error) {
@@ -1820,7 +1807,20 @@
 ]
 const blinde = ref(false)
 const labelPrint = ref(false);
-const handleBinde = (row) => {
+const handleBinde = (flowCard) => {
+  const summary = flowCard.reduce((map, item) => {
+        const key = `${item.hollowSequence}`;
+        if (!map[key]) {
+          map[key] = {
+            printQuantity: 1,
+            order_number: item.glassType,
+            processId: item.flowCardId,
+            orderId:item.flowCardId.slice(0, 10)
+          };
+        }
+        return map;
+      }, {});
+      listFlow.value = Object.values(summary);
   blinde.value = true;
   getTags();
   hiprint.init();

--
Gitblit v1.8.0