From 031da535a58f83913db6287b5f29f5983435cfa2 Mon Sep 17 00:00:00 2001
From: zhoushihao <zsh19950802@163.com>
Date: 星期三, 24 七月 2024 15:46:41 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 UI-Project/src/layout/MainErpView.vue                                                                                          |    4 
 UI-Project/src/views/StockBasicData/stockBasicData.vue                                                                         |    8 
 UI-Project/src/views/Returns/returns.vue                                                                                       |   89 +++++++-----
 UI-Project/src/views/Identify/identify.vue                                                                                     |   35 ++--
 UI-Project/src/views/StockBasicData/stockBasicDatatwo.vue                                                                      |    8 
 hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/service/impl/UpPattenUsageServiceImpl.java |    2 
 UI-Project/src/lang/zh.js                                                                                                      |    1 
 hangzhoumesParent/common/servicebase/src/main/java/com/mes/tools/WebSocketServer.java                                          |   29 ++-
 hangzhoumesParent/common/servicebase/src/main/java/com/mes/temperingglass/service/TemperingGlassInfoService.java               |   35 ++++-
 hangzhoumesParent/moduleService/TemperingGlassModule/src/test/java/com/mes/TemperingApplicationTest.java                       |   22 +-
 UI-Project/src/views/PurchaseReturn/purchaseStorage.vue                                                                        |   59 ++++++++
 UI-Project/src/utils/WebSocketService.js                                                                                       |    5 
 UI-Project/src/views/PurchaseReturn/purchaseReturn.vue                                                                         |   89 ++++++++++--
 13 files changed, 278 insertions(+), 108 deletions(-)

diff --git a/UI-Project/src/lang/zh.js b/UI-Project/src/lang/zh.js
index 0117165..21ceabd 100644
--- a/UI-Project/src/lang/zh.js
+++ b/UI-Project/src/lang/zh.js
@@ -83,6 +83,7 @@
         updatanull:'璇ュ伐绋嬫湭淇濆瓨鍒颁笂鐗囪〃锛�',
         glassnull:'鏇存柊鐜荤拑鐘舵�佹椂鍙戠敓閿欒',
         deletemessage:'鏄惁鍒犻櫎璇ユ潯淇℃伅?',
