admin
2024-12-17 75f1ced619b49f354addc1cf8fa1ca320b25edd4
jcdm-ui/src/views/main/kb/stationTerminal/index.vue
@@ -259,7 +259,7 @@
                 </div>
               </div>
               <div style="text-align: center;margin-left: -190px;margin-top: 37px">
               <div style="text-align: center;margin-left: -190px;margin-top: 41px">
                 <div style="margin-top: 4px">
                   <span>{{printMaterialCode}}</span><br>
                 </div>
@@ -451,31 +451,34 @@
           this.headContent.processesCode === "OP210" || this.headContent.processesCode === "OP220" ||
          this.headContent.processesCode === "OP230"
        ){
          if(this.materialCode.length>25){
            let code = this.materialCode.substring(13,26);
            // this.headContent.sfcCode = code;
            this.queryParams.productNum = code;
            this.getList();
            this.cakeLamp.scanFinish = 1
            this.cakeLamp.startWork = 1
            this.cakeLamp.InPlace = 1
            const param = {
              processesCode: this.headContent.processesCode,
              productCode: this.workpieceInformation.productCode,
              sfcBarcode:code,
          if(this.materialCode.substring(35,56).includes("SSW001.001#HHW001.001")){
            if(this.materialCode.length>25){
              let code = this.materialCode.substring(13,26);
              // this.headContent.sfcCode = code;
              this.queryParams.productNum = code;
              this.getList();
              this.cakeLamp.scanFinish = 1
              this.cakeLamp.startWork = 1
              this.cakeLamp.InPlace = 1
              const param = {
                processesCode: this.headContent.processesCode,
                productCode: this.workpieceInformation.productCode,
                sfcBarcode:code,
              }
              fistSetpNumber(param).then(response => {
                console.log("fistSetpNumber------"+response.msg)
              });
              this.$message("扫描物料编码"+this.materialCode);
              this.materialCode="";
              this.setFocus();
            }else{
              this.$message("扫描物料编码错误!"+this.materialCode);
              this.materialCode="";
              this.setFocus();
            }
            fistSetpNumber(param).then(response => {
              console.log("fistSetpNumber------"+response.msg)
            });
            this.$message("扫描物料编码"+this.materialCode);
            this.materialCode="";
            this.setFocus();
          }else{
            this.$message("扫描物料编码错误!"+this.materialCode);
            this.materialCode="";
            this.setFocus();
          }else {
            this.$message("版本号校验错误,请检查!"+this.materialCode);
          }
        }
      }else{
        if(this.headContent.sfcCode === '' || this.headContent.sfcCode === null){
@@ -796,7 +799,7 @@
          if(self.headContent.processesCode === "OP165"){
            // self.test1()
            // self.test2()
            self.text = 'P9900200461#T'+self.headContent.sfcCode+'#V993983#SSW002.005#HHW001.001#NMCU#'
            self.text = 'P9900200461#T'+self.headContent.sfcCode+'#V993983#SSW001.001#HHW001.001#NMCU'
          }
        }else if (event.data.includes("[")) {//拧紧