From 75f1ced619b49f354addc1cf8fa1ca320b25edd4 Mon Sep 17 00:00:00 2001 From: admin <15939171744@163.com> Date: 星期二, 17 十二月 2024 14:21:58 +0800 Subject: [PATCH] 优化 --- jcdm-ui/src/views/main/kb/repairOnline/index.vue | 23 +++++++++++++---------- 1 files changed, 13 insertions(+), 10 deletions(-) diff --git a/jcdm-ui/src/views/main/kb/repairOnline/index.vue b/jcdm-ui/src/views/main/kb/repairOnline/index.vue index 8b27010..b0c6d6f 100644 --- a/jcdm-ui/src/views/main/kb/repairOnline/index.vue +++ b/jcdm-ui/src/views/main/kb/repairOnline/index.vue @@ -16,8 +16,8 @@ </el-col> <el-col :span="17"> <el-card shadow="never"> - <span class="head-font">澹充綋缂栫爜 : </span> - <el-input style="width: 40%" ref="inputData" v-model="shellBarcode" @change="handleEnter" placeholder="璇锋壂鎻忓3浣撶紪鐮�"></el-input> + <span class="head-font">浜у搧搴忓垪鍙� : </span> + <el-input style="width: 40%" ref="inputData" v-model="shellBarcode" @change="handleEnter" placeholder="璇锋壂鎻忎骇鍝佸簭鍒楀彿"></el-input> 鏄惁鎵撳埢 : <el-select v-model="engravingStatus" placeholder="璇烽�夋嫨"> <el-option @@ -264,13 +264,15 @@ }, methods: { repairClick(){ - if(this.headContent.processesCode !== '' && this.engravingStatus !== '' && this.headContent.sfcCode !== ''){ + if(this.headContent.processesCode !== '' && this.engravingStatus !== '' && this.shellBarcode !== ''){ writeRepairInformationIntoPlc({ processesCode: this.headContent.processesCode, engravingStatus: this.engravingStatus, - sfcCode: this.headContent.sfcCode, + sfcCode: this.shellBarcode, workOrderNo: this.workpieceInformation.workOrderNo, - }).then(response => {}); + }).then(response => { + this.$message("杩斾慨淇℃伅鍐欏叆鎴愬姛锛�"); + }); }else { this.$message.error("鍩虹鍙傛暟缂哄け锛岃妫�鏌ュ伐浣嶇紪鍙峰拰鎵撳埢鐘舵�佹槸鍚﹀凡閫夋嫨锛�"); } @@ -289,8 +291,8 @@ console.log(tab, event); }, handleEnter() { - if(this.headContent.processesCode !== '' && this.engravingStatus !== ''){ - this.queryParams.trolleyYard = this.shellBarcode + // if(this.headContent.processesCode !== '' && this.engravingStatus !== ''){ + this.queryParams.productNum = this.shellBarcode listProductionOrde(this.queryParams).then(response => { let rowsData = response.rows[0]; if(rowsData){ @@ -303,9 +305,10 @@ this.$message.error('绯荤粺娌℃湁姝ゅ伐鍗曪紝璇烽噸鏂版壂鐮侊紒'); } }); - }else { - this.$message.error("鍩虹鍙傛暟缂哄け锛岃妫�鏌ュ伐浣嶇紪鍙峰拰鎵撳埢鐘舵�佹槸鍚﹀凡閫夋嫨锛�"); - } + // } + // else { + // this.$message.error("鍩虹鍙傛暟缂哄け锛岃妫�鏌ュ伐浣嶇紪鍙峰拰鎵撳埢鐘舵�佹槸鍚﹀凡閫夋嫨锛�"); + // } }, -- Gitblit v1.9.3