| | |
| | | import {listWorkReport} from "@/api/main/om/workReport/workReport"; |
| | | import {listStationConf,getIpv4} from "@/api/main/sc/stationConf"; |
| | | import { |
| | | jrmUpdateResults, |
| | | jrmUpdateResults, jrmWorkpieceRelease, |
| | | listFormulaChild, |
| | | noPageListFormulaChild, |
| | | releaseCheck, |
| | |
| | | serialLink() { |
| | | this.open1 = true |
| | | }, |
| | | bindYzSfc(){ |
| | | if(this.headContent.sfcCode!==""&&this.headContent.yzSfcCode!==""){ |
| | | let param = { |
| | | sfcCode: this.headContent.sfcCode, |
| | | locationCode: this.headContent.processesCode, |
| | | yzSfcCode: this.headContent.yzSfcCode |
| | | } |
| | | this.$message('可以绑定!'); |
| | | replaceAssemblyCode(param).then(response => { |
| | | |
| | | }); |
| | | } |
| | | }, |
| | | Release(){ |
| | | // this.$message('portsList!'+this.portsList.length); |
| | | if(this.btnType === "danger"){ |
| | |
| | | this.workpieceInformation.productModel = null; |
| | | this.workpieceInformation.productName = null; |
| | | this.headContent.sfcCode = ''; |
| | | this.headContent.moduleB = ''; |
| | | this.headContent.moduleA = ''; |
| | | }, |
| | | changeMenu(tab, event) { |
| | | console.log(tab, event); |
| | | }, |
| | | clearClick(){ |
| | | this.$message('这是一条清除消息提示'); |
| | | this.headContent.sfcCode = null |
| | | const param = { |
| | | workOrderNo: this.workpieceInformation.workOrderNo, |
| | | productCode: "1P102S", |
| | | locationCode: this.headContent.processesCode, |
| | | productBarcode: this.headContent.moduleA+','+this.headContent.moduleB, |
| | | } |
| | | jrmSaveCampaignTimeParameters(param).then(response => {}); |
| | | this.cakeLamp.release = 1; |
| | | this.endClear() |
| | | // workpieceRelease(param).then(response => {}); |
| | | jrmWorkpieceRelease(param).then(response => {}); |
| | | // this.$message('这是一条清除消息提示'); |
| | | // this.headContent.sfcCode = null |
| | | }, |
| | | scanCompleted(){ |
| | | this.$message('扫码完成'+this.content); |
| | |
| | | } else if (event.data === "END") { |
| | | const param = { |
| | | workOrderNo: self.workpieceInformation.workOrderNo, |
| | | productCode: self.workpieceInformation.productCode, |
| | | productCode: "1P102S", |
| | | locationCode: self.headContent.processesCode, |
| | | productBarcode: self.headContent.sfcCode, |
| | | productBarcode: self.headContent.moduleA+','+self.headContent.moduleB, |
| | | } |
| | | jrmSaveCampaignTimeParameters(param).then(response => {}); |
| | | self.cakeLamp.release = 1; |
| | | self.endClear() |
| | | workpieceRelease(param).then(response => {}); |
| | | // workpieceRelease(param).then(response => {}); |
| | | jrmWorkpieceRelease(param).then(response => {}); |
| | | } else if (event.data.includes("[")) { |
| | | let formulaChilds = ""; |
| | | self.formulaChildList.sort((a, b) => a.stepSort - b.stepSort); |
| | |
| | | this.headContent.moduleB = scanValue; |
| | | this.$message('扫码识别产品序列号'+scanValue); |
| | | this.getList() |
| | | this.cakeLamp.InPlace = 1 |
| | | // this.cakeLamp.InPlace = 1 |
| | | this.cakeLamp.scanFinish = 1 |
| | | this.cakeLamp.startWork = 1 |
| | | } |