| | |
| | | console.log(tab, event); |
| | | }, |
| | | handleEnter() { |
| | | if(this.headContent.sfcCode.includes("9900200461") || this.headContent.sfcCode.includes("9900207783")){ |
| | | if(this.materialCode.includes("9900200461") || this.materialCode.includes("9900207783")){ |
| | | if(this.headContent.processesCode === "OP170" || this.headContent.processesCode === "OP180" || |
| | | this.headContent.processesCode === "OP190" || this.headContent.processesCode === "OP200" || |
| | | this.headContent.processesCode === "OP210" || this.headContent.processesCode === "OP220" || |
| | | this.headContent.processesCode === "OP230" |
| | | ){ |
| | | let code = this.materialCode.substring(13,27); |
| | | 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 |
| | | if(this.materialCode.length>30){ |
| | | 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 |
| | | } |
| | | fistSetpNumber(param).then(response => { |
| | | console.log("fistSetpNumber------"+response.msg) |
| | | }); |
| | | this.$message("扫描物料编码"+this.materialCode); |
| | | this.setFocus(); |
| | | this.materialCode=""; |
| | | }else{ |
| | | this.$message("扫描物料编码错误!"+this.materialCode); |
| | | } |
| | | fistSetpNumber(param).then(response => { |
| | | console.log("fistSetpNumber------"+response.msg) |
| | | }); |
| | | |
| | | } |
| | | }else{ |
| | | if(this.headContent.sfcCode === '' || this.headContent.sfcCode === null){ |
| | | this.$message("请先扫描产品条码!"); |
| | | }else{ |
| | | this.serialPortMethod(this.materialCode); |
| | | this.$message("扫描物料编码"+this.materialCode); |
| | | this.setFocus(); |
| | | this.materialCode=""; |
| | | } |
| | | }else{ |
| | | this.serialPortMethod(this.materialCode); |
| | | this.$message("扫描物料编码"+this.materialCode); |
| | | this.setFocus(); |
| | | this.materialCode=""; |
| | | |
| | | } |
| | | }, |
| | | // getWorkOrders(){ |