From c5f01e9a882b16f534166d033312c5c8ba8d94dd Mon Sep 17 00:00:00 2001
From: xiaojiao <xiaojiao@kaokeziliao.com>
Date: 星期六, 24 一月 2026 14:35:21 +0800
Subject: [PATCH] 离开北京前最后的版本,包含打印机程序

---
 项目代码/WMS/WIDESEA_WMSClient/src/views/Home.vue |   23 +++++++++++++++++------
 1 files changed, 17 insertions(+), 6 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/Home.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/Home.vue"
index 68f7ddc..521918c 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/Home.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/Home.vue"
@@ -2,8 +2,8 @@
 
   <!-- <el-button style="width:200px;height:100px;margin-top:100px;margin-left:100px" type="success" size="big" @click="generalFun">閫氫俊鎸夐挳</el-button> -->
   <div>
-    <el-button class="btnStyle" type="success" size="big" @click="checkToNormalModel">鍒囨崲鍒版甯告ā寮�</el-button>
-    <el-button class="btnStyle" type="danger" size="big" @click="checkToEmergeModel">鍒囨崲鍒板簲鎬ユā寮�</el-button>
+    <el-button class="btnStyle" type="success" size="big" @click="checkToNormalModel">姝e父妯″紡</el-button>
+    <!-- <el-button class="btnStyle" type="danger" size="big" @click="checkToEmergeModel">鍒囨崲鍒板簲鎬ユā寮�</el-button> -->
     <el-button class="btnStyle" type="success" size="big" @click="checkToEmptyIn">鍒囨崲鍒扮┖鎵樺叆搴�</el-button>
     <el-button class="btnStyle" type="danger" size="big" @click="checkToBoxIn">鍒囨崲鍒拌酱鎵垮叆搴�</el-button>
   </div>
@@ -13,7 +13,7 @@
   </div>
 
   <div>
-    <div class="fontStyle">鍏ュ簱绾夸綋褰撳墠妯″紡锛氭甯告ā寮忓�硷細{{normalModelVal}},搴旀�ユā寮忓��:{{emergeModelVal}}</div>
+    <div class="fontStyle">鍏ュ簱绾夸綋褰撳墠妯″紡锛氭甯告ā寮忓�硷細{{normalModelVal}}</div>
   </div>
 
   <div>
@@ -36,6 +36,10 @@
   <el-row type="flex" justify="left" align="middle" style="background-color:#ffffff">
     <div class="fontStyle">鍏ュ簱妫�楠屾墭鐩樼爜缁撴灉锛氱郴缁熸潯鐮佸�硷細{{systemBarcode_30301}}锛孭LC鏉$爜鍊硷細{{plcBarcode_30301}}</div>
     <el-button style="width:150px;height:45px;margin-left:20px;margin-top:30px;" type="success" size="big" @click="checkByManualOk">缁х画浠诲姟</el-button>
+  </el-row>
+
+   <el-row type="flex" justify="left" align="middle" style="background-color:#ffffff">
+    <div class="fontStyle">鍏ュ簱鍖哄煙妯″紡锛歿{inboundRunModelVal}}锛屽嚭搴撳尯鍩熸ā寮忥細{{outboundState}}</div>
   </el-row>
 
 
@@ -74,6 +78,8 @@
       goodscount:0,
       standarcount:0,
       dateDiffResultcount:0,
+      inboundState:"", // 鍏ュ簱鍖烘ā寮�
+      outboundState:"", // 鍑哄簱鍖烘ā寮�
     };
   },
 
@@ -93,8 +99,8 @@
     openWebSocket () {
       const _this = this;
       //鍒濆鍖杦ebsocket
-     // const ws = new WebSocket("ws://127.0.0.1:9111/");
-      const ws = new WebSocket("ws://192.168.1.10:9111/");
+     const ws = new WebSocket("ws://127.0.0.1:9111/");
+      //const ws = new WebSocket("ws://192.168.1.10:9111/");
       ws.onopen = function () {
         console.log("websocket寮�鍚垚鍔�");
       };
@@ -105,6 +111,7 @@
 
         //debugger;
         var keys = Object.keys(jsonObj);
+        console.log("webscoket鐨勬暟鎹細" + msgData)
         if (keys.includes('checkBarcode')) {
           _this.systemBarcode_30301 = jsonObj.systemRFID;
           _this.plcBarcode_30301 = jsonObj.lineRFID;
@@ -160,12 +167,16 @@
           this.inboundRunModelVal = x.data["controlModel"]; 
           this.carStatusValue = x.data["carStatus"];
           this.measureStatusValue = x.data["measureStatus"];
-
+          this.outboundState = x.data["modelResult"];
+          console.log("涓夊彴绌挎杞︾殑鐘舵�侊細"+this.carStatusValue)
         } else {
             //this.$Message.error(x.message);
         }
       })
 
+      // 杩欓噷鍔犱竴涓幏鍙栫殑
+
+
       this.http.post("/api/Dt_general_info/GetInboundModel",null,null).then(x=>{
         if(x.status===true){
           

--
Gitblit v1.9.3