From 706d57aa682845cf1bc01cbfd1087c4c0f33093f Mon Sep 17 00:00:00 2001 From: admin <15939171744@163.com> Date: 星期二, 12 十一月 2024 09:46:48 +0800 Subject: [PATCH] 优化 --- jcdm-ui/src/views/main/kb/stationTerminal/index.vue | 53 ++++++++++++++++++++++++++++------------------------- 1 files changed, 28 insertions(+), 25 deletions(-) diff --git a/jcdm-ui/src/views/main/kb/stationTerminal/index.vue b/jcdm-ui/src/views/main/kb/stationTerminal/index.vue index 51d25cd..013403d 100644 --- a/jcdm-ui/src/views/main/kb/stationTerminal/index.vue +++ b/jcdm-ui/src/views/main/kb/stationTerminal/index.vue @@ -259,7 +259,7 @@ </div> </div> - <div style="text-align: center;margin-left: -190px;margin-top: 31px"> + <div style="text-align: center;margin-left: -190px;margin-top: 41px"> <div style="margin-top: 4px"> <span>{{printMaterialCode}}</span><br> </div> @@ -451,31 +451,34 @@ this.headContent.processesCode === "OP210" || this.headContent.processesCode === "OP220" || this.headContent.processesCode === "OP230" ){ - if(this.materialCode.length>25){ - let code = this.materialCode.substring(13,26); - // this.headContent.sfcCode = code; - this.queryParams.productNum = code; - this.getList(); - this.cakeLamp.scanFinish = 1 - this.cakeLamp.startWork = 1 - this.cakeLamp.InPlace = 1 - const param = { - processesCode: this.headContent.processesCode, - productCode: this.workpieceInformation.productCode, - sfcBarcode:code, + if(this.materialCode.substring(35,56).includes("SSW001.001#HHW001.001")){ + if(this.materialCode.length>25){ + let code = this.materialCode.substring(13,26); + // this.headContent.sfcCode = code; + this.queryParams.productNum = code; + this.getList(); + this.cakeLamp.scanFinish = 1 + this.cakeLamp.startWork = 1 + this.cakeLamp.InPlace = 1 + const param = { + processesCode: this.headContent.processesCode, + productCode: this.workpieceInformation.productCode, + sfcBarcode:code, + } + fistSetpNumber(param).then(response => { + console.log("fistSetpNumber------"+response.msg) + }); + this.$message("鎵弿鐗╂枡缂栫爜"+this.materialCode); + this.materialCode=""; + this.setFocus(); + }else{ + this.$message("鎵弿鐗╂枡缂栫爜閿欒锛�"+this.materialCode); + this.materialCode=""; + this.setFocus(); } - fistSetpNumber(param).then(response => { - console.log("fistSetpNumber------"+response.msg) - }); - this.$message("鎵弿鐗╂枡缂栫爜"+this.materialCode); - this.materialCode=""; - this.setFocus(); - }else{ - this.$message("鎵弿鐗╂枡缂栫爜閿欒锛�"+this.materialCode); - this.materialCode=""; - this.setFocus(); + }else { + this.$message("鐗堟湰鍙锋牎楠岄敊璇紝璇锋鏌ワ紒"+this.materialCode); } - } }else{ if(this.headContent.sfcCode === '' || this.headContent.sfcCode === null){ @@ -796,7 +799,7 @@ if(self.headContent.processesCode === "OP165"){ // self.test1() // self.test2() - self.text = 'P9900200461#T'+self.headContent.sfcCode+'#V993983#SSW002.005#HHW001.001#NMCU#' + self.text = 'P9900200461#T'+self.headContent.sfcCode+'#V993983#SSW001.001#HHW001.001#NMCU' } }else if (event.data.includes("[")) {//鎷х揣 -- Gitblit v1.9.3