| | |
| | | }, |
| | | 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 !== ''){ |
| | | // if(this.headContent.processesCode !== '' && this.engravingStatus !== ''){ |
| | | this.queryParams.productNum = this.shellBarcode |
| | | listProductionOrde(this.queryParams).then(response => { |
| | | let rowsData = response.rows[0]; |
| | |
| | | this.$message.error('系统没有此工单,请重新扫码!'); |
| | | } |
| | | }); |
| | | }else { |
| | | this.$message.error("基础参数缺失,请检查工位编号和打刻状态是否已选择!"); |
| | | } |
| | | // } |
| | | // else { |
| | | // this.$message.error("基础参数缺失,请检查工位编号和打刻状态是否已选择!"); |
| | | // } |
| | | }, |
| | | |
| | | |