From d4a06fc08b6e6e215bbf1771d204c3b7d773bc29 Mon Sep 17 00:00:00 2001
From: huang <1532065656@qq.com>
Date: 星期四, 09 十月 2025 14:51:01 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10105/r/YiWuProject

---
 UI-Project/src/views/hollow/hollowequipmenttwo.vue |   59 +++++++++++++++++++++--------------------------------------
 1 files changed, 21 insertions(+), 38 deletions(-)

diff --git a/UI-Project/src/views/hollow/hollowequipmenttwo.vue b/UI-Project/src/views/hollow/hollowequipmenttwo.vue
index 6a9d33e..035f2e7 100644
--- a/UI-Project/src/views/hollow/hollowequipmenttwo.vue
+++ b/UI-Project/src/views/hollow/hollowequipmenttwo.vue
@@ -20,10 +20,6 @@
           $t('hellow.stopproject')
         }}
         </el-button>
-        <el-button style="margin-left: 10px;" :disabled="listFlow.length > 0 ? false : true" id="searchButton" type="warning" @click="handleBinde">{{
-          $t('searchOrder.printlabels')
-        }}
-        </el-button>
       </div>
 
       <div id="dotClass">
@@ -44,6 +40,10 @@
           $t('hellow.taskdet')
         }}
         </el-button> 
+        <el-button style="margin-left: 10px;"  id="searchButton" type="warning" @click="handleBinde(tab.tableDataa)">{{
+          $t('searchOrder.printlabels')
+        }}
+        </el-button>
   </div>  
       <!-- 鍔ㄦ�佽〃鏍� -->
       <el-table 
@@ -401,7 +401,7 @@
     <template #footer>
       <div id="dialog-footer">
         <el-button type="primary" @click="handlec">
-          {{ $t('basicData.confirm') }}e
+          {{ $t('basicData.confirm') }}
         </el-button>
         <el-button @click="blindc = false">{{ $t('basicData.cancel') }}</el-button>
       </div>
@@ -492,7 +492,7 @@
 <script setup>
 import { CircleCheck, Download, Printer } from "@element-plus/icons-vue/global";
 import { ElMessage, ElMessageBox } from 'element-plus'
-import { onBeforeUnmount, onMounted, onUnmounted, ref, reactive, watch, computed } from "vue";
+import { onBeforeUnmount, onMounted, onUnmounted, ref, reactive, watch, computed, getCurrentInstance } from "vue";
 import request from "@/utils/request"
 import requestErp from "@/utils/requestErp"
 import { host, WebSocketHost } from '@/utils/constants'
@@ -655,7 +655,20 @@
 const handleBindc = (row) => {
   blindc.value = true;
 };
-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();
@@ -941,20 +954,6 @@
       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) {
@@ -987,8 +986,6 @@
 // 寮�濮嬩换鍔�
 const handlea = async () => {
   try {
-    let flowCardId = window.localStorage.getItem('flowCardId')
-    if (flowCardId !== '') {
       var url = "/hollowGlass/hollowGlassOutRelationInfo/startTask?cell=" + 931 ;
       const response = await request.post(url)
       if (response.code == 200) {
@@ -996,20 +993,12 @@
         blinda.value = false;
       } else {
       }
-    } else {
-      ElMessage({
-        type: 'info',
-        message: t('basicData.infonull'),
-      })
-    }
   } catch (error) {
   }
 }
 // 鏆傚仠浠诲姟
 const handlec = async () => {
   try {
-    let flowCardId = window.localStorage.getItem('flowCardId')
-    if (flowCardId !== '') {
       var url = "/hollowGlass/hollowGlassOutRelationInfo/pauseTask?cell=" + 931;
       const response = await request.post(url)
       if (response.code == 200) {
@@ -1017,12 +1006,6 @@
         blindc.value = false;
       } else {
       }
-    } else {
-      ElMessage({
-        type: 'info',
-        message: t('basicData.infonull'),
-      })
-    }
   } catch (error) {
   }
 }
@@ -1039,7 +1022,7 @@
       } 
     );
  if (confirmResult === 'confirm') {
-      var url = "/hollowGlass/hollowGlassOutRelationInfo/deleteHollowTaskDetails?flowCardId=" + flowCardId + "&cell=" + 930;
+      var url = "/hollowGlass/hollowGlassOutRelationInfo/deleteHollowTaskDetails?flowCardId=" + flowCardId + "&cell=" + 931;
       const response = await request.post(url)
     if (response.code === 200) {
       ElMessage.success(response.message);

--
Gitblit v1.8.0