From 073b17307feef4f9a3a269459446e6b25324e039 Mon Sep 17 00:00:00 2001 From: admin <15939171744@163.com> Date: 星期五, 17 五月 2024 16:26:34 +0800 Subject: [PATCH] - --- jcdm-ui/src/views/main/kb/stationTerminal/index.vue | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/jcdm-ui/src/views/main/kb/stationTerminal/index.vue b/jcdm-ui/src/views/main/kb/stationTerminal/index.vue index be3361d..d76b681 100644 --- a/jcdm-ui/src/views/main/kb/stationTerminal/index.vue +++ b/jcdm-ui/src/views/main/kb/stationTerminal/index.vue @@ -298,6 +298,7 @@ import {listWorkReport} from "@/api/main/om/workReport/workReport"; import {listStationConf,getIpv4} from "@/api/main/sc/stationConf"; import { + fistSetpNumber, listFormulaChild, noPageListFormulaChild, releaseCheck, @@ -575,9 +576,9 @@ this.workpieceInformation.productCode = rowsData.productCode; this.workpieceInformation.productModel = rowsData.productModel; this.workpieceInformation.productName = rowsData.productName; - this.timer = setInterval(() => { - this.workpieceInformation.beat++; - }, 1000); + // this.timer = setInterval(() => { + // this.workpieceInformation.beat++; + // }, 1000); }); this.getListFormulaChild() this.addOverStationCollection() @@ -633,6 +634,7 @@ } console.log('璁剧疆宸ヤ綅缂栫爜' + this.headContent.processesCode) + }); this.conCom() console.log('websocket杩炴帴宸ヤ綅涓�' + this.headContent.processesCode) @@ -641,10 +643,16 @@ const self = this; this.ws.onopen = function (event) { this.$message('websocket杩炴帴鎴愬姛锛�'); + }; this.ws.onmessage = function (event) { if (event.data === "IN") { self.cakeLamp.InPlace = 1; + console.log(self.headContent.processesCode); + const param = { + processesCode: self.headContent.processesCode, + } + fistSetpNumber(param).then(response => {}); } else if (event.data === "IN0") { self.cakeLamp.InPlace = 0; } else if (event.data === "OUT") { @@ -703,7 +711,7 @@ if(this.headContent.sfcCode !== ''){ if(scanValue.includes("P9900173252")){ this.headContent.yzSfcCode = scanValue - }else if(scanValue.includes("HDY")){ + }else if(scanValue.includes("RSP01TE")){ this.headContent.cardCode = scanValue }else { this.$message('鎵弿鐗╂枡缂栫爜'+scanValue); -- Gitblit v1.9.3