+        layoutSequence:'搴忓彿',
     },
     sorter:{
         gridnumber:'鏍呮牸鍙�',
diff --git a/UI-Project/src/layout/MainErpView.vue b/UI-Project/src/layout/MainErpView.vue
index 098140d..8680e02 100644
--- a/UI-Project/src/layout/MainErpView.vue
+++ b/UI-Project/src/layout/MainErpView.vue
@@ -169,6 +169,10 @@
                alt=""
                style="max-width: 100%;max-height: 100%">
           <h3 style="margin: 1rem  ;font-weight: bold;width: 33vw;"> {{ $t('main.titleFirst') }}{{ user }}{{ $t('main.titleLast') }}</h3>
+          <!-- <div class="header-left">
+            <el-button :icon="isCollapse ? 'el-icon-s-unfold' : 'el-icon-s-fold'" @click="toggleCollapse"
+              style="height:30px;"></el-button>
+          </div> -->
           <span style="height: 70%;width: 78vw;margin-top: 1rem;">
             <!-- <el-button class="sys-quit"
                        @click="quit"
diff --git a/UI-Project/src/utils/WebSocketService.js b/UI-Project/src/utils/WebSocketService.js
index 310d4c8..4ad03b7 100644
--- a/UI-Project/src/utils/WebSocketService.js
+++ b/UI-Project/src/utils/WebSocketService.js
@@ -18,10 +18,11 @@
       if (!msg.data) {
         return;
       }
-      messages += msg.data;
+      
       const isLastChunk = msg.data.endsWith('<END>');
       //鏄惁涓烘渶鍚庝竴鍧楁秷鎭�
-      if(isLastChunk) {
+      messages += msg.data;
+      if(isLastChunk||msg.data.length<50000) {
         messages= messages.replace('<END>', '');
         const obj = JSON.parse(messages);
         
diff --git a/UI-Project/src/views/Identify/identify.vue b/UI-Project/src/views/Identify/identify.vue
index a972dbe..64df621 100644
--- a/UI-Project/src/views/Identify/identify.vue
+++ b/UI-Project/src/views/Identify/identify.vue
@@ -103,15 +103,16 @@
 // 鐮存崯
 const handleDamage = async () => {
   try  {
-    var url="/cacheGlass/taskCache/identControls?identId="+currentGlassId.value+'&controlsId='+201;
-      console.log(url);
-      const response = await request.post(url)
-  // const response = await request.post('/cacheGlass/taskCache/identControls', {
-  //   identId: currentGlassId.value,
-  //   controlsId: 201,
-  //   })
+    // var url="/cacheGlass/taskCache/identControls?identId="+currentGlassId.value+'&controlsId='+201;
+    //   console.log(url);
+    //   const response = await request.post(url)
+  const response = await request.post('/cacheGlass/taskCache/identControls', {
+    identId: currentGlassId.value,
+    controlsId: 201,
+    line: 1001,
+    machine: '璇嗗埆',
+    })
     if (response.code == 200) {
-      // 缁戝畾鎴愬姛锛屽鐞嗛�昏緫
       ElMessage.success(response.message);
       // window.location.reload() 
       blind.value = false;
@@ -126,16 +127,18 @@
     console.error(error);
   }
 }
-// // 浜哄伐鎷胯蛋
+ // 浜哄伐鎷胯蛋
 const handleManualTake = async () => {
   try  {
-    var url="/cacheGlass/taskCache/identControls?identId="+currentGlassId.value+'&controlsId='+200;
-      console.log(url);
-      const response = await request.post(url)
-  // const response = await request.post('/cacheGlass/taskCache/identControls', {
-  //   identId: currentGlassId.value,
-  //   controlsId: 200,
-  //   })
+    // var url="/cacheGlass/taskCache/identControls?identId="+currentGlassId.value+'&controlsId='+200;
+    //   console.log(url);
+    //   const response = await request.post(url)
+  const response = await request.post('/cacheGlass/taskCache/identControls', {
+    identId: currentGlassId.value,
+    controlsId: 200,
+    line: 1001,
+    machine: '璇嗗埆',
+    })
     if (response.code == 200) {
       // 缁戝畾鎴愬姛锛屽鐞嗛�昏緫
       ElMessage.success(response.message);
diff --git a/UI-Project/src/views/PurchaseReturn/purchaseReturn.vue b/UI-Project/src/views/PurchaseReturn/purchaseReturn.vue
index 42ec676..ee5825e 100644
--- a/UI-Project/src/views/PurchaseReturn/purchaseReturn.vue
+++ b/UI-Project/src/views/PurchaseReturn/purchaseReturn.vue
@@ -5,6 +5,7 @@
 import request from "@/utils/request"
 import { ref, onMounted, onBeforeUnmount } from 'vue';  
 import { WebSocketHost ,host} from '@/utils/constants'
+import { ElMessage, ElMessageBox } from 'element-plus'
 import { initializeWebSocket, closeWebSocket } from '@/utils/WebSocketService';
   import { useI18n } from 'vue-i18n'
   const { t } = useI18n()
@@ -19,6 +20,8 @@
 const adjustedRects2 = ref([]);
 const adjustedRectsa = ref([]);
 const adjustedRectsb = ref([]);
+const currentGlassId = ref(null);
+const currenttemperingFeedSequence = ref(null);
 const socketUrl = `ws://${WebSocketHost}:${host}/api/temperingGlass/api/talk/temperingGlass`;
 const handleMessage = (data) => {
 // 杩涚倝涓�
@@ -140,19 +143,64 @@
 onMounted(() => {
   initializeWebSocket(socketUrl, handleMessage);
 });
-function getRectColor(state) {  
+function updateRectColors() {  
+  adjustedRectsa.value.forEach(rect => {  
+    if (rect.glassId === glassId) {  
+      rect.state = 5;
+    }
+  });  
+}  
+function getRectColora(state) {  
   switch (state) {  
     case 0:  
-      return '#f8e3c5';  
+      return '#d1edc4';  
     case 1:  
-      return '#d1edc4';
+      return '#E6E6FA';
     case -1:  
       return '#dedfe0';  
+    case 5:  
+      return '#911005';  
+  }
+}
+function getRectColorb(state) {  
+  switch (state) {  
+    case 3:  
+      return '#f8e3c5';  
+    case 4:  
+      return '#F0F8FF';
+    case 5:  
+      return '#911005';  
   }  
-} 
-function showDialog(row) {  
+}
+function showDialog(rect) {  
+  currentGlassId.value = rect.glassId;  
+  currenttemperingFeedSequence.value = rect.temperingFeedSequence;  
   blind.value = true;  
 }  
+// 鐮存崯
+const handleDamage = async () => {
+  try  {
+  const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingState', {
+    glassId: currentGlassId.value,
+    // temperingFeedSequence: currenttemperingFeedSequence.value,
+    line: 4001,
+    status: 2,
+    workingProcedure: '閽㈠寲',
+    })
+    if (response.code == 200) {
+      ElMessage.success(response.message);
+      blind.value = false;
+      updateRectColors();
+    } else {
+      // 璇锋眰澶辫触锛屾樉绀洪敊璇秷鎭�
+      ElMessage.error(response.message);
+    }
+}
+catch (error) {
+    // 澶勭悊閿欒
+    console.error(error);
+  }
+}
 onBeforeUnmount(() => {
   console.log("鍏抽棴浜�")
   closeWebSocket();
@@ -173,8 +221,14 @@
       <div  
       v-for="(rect, index) in adjustedRects"
       :key="index"  
+      @click="showDialog(rect)"  
       class="rect"
-      :style="{ position: 'absolute',  top: `${rect.ycoordinate}px`, left: `${rect.xcoordinate}px`, width: `${rect.width}px`, height: `${rect.height}px`  }"  
+      :style="{ position: 'absolute', 
+       top: `${rect.ycoordinate}px`, 
+       left: `${rect.xcoordinate}px`,
+        width: `${rect.width}px`, 
+        height: `${rect.height}px`,
+        backgroundColor: rect.state === 5 ? '#911005' : 'lightblue' }"
     >
      <div  class="centered-text">
     <div >{{ rect.glassId }}</div>  
@@ -194,9 +248,15 @@
       <div  
       v-for="(rect, index) in adjustedRects2"
       :key="index"  
+      @click="showDialog(rect)"  
       class="rect"
-      :style="{ position: 'absolute',  top: `${rect.ycoordinate}px`, left: `${rect.xcoordinate}px`, width: `${rect.width}px`, height: `${rect.height}px`  }"  
-    >
+      :style="{ position: 'absolute', 
+       top: `${rect.ycoordinate}px`, 
+       left: `${rect.xcoordinate}px`, 
+       width: `${rect.width}px`, 
+       height: `${rect.height}px`,
+       backgroundColor: rect.state === 5 ? '#911005' : 'lightblue' }"
+       >
      <div  class="centered-text">
     <div >{{ rect.glassId }}</div>  
     <div >{{ rect.flowCardId }}</div>  
@@ -214,17 +274,16 @@
   <el-card style="flex: 1;margin-left: 10px;margin-top: 10px;margin-right: 10px;height: 600px;" v-loading="loading">
     <div v-if="adjustedRectsa.length > 0">
       <div style="text-align: center;">鐐夊彿锛歿{ adjustedRects[0].engineerId }}-{{ adjustedRects[0].temperingLayoutId }}</div>  
-      <!-- <div style="text-align: center;">娴佺▼鍗�: {{ adjustedRectsa[0].flowCardId }}</div>   -->
       <el-scrollbar height="550px" style="background-color: #e9e9eb;">
     <div  style="position: relative;max-width: 1400px;">  
       <div  
       v-for="(rect, index) in adjustedRectsa"  
       :key="index"  
-      @click="showDialog"  
+      @click="showDialog(rect)"  
       class="rect"  
       :style="{ position: 'absolute',  top: `${rect.y}px`, left: `${rect.x}px`,
        width: `${rect.width}px`, height: `${rect.height}px`,
-      backgroundColor: getRectColor(rect.state) }">
+      backgroundColor: getRectColora(rect.state) }">
     <div  class="centered-text">
     <div>{{ rect.glassId }}</div>  
     <div >{{ rect.flowCardId }}</div>  
@@ -246,10 +305,12 @@
       <div  
       v-for="(rect, index) in adjustedRectsb"  
       :key="index"  
+      @click="showDialog(rect)"  
       class="rect"  
       :style="{ position: 'absolute',  top: `${rect.y}px`, left: `${rect.x}px`,
        width: `${rect.width}px`, height: `${rect.height}px`,
-       backgroundColor: rect.state === 4 ? '#911005' : '#f8e3c5' }">
+      backgroundColor: getRectColorb(rect.state) }">
+       <!-- backgroundColor: rect.state === 4 ? '#911005' : '#f8e3c5' }"> -->
      <div  class="centered-text">
     <div >{{ rect.glassId }}</div>  
     <div >{{ rect.flowCardId }}</div>  
@@ -263,7 +324,7 @@
 </div>
 
 <el-dialog v-model="blind" top="30vh" width="15%" style="text-align: center;">
-        <el-button type="warning" plain :icon="Delete" @click="handleDamage(currentGlassId)"  style="width: 140px;margin-left: 10px;">
+        <el-button type="warning" plain :icon="Delete" @click="handleDamage"  style="width: 140px;margin-left: 10px;">
           {{ $t('order.dilapidation') }}
         </el-button>
   </el-dialog> 
@@ -348,6 +409,6 @@
   justify-content: center;  
   align-items: center; 
   height: 100%; /* 纭繚div鍗犳嵁鏁翠釜鐭╁舰鐨勯珮搴� */  
-  font-size: small;
+  /* font-size: small; */
 } 
 </style>
