| | |
| | | </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="请扫描壳体编码"></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 |
| | |
| | | }, |
| | | 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("基础参数缺失,请检查工位编号和打刻状态是否已选择!"); |
| | | } |
| | |
| | | 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){ |
| | |
| | | this.$message.error('系统没有此工单,请重新扫码!'); |
| | | } |
| | | }); |
| | | }else { |
| | | this.$message.error("基础参数缺失,请检查工位编号和打刻状态是否已选择!"); |
| | | } |
| | | // } |
| | | // else { |
| | | // this.$message.error("基础参数缺失,请检查工位编号和打刻状态是否已选择!"); |
| | | // } |
| | | }, |
| | | |
| | | |