From 0a926b3ce629047a88dbc65cc38ec86c43520336 Mon Sep 17 00:00:00 2001 From: admin <15939171744@163.com> Date: 星期五, 07 三月 2025 16:33:09 +0800 Subject: [PATCH] -换型bug修改 --- jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue | 63 ++++++++++++++++++++++++------- 1 files changed, 49 insertions(+), 14 deletions(-) diff --git a/jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue b/jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue index 4e0e4df..5879247 100644 --- a/jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue +++ b/jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue @@ -1,18 +1,31 @@ <template> <div class="app-container"> <el-row :gutter="5"> - <el-col :span="7"> + <el-col :span="5"> <el-card shadow="never"> <span class="head-font">宸ヤ綅缂栧彿 : {{headContent.processesCode}}</span> <span hidden>{{headContent.inboundTime}}</span> </el-card> </el-col> - <el-col :span="7"> + <el-col :span="5"> <el-card shadow="never"> <span class="head-font">宸ヤ綅鍚嶇О : {{headContent.processesName}}</span> </el-card> </el-col> - <el-col :span="10"> + <el-col :span="6"> + <el-card style="height: 57px" shadow="never"> + <span class="head-font">浜у搧鍨嬪彿 : </span> + <el-select style="width: 70%;margin-top: -10px" v-model="selectProductCode" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in options" + :key="item.value" + :label="item.label" + :value="item.value"> + </el-option> + </el-select> + </el-card> + </el-col> + <el-col :span="8"> <el-card shadow="never"> <span class="head-font">浜у搧搴忓垪鍙� : {{headContent.sfcCode}}</span> <!-- <el-input v-model="content" style="float: right;width: 150px;" placeholder="璇疯緭鍏ュ唴瀹�"></el-input>--> @@ -214,6 +227,17 @@ name: "stationTerminal", data() { return { + selectProductCode: 'PE01B', + options: [{ + value: 'PE01B', + label: 'PE01B' + }, { + value: 'PE01F', + label: 'PE01F' + }, { + value: 'PE01H', + label: 'PE01H' + }], showInput: true, serialPortContent: '', // 鏌ヨ鍙傛暟 @@ -263,8 +287,9 @@ }, content: '', activeName: 'first', - url: "ws://10.103.210.248:8080/websocket/message/", - // url: "ws://192.168.2.76:8080/websocket/message/", + // url: "ws://192.168.2.248:8080/websocket/message/", + // url: "ws://10.103.210.248:8080/websocket/message/", + url: "ws://192.168.2.76:8080/websocket/message/", message: "", text_content: "", ws: null, @@ -362,7 +387,7 @@ scanBarcode: value, sfcBarcode: this.headContent.sfcCode, workOrderNo: this.workpieceInformation.workOrderNo, - productCode: "PE01B", + productCode: this.selectProductCode, locationCode: this.headContent.processesCode, collectionTime: new Date() } @@ -380,7 +405,7 @@ }, /** 鏌ヨ閰嶆柟閰嶇疆瀛愪俊鎭垪琛� */ getListFormulaChild() { - this.formulaChildParams.productCode = "PE01B" + this.formulaChildParams.productCode = this.selectProductCode this.formulaChildParams.processesCode = this.headContent.processesCode console.log(this.formulaChildParams) noPageListFormulaChild(this.formulaChildParams).then(response => { @@ -414,7 +439,7 @@ }, clearClick(){ const param = { - productCode: '1P102S', + productCode: this.selectProductCode, locationCode: this.headContent.processesCode, } clearWorkpieceRelease(param).then(response => {}); @@ -435,6 +460,7 @@ /** 鏌ヨ宸ュ崟鍒楄〃 */ async getList() { const param = { + productCode: this.selectProductCode, processesCode: this.headContent.processesCode, } fistSetpNumber(param).then(response => {}); @@ -493,7 +519,7 @@ this.ws = new WebSocket(wsuri); const self = this; this.ws.onopen = function (event) { - this.$message('websocket杩炴帴鎴愬姛锛�'); + self.$message('websocket杩炴帴鎴愬姛锛�'); }; this.ws.onmessage = function (event) { if(event.data.includes("[")) { @@ -513,7 +539,7 @@ tightenTheArray: event.data, paramCode: formulaChilds.paramCode, // workOrderNo: self.workpieceInformation.workOrderNo, - // productCode: "1P102S", + productCode: self.selectProductCode, locationCode: self.headContent.processesCode, productBarcode: self.headContent.sfcCode, spareField2: formulaChilds.spareField2, @@ -540,9 +566,13 @@ self.getListFormulaChild() }else { const param = { + id: formulaChilds.id, locationCode: self.headContent.processesCode, productBarcode: self.headContent.sfcCode, - inboundTime: self.headContent.inboundTime + inboundTime: self.headContent.inboundTime, + productCode: self.selectProductCode, + workOrderNo: "-", + } preInstallOut(param).then(response => {}); workpieceRelease(param).then(response => {}); @@ -571,9 +601,14 @@ console.log(scanValue) this.serialPortMethod(scanValue) } else { - this.headContent.sfcCode = scanValue; - this.headContent.inboundTime = this.getCurrentTime(); - this.getList() + if(scanValue.includes("P9900183275") || scanValue.includes("P9900173252")){ + this.headContent.sfcCode = scanValue; + this.headContent.inboundTime = this.getCurrentTime(); + this.getList() + }else { + this.$message.error('鎬绘垚鐮佹壂鎻忛敊璇紒'); + } + } } -- Gitblit v1.9.3