xiaojiao
2026-01-24 c5f01e9a882b16f534166d033312c5c8ba8d94dd
ÏîÄ¿´úÂë/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">正常模式</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}},PLC条码值:{{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;
      //初始化websocket
     // 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){