From 3a60ee203ba55ff9df9bcc81b465cfaeb5faf05b Mon Sep 17 00:00:00 2001
From: wangfei <3597712270@qq.com>
Date: 星期二, 23 九月 2025 15:08:16 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10105/r/YiWuProject

---
 UI-Project/src/views/hollow/hollowequipmenthree.vue |   56 ++++++++++++++++++++------------------------------------
 1 files changed, 20 insertions(+), 36 deletions(-)

diff --git a/UI-Project/src/views/hollow/hollowequipmenthree.vue b/UI-Project/src/views/hollow/hollowequipmenthree.vue
index b52f8bc..479fc43 100644
--- a/UI-Project/src/views/hollow/hollowequipmenthree.vue
+++ b/UI-Project/src/views/hollow/hollowequipmenthree.vue
@@ -19,10 +19,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">
@@ -42,6 +38,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 
@@ -530,7 +530,7 @@
 </template>
 <script setup>
 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 {host, WebSocketHost} from '@/utils/constants'
 import {closeWebSocket, initializeWebSocket} from '@/utils/WebSocketService';
@@ -683,7 +683,7 @@
       } 
     );
  if (confirmResult === 'confirm') {
-      var url = "/hollowGlass/hollowGlassOutRelationInfo/deleteHollowTaskDetails?flowCardId=" + flowCardId + "&cell=" + 930;
+      var url = "/hollowGlass/hollowGlassOutRelationInfo/deleteHollowTaskDetails?flowCardId=" + flowCardId + "&cell=" + 932;
       const response = await request.post(url)
     if (response.code === 200) {
       ElMessage.success(response.message);
@@ -926,19 +926,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) {
@@ -971,8 +958,6 @@
 // 寮�濮嬩换鍔�
 const handlea = async () => {
   try {
-    let flowCardId = window.localStorage.getItem('flowCardId')
-    if (flowCardId !== '') {
       var url = "/hollowGlass/hollowGlassOutRelationInfo/startTask?cell=" + 932 ;
     const response = await request.post(url)
       if (response.code == 200) {
@@ -980,20 +965,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=" + 932;
     const response = await request.post(url)
       if (response.code == 200) {
@@ -1001,12 +978,6 @@
         blindc.value = false;
       } else {
       }
-    } else {
-      ElMessage({
-        type: 'info',
-        message: t('basicData.infonull'),
-      })
-    }
   } catch (error) {
   }
 }
@@ -1096,7 +1067,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