\ No newline at end of file
diff --git a/UI-Project/src/views/PurchaseReturn/purchaseStorage.vue b/UI-Project/src/views/PurchaseReturn/purchaseStorage.vue
index 4e372e6..742ba24 100644
--- a/UI-Project/src/views/PurchaseReturn/purchaseStorage.vue
+++ b/UI-Project/src/views/PurchaseReturn/purchaseStorage.vue
@@ -2,14 +2,19 @@
 import {Search} from "@element-plus/icons-vue";
 import {reactive} from "vue";
 import {useRouter} from "vue-router"
+import { ElMessage, ElMessageBox } from 'element-plus'
+import request from "@/utils/request"
 
 import { ref, onMounted, onBeforeUnmount } from 'vue';  
 import { WebSocketHost ,host} from '@/utils/constants'
 import { initializeWebSocket, closeWebSocket } from '@/utils/WebSocketService';
 const adjustedRects = ref([]);
+const currentGlassId = ref(null);
+const currenttemperingFeedSequence = ref(null);
 
 const dialogFormVisible = ref(true)
 const dialogFormVisiblea = ref(false)
+const blind = ref(false)
 
 const getTableRow = (row,type) =>{
   switch (type) {
@@ -58,6 +63,52 @@
 });
   }
 };
+function updateRectColors() {  
+  adjustedRectsa.value.forEach(rect => {  
+    if (rect.glassId === glassId) {  
+      rect.state = 5;
+    }
+  });  
+}  
+function getRectColora(state) {  
+  switch (state) {  
+    case 3:  
+      return '#f8e3c5';  
+    case 4:  
+      return '#F0F8FF';
+    case 5:  
+      return '#911005';  
+  }  
+}
+function showDialog(rect) {  
+  currentGlassId.value = rect.glassId;  
+  currenttemperingFeedSequence.value = rect.temperingFeedSequence;  
+  blind.value = true;  
+}  
+// 鐮存崯
+const handleDamage = async () => {
+  try  {
+  const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingState', {
+    glassId: currentGlassId.value,
+    // temperingFeedSequence: currenttemperingFeedSequence.value,
+    line: 4001,
+    status: 2,
+    workingProcedure: '閽㈠寲',
+    })
+    if (response.code == 200) {
+      ElMessage.success(response.message);
+      blind.value = false;
+      updateRectColors();
+    } else {
+      // 璇锋眰澶辫触锛屾樉绀洪敊璇秷鎭�
+      ElMessage.error(response.message);
+    }
+}
+catch (error) {
+    // 澶勭悊閿欒
+    console.error(error);
+  }
+}
 onMounted(() => {
   // fetchFlowCardId();
   // fetchTableData(); // 鑾峰彇鏁版嵁
@@ -82,10 +133,11 @@
       <div  
       v-for="(rect, index) in adjustedRects"
       :key="index"  
+      @click="showDialog(rect)"  
       class="rect"  
       :style="{ position: 'absolute',  top: `${rect.ycoordinate}px`, left: `${rect.xcoordinate}px`,
        width: `${rect.width}px`, height: `${rect.height}px`,
-       backgroundColor: rect.state === 4 ? '#d1edc4' : '#f8e3c5' }">
+      backgroundColor: getRectColora(rect.state) }">
      <div  class="centered-text">
     <div >{{ rect.glassId }}</div>  
     <div >{{ rect.flowCardId }}</div>  
