From c346aba6d0196673d43fb81610ec6f0ca9cddbbd Mon Sep 17 00:00:00 2001 From: 懒羊羊 <15939171744@163.com> Date: 星期二, 30 一月 2024 15:56:41 +0800 Subject: [PATCH] 工位终端 --- jcdm-ui/src/views/main/kb/stationTerminal/index.vue | 18 ++++++++++++++---- 1 files changed, 14 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 2383ad3..81c68e6 100644 --- a/jcdm-ui/src/views/main/kb/stationTerminal/index.vue +++ b/jcdm-ui/src/views/main/kb/stationTerminal/index.vue @@ -147,7 +147,7 @@ <script> import {listWorkReport} from "@/api/main/om/workReport/workReport"; import {listStationConf,getIpv4} from "@/api/main/sc/stationConf"; -import {listFormulaChild, releaseCheck, updateResults} from "@/api/main/bs/formulaChild/formulaChild"; +import {listFormulaChild, releaseCheck, updateResults, workpieceRelease} from "@/api/main/bs/formulaChild/formulaChild"; export default { name: "stationTerminal", @@ -159,6 +159,7 @@ pageNum: 1, pageSize: 10, productCode: null, + processesCode: null, }, // 閰嶆柟閰嶇疆瀛愪俊鎭〃鏍兼暟鎹� formulaChildList: [], @@ -198,7 +199,7 @@ }, content: '', activeName: 'first', - url: "ws://192.168.11.60:8080/websocket/message/", + url: "ws://192.168.10.252:8080/websocket/message/", message: "", text_content: "", ws: null, @@ -220,11 +221,18 @@ }, methods: { Release(){ - releaseCheck().then(response => { + let formulaChildParams = { + productCode: this.workpieceInformation.productCode, + processesCode: this.headContent.processesCode + } + releaseCheck(formulaChildParams).then(response => { if(response.data === 0){ //鏀瑰彉鐘舵�� + workpieceRelease(formulaChildParams).then(response => { + }); this.$message('鏀捐鎴愬姛锛�'); - + this.formulaChildList = [] + this.getListFormulaChild() }else { this.$message('姝ラ鏈畬鎴愪笉璁告斁琛岋紒'); } @@ -249,6 +257,7 @@ /** 鏌ヨ閰嶆柟閰嶇疆瀛愪俊鎭垪琛� */ getListFormulaChild() { this.formulaChildParams.productCode = this.workpieceInformation.productCode + this.formulaChildParams.processesCode = this.headContent.processesCode listFormulaChild(this.formulaChildParams).then(response => { this.formulaChildList = response.rows; }); @@ -375,6 +384,7 @@ }, 2000); // 寤舵椂2绉掕Е鍙� }else if(event.data === 'TIGHTEN'){ console.log('寮�濮嬫嫥绱�') + this.formulaChildList = [] self.getListFormulaChild() } }; -- Gitblit v1.9.3