| | |
| | | import {listWorkReport} from "@/api/main/om/workReport/workReport"; |
| | | import {listStationConf,getIpv4} from "@/api/main/sc/stationConf"; |
| | | import { |
| | | clearWorkpieceRelease, |
| | | clearWorkpieceRelease, inPlaceInspection, |
| | | jrmUpdateResults, jrmWorkpieceRelease, |
| | | listFormulaChild, |
| | | noPageListFormulaChild, |
| | |
| | | }, |
| | | content: '', |
| | | activeName: 'first', |
| | | url: "ws://10.103.210.248:8080/websocket/message/", |
| | | // url: "ws://192.168.2.76:8080/websocket/message/", |
| | | // url: "ws://192.168.2.248:8080/websocket/message/", |
| | | // url: "ws://10.103.210.248:8080/websocket/message/", |
| | | url: "ws://192.168.2.76:8080/websocket/message/", |
| | | message: "", |
| | | text_content: "", |
| | | ws: null, |
| | |
| | | let formulaChildParams = { |
| | | scanBarcode: value, |
| | | sfcBarcode: this.headContent.module, |
| | | // workOrderNo: this.workpieceInformation.workOrderNo, |
| | | // workOrderNo: '-', |
| | | productCode: 'PE01B', |
| | | locationCode: this.headContent.processesCode, |
| | | collectionTime: new Date() |
| | |
| | | } |
| | | this.headContent.processesName = rows.processesName |
| | | this.headContent.processesCode = rows.processesCode |
| | | if(this.headContent.processesCode === 'OP240'){ |
| | | this.onLineBinDing = true |
| | | } |
| | | if(this.headContent.processesCode === 'OP260'){ |
| | | this.showInput = true |
| | | } |
| | | |
| | | inPlaceInspection({processesCode: this.headContent.processesCode}).then(response => { |
| | | console.log(response) |
| | | this.cakeLamp.InPlace = response.data |
| | | }); |
| | | |
| | | console.log('设置工位编码' + this.headContent.processesCode) |
| | | }); |
| | |
| | | productCode: "PE01B", |
| | | locationCode: self.headContent.processesCode, |
| | | productBarcode: self.headContent.module, |
| | | inboundTime: self.workpieceInformation.inboundTime |
| | | inboundTime: self.workpieceInformation.inboundTime, |
| | | workOrderNo: '-' |
| | | } |
| | | jrmSaveCampaignTimeParameters(param).then(response => {}); |
| | | self.cakeLamp.release = 1; |
| | |
| | | console.log("串口收到数据-------------------"+scanValue) |
| | | |
| | | if(this.headContent.module !== ''){ |
| | | console.log('this.headContent.module !== \'\' true') |
| | | this.$message('扫码模组物料码'+scanValue); |
| | | this.serialPortMethod(scanValue) |
| | | } else { |
| | | if(scanValue.includes("9900168136")){ |
| | | console.log('this.headContent.module !== \'\' false') |
| | | if(scanValue.includes("0RSMB")){ |
| | | this.headContent.module = scanValue; |
| | | this.$message('扫码识别产品序列号'+scanValue); |
| | | this.getList() |
| | | // this.cakeLamp.InPlace = 1 |
| | | this.cakeLamp.scanFinish = 1 |
| | | this.cakeLamp.startWork = 1 |
| | | }else { |
| | | this.$message.error('扫码识别错误的产品序列号'+scanValue+'请重新扫码'); |
| | | } |
| | | } |
| | | } |