From 054a699a156ca607e95f220b364136d42a19ab0f Mon Sep 17 00:00:00 2001 From: 懒羊羊 <15939171744@163.com> Date: 星期三, 27 三月 2024 14:40:18 +0800 Subject: [PATCH] - --- jcdm-ui/src/views/main/kb/stationTerminal/index.vue | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/jcdm-ui/src/views/main/kb/stationTerminal/index.vue b/jcdm-ui/src/views/main/kb/stationTerminal/index.vue index 21e7cd1..baaef08 100644 --- a/jcdm-ui/src/views/main/kb/stationTerminal/index.vue +++ b/jcdm-ui/src/views/main/kb/stationTerminal/index.vue @@ -494,6 +494,7 @@ // this.formulaChildList = [] this.formulaChildParams.productCode = this.workpieceInformation.productCode this.formulaChildParams.processesCode = this.headContent.processesCode + console.log(this.formulaChildParams) listFormulaChild(this.formulaChildParams).then(response => { this.formulaChildList = response.rows; }); @@ -577,6 +578,7 @@ console.log('璁剧疆宸ヤ綅缂栫爜' + this.headContent.processesCode) }); + this.conCom() console.log('websocket杩炴帴宸ヤ綅涓�' + this.headContent.processesCode) const wsuri = this.url + this.headContent.processesCode; this.ws = new WebSocket(wsuri); @@ -600,6 +602,7 @@ productBarcode: self.headContent.sfcCode, } saveCampaignTimeParameters(param).then(response => {}); + self.cakeLamp.release = 1; } else if (event.data.includes("[")) { let formulaChilds = ""; @@ -701,6 +704,22 @@ return body; }); }, + conCom(){ + try { + this.myserialport.state.baudRate = this.form1.baudRate; + this.myserialport.state.dataBits = this.form1.dataBits; + this.myserialport.state.stopBits = this.form1.stopBits; + this.myserialport.state.parity = this.form1.parity; + this.myserialport.state.flowControl = this.form1.flowControl; + this.myserialport.openPort(0, true, this.callBack); + console.log(this.form1.port) + } catch (error) { + this.$message.error("涓插彛杩炴帴澶辫触锛佽妫�鏌ヤ覆鍙f槸鍚﹀凡琚崰鐢�"); + } + if (this.myserialport.state.isOpen) { + this.$message.success("涓插彛杩炴帴鎴愬姛"); + } + }, //杩炴帴 async connectBtn() { if (this.btnType === "primary") { -- Gitblit v1.9.3