-
admin
2024-05-15 a320dcc8a480436f2f6b3ef81fe6b607f080a64a
jcdm-ui/src/views/main/kb/stationTerminal/index.vue
@@ -298,6 +298,7 @@
import {listWorkReport} from "@/api/main/om/workReport/workReport";
import {listStationConf,getIpv4} from "@/api/main/sc/stationConf";
import {
  fistSetpNumber,
  listFormulaChild,
  noPageListFormulaChild,
  releaseCheck,
@@ -575,9 +576,9 @@
        this.workpieceInformation.productCode = rowsData.productCode;
        this.workpieceInformation.productModel = rowsData.productModel;
        this.workpieceInformation.productName = rowsData.productName;
        this.timer = setInterval(() => {
          this.workpieceInformation.beat++;
        }, 1000);
        // this.timer = setInterval(() => {
        //   this.workpieceInformation.beat++;
        // }, 1000);
      });
      this.getListFormulaChild()
      this.addOverStationCollection()
@@ -633,6 +634,7 @@
        }
        console.log('设置工位编码' + this.headContent.processesCode)
      });
      this.conCom()
      console.log('websocket连接工位为' + this.headContent.processesCode)
@@ -641,10 +643,16 @@
      const self = this;
      this.ws.onopen = function (event) {
        this.$message('websocket连接成功!');
      };
      this.ws.onmessage = function (event) {
        if (event.data === "IN") {
          self.cakeLamp.InPlace = 1;
          console.log(self.headContent.processesCode);
          const param = {
            processesCode: self.headContent.processesCode,
          }
          fistSetpNumber(param).then(response => {});
        } else if (event.data === "IN0") {
          self.cakeLamp.InPlace = 0;
        } else if (event.data === "OUT") {
@@ -703,7 +711,7 @@
        if(this.headContent.sfcCode !== ''){
          if(scanValue.includes("P9900173252")){
            this.headContent.yzSfcCode = scanValue
          }else if(scanValue.includes("HDY")){
          }else if(scanValue.includes("RSP01TE")){
            this.headContent.cardCode = scanValue
          }else {
            this.$message('扫描物料编码'+scanValue);