| | |
| | | this.endClear() |
| | | clearWorkpieceRelease(param).then(response => {}); |
| | | this.headContent.sfcCode = '' |
| | | this.$message('清楚成功!'); |
| | | this.$message('清除成功!'); |
| | | }, |
| | | scanCompleted(){ |
| | | this.$message('扫码完成'+this.content); |
| | |
| | | }); |
| | | this.getListFormulaChild() |
| | | this.addOverStationCollection() |
| | | const param = { |
| | | processesCode: this.headContent.processesCode, |
| | | } |
| | | fistSetpNumber(param).then(response => { |
| | | console.log("fistSetpNumber------"+response.msg) |
| | | }); |
| | | }, |
| | | |
| | | addBaseData(){ |
| | |
| | | if (event.data === "IN") { |
| | | self.cakeLamp.InPlace = 1; |
| | | console.log(self.headContent.processesCode); |
| | | const param = { |
| | | processesCode: self.headContent.processesCode, |
| | | } |
| | | fistSetpNumber(param).then(response => {}); |
| | | // const param = { |
| | | // processesCode: self.headContent.processesCode, |
| | | // } |
| | | // fistSetpNumber(param).then(response => {}); |
| | | } else if (event.data === "IN0") { |
| | | self.cakeLamp.InPlace = 0; |
| | | } else if (event.data === "OUT") { |
| | |
| | | const scanValue = this.myserialport.hex2atostr(value).replace(/[\r\n]/g, ''); |
| | | console.log("串口收到数据-------------------"+scanValue) |
| | | |
| | | if(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")){ |
| | | }else if(scanValue.includes("0RSP1TE") && this.headContent.processesCode === 'OP240'){ |
| | | this.headContent.cardCode = scanValue |
| | | this.bindcardCode(); |
| | | }else { |