admin
2024-08-04 9f636f3476b661cf8d18edb69d0d75eea74e64ea
jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue
@@ -263,8 +263,9 @@
      },
      content: '',
      activeName: 'first',
      url: "ws://10.103.210.248:8080/websocket/message/",
      // url: "ws://192.168.2.76:8080/websocket/message/",
      // url: "ws://192.168.2.248:8080/websocket/message/",
      // url: "ws://10.103.210.248:8080/websocket/message/",
      url: "ws://192.168.2.76:8080/websocket/message/",
      message: "",
      text_content: "",
      ws: null,
@@ -414,7 +415,7 @@
    },
    clearClick(){
      const param = {
        productCode: '1P102S',
        productCode: 'PE01B',
        locationCode: this.headContent.processesCode,
      }
      clearWorkpieceRelease(param).then(response => {});
@@ -493,7 +494,7 @@
      this.ws = new WebSocket(wsuri);
      const self = this;
      this.ws.onopen = function (event) {
        this.$message('websocket连接成功!');
        self.$message('websocket连接成功!');
      };
      this.ws.onmessage = function (event) {
        if(event.data.includes("[")) {
@@ -542,7 +543,10 @@
                  const param = {
                    locationCode: self.headContent.processesCode,
                    productBarcode: self.headContent.sfcCode,
                    inboundTime: self.headContent.inboundTime
                    inboundTime: self.headContent.inboundTime,
                    productCode: "PE01B",
                    workOrderNo: "-",
                  }
                  preInstallOut(param).then(response => {});
                  workpieceRelease(param).then(response => {});
@@ -571,9 +575,14 @@
          console.log(scanValue)
          this.serialPortMethod(scanValue)
        } else {
          this.headContent.sfcCode = scanValue;
          this.headContent.inboundTime = this.getCurrentTime();
          this.getList()
          if(scanValue.includes("P9900183275") || scanValue.includes("P9900173252")){
            this.headContent.sfcCode = scanValue;
            this.headContent.inboundTime = this.getCurrentTime();
            this.getList()
          }else {
            this.$message.error('总成码扫描错误!');
          }
        }
      }