@@ -98,6 +150,11 @@
    </div>
     </el-card>
     </div>
+    <el-dialog v-model="blind" top="30vh" width="15%" style="text-align: center;">
+        <el-button type="warning" plain :icon="Delete" @click="handleDamage"  style="width: 140px;margin-left: 10px;">
+          {{ $t('order.dilapidation') }}
+        </el-button>
+  </el-dialog> 
   </div>
 
 </template>
diff --git a/UI-Project/src/views/Returns/returns.vue b/UI-Project/src/views/Returns/returns.vue
index 55a5f37..85ae736 100644
--- a/UI-Project/src/views/Returns/returns.vue
+++ b/UI-Project/src/views/Returns/returns.vue
@@ -17,6 +17,15 @@
 const flakea = ref(false)
 const flakeb = ref(false)
 const flakec = ref(false)
+const user = ref('');
+const projectNo = ref('');
+const workstationId = ref('');
+const id = ref('');
+const patternHeight = ref('');
+const patternWidth = ref('');
+const filmsId = ref('');
+const patternThickness = ref('');
+const number = ref('');
 import { WebSocketHost ,host} from '@/utils/constants'
 import request from "@/utils/request"
 const ida = ref(null); 
@@ -93,16 +102,16 @@
     if (response.code == 200) {  
       tableDataa.value = response.data
           if (tableDataa.value.length === 4) {
-          if (tableDataa.value[0].patternHeight > 0) {
+          if (tableDataa.value[0].patternHeight > 0 && tableDataa.value[0].patternWidth > 0 && tableDataa.value[0].number > 0) {
           flake.value = true;
           }
-         if (tableDataa.value[1].patternHeight > 0) {
+         if (tableDataa.value[1].patternHeight > 0 && tableDataa.value[1].patternWidth > 0 && tableDataa.value[1].number > 0) {
           flakea.value = true;
           } 
-         if (tableDataa.value[2].patternHeight > 0) {
+         if (tableDataa.value[2].patternHeight > 0 && tableDataa.value[2].patternWidth > 0 && tableDataa.value[2].number > 0) {
           flakeb.value = true;
           } 
-         if (tableDataa.value[3].patternHeight > 0) {
+         if (tableDataa.value[3].patternHeight > 0 && tableDataa.value[3].patternWidth > 0 && tableDataa.value[3].number > 0) {
           flakec.value = true;
           } 
            }
@@ -196,15 +205,6 @@
 onBeforeUnmount(() => {
   closeWebSocket();
 });
-const user = ref('');
-const projectNo = ref('');
-const workstationId = ref('');
-const id = ref('');
-const patternHeight = ref('');
-const patternWidth = ref('');
-const filmsId = ref('');
-const patternThickness = ref('');
-const number = ref('');
 // 娣诲姞
 const handleBindRack = (row) => {
   workstationId.value = row.workstationId; // 鍋囪rackNumber鏄灦鍙峰瓧娈电殑灞炴�у悕
@@ -225,25 +225,38 @@
       patternThickness: selectedValuec.value,
       number: number.value
     }); 
-      window.localStorage.setItem('workstationId', workstationId.value)
-      window.localStorage.setItem('patternHeight', selectedValuea.value)
+      // window.localStorage.setItem('workstationId', workstationId.value)
+      // window.localStorage.setItem('patternHeight', selectedValuea.value)
+      // window.localStorage.setItem('patternWidth', selectedValue.value)
+      // window.localStorage.setItem('number', number.value)
     if (response.code == 200) {
       // 缁戝畾鎴愬姛锛屽鐞嗛�昏緫
       ElMessage.success(response.message);
       // window.location.reload() 
       add.value = false;
      tableDataa.value = response.data;
-      let workstationId = window.localStorage.getItem('workstationId')
-      let patternHeight = window.localStorage.getItem('patternHeight')
-      if (patternHeight !== '' && workstationId === '1') {
+      // let workstationId = window.localStorage.getItem('workstationId')
+      // let patternHeight = window.localStorage.getItem('patternHeight')
+      // let patternWidth = window.localStorage.getItem('patternWidth')
+      // let number = window.localStorage.getItem('number')
+      if (selectedValuea.value !== '0' && selectedValue.value !== '0' && number.value !== '0' && workstationId.value === '1') {
       flake.value = true
-    } else if (patternHeight !== '' && workstationId === '2'){
+    } else if (selectedValuea.value !== '0' && selectedValue.value !== '0' && number.value !== '0' && workstationId.value === '2'){
       flakea.value = true
-    }else if (patternHeight !== '' && workstationId === '3'){
+    }else if (selectedValuea.value !== '0' && selectedValue.value !== '0' && number.value !== '0' && workstationId.value === '3'){
       flakeb.value = true
-    }else if (patternHeight !== '' && workstationId === '4'){
+    }else if (selectedValuea.value !== '0' && selectedValue.value !== '0' && number.value !== '0' && workstationId.value === '4'){
       flakec.value = true
     }
+    //   if (patternHeight !== '0' && patternWidth !== '0' && number !== '0' && workstationId === '1') {
+    //   flake.value = true
+    // } else if (patternHeight !== '0' && patternWidth !== '0' && number !== '0' && workstationId === '2'){
+    //   flakea.value = true
+    // }else if (patternHeight !== '0' && patternWidth !== '0' && number !== '0' && workstationId === '3'){
+    //   flakeb.value = true
+    // }else if (patternHeight !== '0' && patternWidth !== '0' && number !== '0' && workstationId === '4'){
+    //   flakec.value = true
+    // }
       selectedValuea.value = '';
       selectedValue.value = '';
       selectedValueb.value = '';
@@ -256,8 +269,6 @@
     }
   } catch (error) {  
       // 澶勭悊璇锋眰閿欒  
-      console.error(error);  
-      alert('璇锋眰澶辫触锛岃绋嶅悗鍐嶈瘯锛�');  
     }  
   }  
   else if( ida.value === 1 || ida.value === 3){
@@ -271,23 +282,19 @@
       patternThickness: selectedValuec.value,
       number: number.value
     }); 
-      window.localStorage.setItem('workstationId', workstationId.value)
-      window.localStorage.setItem('patternHeight', selectedValuea.value)
     if (response.code == 200) {
       // 缁戝畾鎴愬姛锛屽鐞嗛�昏緫
       ElMessage.success(response.message);
       // window.location.reload() 
       add.value = false;
      tableDataa.value = response.data;
-      let workstationId = window.localStorage.getItem('workstationId')
-      let patternHeight = window.localStorage.getItem('patternHeight')
-      if (patternHeight !== '' && workstationId === '1') {
+      if (selectedValuea.value !== '0' && selectedValue.value !== '0' && number.value !== '0' && workstationId.value === '1') {
       flake.value = true
-    } else if (patternHeight !== '' && workstationId === '2'){
+    } else if (selectedValuea.value !== '0' && selectedValue.value !== '0' && number.value !== '0' && workstationId.value === '2'){
       flakea.value = true
-    }else if (patternHeight !== '' && workstationId === '3'){
+    }else if (selectedValuea.value !== '0' && selectedValue.value !== '0' && number.value !== '0' && workstationId.value === '3'){
       flakeb.value = true
-    }else if (patternHeight !== '' && workstationId === '4'){
+    }else if (selectedValuea.value !== '0' && selectedValue.value !== '0' && number.value !== '0' && workstationId.value === '4'){
       flakec.value = true
     }
       selectedValuea.value = '';
@@ -302,8 +309,6 @@
     }
   } catch (error) {  
       // 澶勭悊璇锋眰閿欒  
-      console.error(error);  
-      alert('璇锋眰澶辫触锛岃绋嶅悗鍐嶈瘯锛�');  
     } 
     }
   else  {
@@ -660,11 +665,17 @@
      :header-cell-style="{background:'#F2F3F5 ',color:'#1D2129'}"
       :data="tableData"
     >
-    <el-table-column prop="engineeringId" :label="$t('basicData.projectnumber')" width="200" align="center"/>
+      <el-table-column prop="layoutSequence" :label="$t('basicData.layoutSequence')" width="100" align="center"/>
+      <el-table-column prop="engineeringId" :label="$t('basicData.projectnumber')" width="200" align="center"/>
       <el-table-column prop="width" :label="$t('basicData.glasswidth')" align="center"/>
       <el-table-column prop="height" :label="$t('basicData.glassheight')" align="center"/>
       <el-table-column prop="filmsId" :label="$t('basicData.coatingtypes')" align="center"/>
-      <el-table-column prop="layoutSequence" :label="$t('basicData.quantity')" align="center"/>
+      <el-table-column :label="$t('basicData.quantity')" align="center">  
+      <template #default="{ row }">  
+        <!-- 杩欓噷鎬绘槸鏄剧ず 1 -->  
+        <span>{{ 1 }}</span>  
+      </template>  
+    </el-table-column>  
       <el-table-column prop="thickness" :label="$t('basicData.thickness')" align="center"/>
       <!-- <el-table-column
             align="center"
@@ -928,7 +939,7 @@
   width: 1500px;
   margin-left: -300px
 }
-#overlay{
+#overlayb{
   position: absolute;
   z-index: 1;
   width: 228px;
@@ -937,7 +948,7 @@
   margin-top: -303px;
   margin-left: 355px;
 }
