| | |
| | | }, |
| | | /** 查询配方配置子信息列表 */ |
| | | getListFormulaChild() { |
| | | this.formulaChildList = [] |
| | | // this.formulaChildList = [] |
| | | this.formulaChildParams.productCode = this.workpieceInformation.productCode |
| | | this.formulaChildParams.processesCode = this.headContent.processesCode |
| | | listFormulaChild(this.formulaChildParams).then(response => { |
| | |
| | | } |
| | | addTighteningParameters(param).then(response => {}); |
| | | updateTighteningFormula(param).then(response => { |
| | | self.getListFormulaChild() |
| | | }); |
| | | self.getListFormulaChild() |
| | | } |
| | | }; |
| | | }, |
| | |
| | | if (this.form1.isShowHistory) this.form1.desc = this.readLi().join(""); |
| | | else { |
| | | const scanValue = this.myserialport.hex2atostr(value).replace(/[\r\n]/g, ''); |
| | | // if(this.cakeLamp.InPlace=== 1){ |
| | | console.log("串口收到数据-------------------"+scanValue) |
| | | if(this.cakeLamp.InPlace=== 1){ |
| | | if(this.headContent.sfcCode !== ''){ |
| | | console.log(scanValue) |
| | | this.serialPortMethod(scanValue) |
| | |
| | | this.cakeLamp.scanFinish = 1 |
| | | this.cakeLamp.startWork = 1 |
| | | } |
| | | // }else { |
| | | // this.$message('工件未到位禁止扫码!'); |
| | | // } |
| | | }else { |
| | | this.$message('工件未到位禁止扫码!'); |
| | | } |
| | | } |
| | | }, |
| | | clearHistory() { |
| | |
| | | this.myserialport.state.parity = this.form1.parity; |
| | | this.myserialport.state.flowControl = this.form1.flowControl; |
| | | await this.myserialport.openPort(this.form1.port, true, this.callBack); |
| | | console.log(this.form1.port) |
| | | } catch (error) { |
| | | this.$message.error("串口连接失败!请检查串口是否已被占用"); |
| | | } |