admin
2024-07-05 da4f496019e5871b982c49ec085544258c1df183
jcdm-ui/src/views/main/kb/stationTerminal/index.vue
@@ -390,8 +390,8 @@
      },
      content: '',
      activeName: 'first',
      url: "ws://10.103.210.248:8080/websocket/message/",
      // url: "ws://192.168.10.100:8080/websocket/message/",
      // url: "ws://10.103.210.248:8080/websocket/message/",
      url: "ws://192.168.10.100:8080/websocket/message/",
      message: "",
      text_content: "",
      ws: null,
@@ -627,14 +627,7 @@
        this.headContent.cardCode = rowsData.trolleyYard;
      });
      this.getListFormulaChild()
      // this.addOverStationCollection()
      this.workpieceInformation.inboundTime = this.getCurrentTime()
      const param = {
        processesCode: this.headContent.processesCode,
      }
      fistSetpNumber(param).then(response => {
        console.log("fistSetpNumber------"+response.msg)
      });
    },
    initializedData(){
@@ -648,6 +641,7 @@
          this.getList()
          this.cakeLamp.scanFinish = 1
          this.cakeLamp.startWork = 1
          this.cakeLamp.InPlace = 1
        }
      });
    },
@@ -827,6 +821,8 @@
          self.getList()
          self.cakeLamp.scanFinish = 1
          self.cakeLamp.startWork = 1
          this.cakeLamp.InPlace = 1
        }
      };
    },
@@ -848,10 +844,6 @@
        console.log("sfc=--"+this.headContent.sfcCode+"--")
        if(this.headContent.sfcCode !== '' && this.headContent.sfcCode !== null
          && this.headContent.sfcCode !== undefined){
          // if(scanValue.includes("P9900173252")){
          //   this.headContent.yzSfcCode = scanValue
          //   this.bindYzSfc();
          // }else
          if(scanValue.includes("0RSP1TE") && this.headContent.processesCode === 'OP240'){
            this.headContent.cardCode = scanValue
            this.bindcardCode(scanValue);
@@ -862,30 +854,32 @@
            this.serialPortMethod(scanValue)
          }
        } else {
          if(this.headContent.processesCode === 'OP240'){
          // if(this.headContent.processesCode === 'OP240'){
            this.headContent.sfcCode = scanValue;
            this.queryParams.productNum = scanValue;
            this.getList()
            this.cakeLamp.scanFinish = 1
            this.cakeLamp.startWork = 1
          }else {
            let param = {
              trolleyYard: scanValue
            }
            findBytrolleyYardGetOne(param).then(response => {
              if(response.msg !== '2'){
                this.headContent.sfcCode = response.msg;
                this.queryParams.productNum = response.msg;
                this.$message('扫码识别产品序列号'+scanValue);
                this.getList()
                this.cakeLamp.scanFinish = 1
                this.cakeLamp.startWork = 1
              }else {
                this.$message('没有序列号'+scanValue);
                return
              }
            });
          }
            this.cakeLamp.InPlace = 1
          // }else {
          //   let param = {
          //     trolleyYard: scanValue
          //   }
          //   findBytrolleyYardGetOne(param).then(response => {
          //     if(response.msg !== '2'){
          //       this.headContent.sfcCode = response.msg;
          //       this.queryParams.productNum = response.msg;
          //       this.$message('扫码识别产品序列号'+scanValue);
          //       this.getList()
          //       this.cakeLamp.scanFinish = 1
          //       this.cakeLamp.startWork = 1
          //       this.cakeLamp.InPlace = 1
          //     }else {
          //       this.$message('没有序列号'+scanValue);
          //       return
          //     }
          //   });
          // }
        }