-#overlaya{
+#overlayc{
   position: absolute;
   z-index: 1;
   width: 228px;
@@ -946,7 +957,7 @@
   margin-top: -303px;
   margin-left:703px;
 }
-#overlayb{
+#overlay{
   position: absolute;
   z-index: 1;
   width: 228px;
@@ -955,7 +966,7 @@
   margin-top: -45px;
   margin-left: 355px;
 }
-#overlayc{
+#overlaya{
   position: absolute;
   z-index: 1;
   width: 228px;
diff --git a/UI-Project/src/views/StockBasicData/stockBasicData.vue b/UI-Project/src/views/StockBasicData/stockBasicData.vue
index d20f65a..8b0da31 100644
--- a/UI-Project/src/views/StockBasicData/stockBasicData.vue
+++ b/UI-Project/src/views/StockBasicData/stockBasicData.vue
@@ -50,7 +50,9 @@
       // 鐢ㄦ埛鐐瑰嚮浜嗏�滄槸鈥濓紝鐜板湪璋冪敤鍒犻櫎鎺ュ彛  
       const response = await request.post("/cacheGlass/edgStorageCage/edgReportStatus", {
         glassId: row.GlassId,
-        controlsId: 300
+        controlsId: 300,
+        line: 2001,
+        machine: '鍐峰姞宸�',
     })
     if (response.code === 200) {
       ElMessage.success(response.message);
@@ -81,7 +83,9 @@
       // 鐢ㄦ埛鐐瑰嚮浜嗏�滄槸鈥濓紝鐜板湪璋冪敤鍒犻櫎鎺ュ彛  
       const response = await request.post("/cacheGlass/edgStorageCage/edgReportStatus", {
         glassId: row.GlassId,
-        controlsId: 301
+        controlsId: 301,
+        line: 2001,
+        machine: '鍐峰姞宸�',
     })
     if (response.code === 200) {
       ElMessage.success(response.message);
diff --git a/UI-Project/src/views/StockBasicData/stockBasicDatatwo.vue b/UI-Project/src/views/StockBasicData/stockBasicDatatwo.vue
index 583b2ba..8775761 100644
--- a/UI-Project/src/views/StockBasicData/stockBasicDatatwo.vue
+++ b/UI-Project/src/views/StockBasicData/stockBasicDatatwo.vue
@@ -50,7 +50,9 @@
       // 鐢ㄦ埛鐐瑰嚮浜嗏�滄槸鈥濓紝鐜板湪璋冪敤鍒犻櫎鎺ュ彛  
       const response = await request.post("/cacheGlass/edgStorageCage/edgReportStatus", {
         glassId: row.GlassId,
-        controlsId: 300
+        controlsId: 300,
+        line: 2002,
+        machine: '鍐峰姞宸�',
     })
     if (response.code === 200) {
       ElMessage.success(response.message);
@@ -81,7 +83,9 @@
       // 鐢ㄦ埛鐐瑰嚮浜嗏�滄槸鈥濓紝鐜板湪璋冪敤鍒犻櫎鎺ュ彛  
       const response = await request.post("/cacheGlass/edgStorageCage/edgReportStatus", {
         glassId: row.GlassId,
-        controlsId: 301
+        controlsId: 301,
+        line: 2002,
+        machine: '鍐峰姞宸�',
     })
     if (response.code === 200) {
       ElMessage.success(response.message);
diff --git a/hangzhoumesParent/common/servicebase/src/main/java/com/mes/temperingglass/service/TemperingGlassInfoService.java b/hangzhoumesParent/common/servicebase/src/main/java/com/mes/temperingglass/service/TemperingGlassInfoService.java
index 6abbb6a..3ebeae3 100644
--- a/hangzhoumesParent/common/servicebase/src/main/java/com/mes/temperingglass/service/TemperingGlassInfoService.java
+++ b/hangzhoumesParent/common/servicebase/src/main/java/com/mes/temperingglass/service/TemperingGlassInfoService.java
@@ -12,19 +12,40 @@
  * @since 2024-04-07
  */
 public interface TemperingGlassInfoService extends MPJBaseService<TemperingGlassInfo> {
-
+    /**
+     * 绛夊緟涓殑鐜荤拑
+     * @return
+     */
     List<TemperingGlassInfo> selectWaitingGlass();
-
+    /**
+     * 杩涚倝涓殑鐜荤拑
+     * @return
+     */
     List<TemperingGlassInfo> selectIntoGlass(TemperingGlassInfo temperingGlassInfo);
-
+    /**
+     * 鍑虹倝涓殑鐜荤拑
+     * @return
+     */
     List<TemperingGlassInfo> selectOutGlass();
-
+    /**
+     * 閽㈠寲鍚庣殑鐜荤拑
+     * @return
+     */
     List<TemperingGlassInfo> selectOverGlass();
-
+    /**
+     * 鏌ヨ閽㈠寲鍚庣殑鐗堝浘id
+     * @return
+     */
     List<TemperingGlassInfo> selectLayoutId();
-
+    /**
+     * 鏌ヨ閽㈠寲鐘舵��
+     * @return
+     */
     List<TemperingGlassInfo> selectTaskType();
-
+    /**
+     * 閽㈠寲妯″潡鐮存崯
+     * @return
+     */
     Integer updateTemperingState(TemperingGlassInfo temperingGlassInfo);
 
 }
diff --git a/hangzhoumesParent/common/servicebase/src/main/java/com/mes/tools/WebSocketServer.java b/hangzhoumesParent/common/servicebase/src/main/java/com/mes/tools/WebSocketServer.java
index fa81984..480921c 100644
--- a/hangzhoumesParent/common/servicebase/src/main/java/com/mes/tools/WebSocketServer.java
+++ b/hangzhoumesParent/common/servicebase/src/main/java/com/mes/tools/WebSocketServer.java
@@ -122,21 +122,26 @@
             if(this.session.isOpen()){
                 int maxChunkSize = 50000; // 瀹氫箟鏈�澶х殑鍒嗗潡澶у皬
                 int length = message.length();
-                int chunks = (int) Math.ceil((double) length / maxChunkSize);
-                //鍒嗗潡鍙戦�佹秷鎭�
-                for (int i = 0; i < chunks; i++) {
-                    int startIndex = i * maxChunkSize;
-                    int endIndex = Math.min(startIndex + maxChunkSize, length);
-                    String chunk = message.substring(startIndex, endIndex);
+                if(length>50000){
+                    int chunks = (int) Math.ceil((double) length / maxChunkSize);
+                    //鍒嗗潡鍙戦�佹秷鎭�
+                    for (int i = 0; i < chunks; i++) {
+                        int startIndex = i * maxChunkSize;
+                        int endIndex = Math.min(startIndex + maxChunkSize, length);
+                        String chunk = message.substring(startIndex, endIndex);
 
-                    // 鍒ゆ柇鏄惁鏄渶鍚庝竴鍧楁秷鎭�
-                    boolean isLastChunk = (i == chunks - 1);
-                    if(isLastChunk==true){
-                        chunk+="<END>";
+                        // 鍒ゆ柇鏄惁鏄渶鍚庝竴鍧楁秷鎭�
+                        boolean isLastChunk = (i == chunks - 1);
+                        if(isLastChunk==true){
+                            chunk+="<END>";
+                        }
+                        // 鍙戦�佸垎鍧楁秷鎭紝骞朵紶閫掓槸鍚︽槸鏈�鍚庝竴鍧楁秷鎭殑鏍囪瘑
+                        this.session.getBasicRemote().sendText(chunk);
                     }
-                    // 鍙戦�佸垎鍧楁秷鎭紝骞朵紶閫掓槸鍚︽槸鏈�鍚庝竴鍧楁秷鎭殑鏍囪瘑
-                    this.session.getBasicRemote().sendText(chunk);
+                }else{
+                    this.session.getBasicRemote().sendText(message);
                 }
+
             }
         } catch (Exception e) {
             log.error("鍙戦�佹秷鎭粰瀹㈡埛绔け璐ワ細{}", e.getMessage(), e);
diff --git a/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/service/impl/UpPattenUsageServiceImpl.java b/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/service/impl/UpPattenUsageServiceImpl.java
index e8b731f..409cfb2 100644
--- a/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/service/impl/UpPattenUsageServiceImpl.java
+++ b/hangzhoumesParent/moduleService/LoadGlassModule/src/main/java/com/mes/uppattenusage/service/impl/UpPattenUsageServiceImpl.java
@@ -66,7 +66,7 @@
         List<OptimizeUpPattenUsage> upPattenUsageList = null;
         if (engineeringId != null) {
             upPattenUsageList = optimizeProjectMapper.selectJoinList(OptimizeUpPattenUsage.class, new MPJQueryWrapper<OptimizeProject>()
-                    .select("t.project_no,t.glass_type,b.width,b.height ,REGEXP_REPLACE(t.glass_thickness,'\\D','')as glass_thickness,b.count as stockId")
+                    .select("t.project_no,t.glass_type,b.realwidth as width,b.realheight as height ,REGEXP_REPLACE(t.glass_thickness,'\\D','')as glass_thickness,b.stock_id")
                     .leftJoin("optimize_layout b on t.project_no=b.project_no")
                     .eq("b.project_no", engineeringId));
         }
diff --git a/hangzhoumesParent/moduleService/TemperingGlassModule/src/test/java/com/mes/TemperingApplicationTest.java b/hangzhoumesParent/moduleService/TemperingGlassModule/src/test/java/com/mes/TemperingApplicationTest.java
index 05ad286..c567a90 100644
--- a/hangzhoumesParent/moduleService/TemperingGlassModule/src/test/java/com/mes/TemperingApplicationTest.java
+++ b/hangzhoumesParent/moduleService/TemperingGlassModule/src/test/java/com/mes/TemperingApplicationTest.java
@@ -28,8 +28,16 @@
 
     @Test
     public void testFindPa() {
-        List<TemperingGlassInfo> glass = temperingAgoService.selectIntoGlass(12);
-        log.info("杩涚倝涓殑鐜荤拑锛歿}", Arrays.asList(glass));
+        List<TemperingGlassInfo> layoutId = temperingAgoService.selectLayoutId();
+        if(!layoutId.isEmpty()) {
+            List<TemperingGlassInfo> intoGlass = temperingAgoService.selectIntoGlass(layoutId.get(0));
+            log.info("宸插嚭涓殑鐜荤拑锛歿}", Arrays.asList(intoGlass));
+            //杩涚倝涓殑绗簩涓増鍥�
+            if (layoutId.size() > 1) {
+                List<TemperingGlassInfo> intoGlass2 = temperingAgoService.selectIntoGlass(layoutId.get(1));
+                log.info("宸插嚭涓殑鐜荤拑锛歿}", Arrays.asList(intoGlass2));
+            }
+        }
     }
     @Test
     public void testFindPa2() {
@@ -46,15 +54,5 @@
     public void testFindPa4() {
         List<TemperingGlassInfo> glass = temperingAgoService.selectOverGlass();
         log.info("閽㈠寲鍚庣殑鐜荤拑锛歿}", Arrays.asList(glass));
-    }
-    @Test
-    public void testFindPa5() {
-        List<TemperingGlassInfo> layoutId = temperingAgoService.selectLayoutId();
-        //杩涚倝涓殑鐜荤拑
-        log.info("鐗堝浘id锛歿}", Arrays.asList(layoutId.get(0).getTemperingLayoutId()));
-        List<TemperingGlassInfo> intoGlass = temperingAgoService.selectIntoGlass(layoutId.get(0).getTemperingLayoutId());
-        log.info("鐜荤拑鐗堝浘id锛歿}", Arrays.asList(intoGlass));
-        List<TemperingGlassInfo> intoGlass2 = temperingAgoService.selectIntoGlass(layoutId.get(1).getTemperingLayoutId());
-        log.info("鐜荤拑鐗堝浘id锛歿}", Arrays.asList(intoGlass2));
     }
 }

--
Gitblit v1.8.0