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 | 46 +++++++++++++++++++++++++++++++++++++--------- 1 files changed, 37 insertions(+), 9 deletions(-) diff --git a/jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue b/jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue index 49ea7ba..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: '', // 鏌ヨ鍙傛暟 @@ -363,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() } @@ -381,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 => { @@ -415,7 +439,7 @@ }, clearClick(){ const param = { - productCode: 'PE01B', + productCode: this.selectProductCode, locationCode: this.headContent.processesCode, } clearWorkpieceRelease(param).then(response => {}); @@ -436,6 +460,7 @@ /** 鏌ヨ宸ュ崟鍒楄〃 */ async getList() { const param = { + productCode: this.selectProductCode, processesCode: this.headContent.processesCode, } fistSetpNumber(param).then(response => {}); @@ -494,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("[")) { @@ -514,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, @@ -541,10 +566,13 @@ self.getListFormulaChild() }else { const param = { + id: formulaChilds.id, locationCode: self.headContent.processesCode, productBarcode: self.headContent.sfcCode, inboundTime: self.headContent.inboundTime, - productCode: "PE01B" + productCode: self.selectProductCode, + workOrderNo: "-", + } preInstallOut(param).then(response => {}); workpieceRelease(param).then(response => {}); -- Gitblit v1.9.3