| | |
| | | <script> |
| | | import {getIpv4, listStationConf} from "@/api/main/sc/stationConf"; |
| | | import { |
| | | checkMaterialCode, |
| | | clearWorkpieceRelease, |
| | | fistSetpNumber, |
| | | noPageListFormulaChild, |
| | | workpieceRelease, |
| | | yzUpdateResults, |
| | |
| | | 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"){ |
| | |
| | | console.log(tab, event); |
| | | }, |
| | | clearClick(){ |
| | | this.$message('这是一条清除消息提示'); |
| | | this.headContent.sfcCode = null |
| | | const param = { |
| | | productCode: '1P102S', |
| | | locationCode: this.headContent.processesCode, |
| | | } |
| | | clearWorkpieceRelease(param).then(response => {}); |
| | | this.headContent.sfcCode = '' |
| | | this.formulaChildList = []; |
| | | this.$message('清除成功!'); |
| | | }, |
| | | scanCompleted(){ |
| | | this.$message('扫码完成'+this.content); |
| | |
| | | }, |
| | | /** 查询工单列表 */ |
| | | async getList() { |
| | | const param = { |
| | | processesCode: this.headContent.processesCode, |
| | | } |
| | | fistSetpNumber(param).then(response => {}); |
| | | this.getListFormulaChild() |
| | | this.addOverStationCollection() |
| | | }, |
| | |
| | | locationCode: self.headContent.processesCode, |
| | | productBarcode: self.headContent.sfcCode, |
| | | } |
| | | addTighteningParameters(param).then(response => {}); |
| | | yzUpdateTighteningFormula(param).then(response => { |
| | | console.log(response) |
| | | if(response.msg === "1" || response.msg === "3"){ |
| | | self.getListFormulaChild() |
| | | }else { |
| | | const param = { |
| | | workOrderNo: self.workpieceInformation.workOrderNo, |
| | | productCode: "1P102S", |
| | | locationCode: self.headContent.processesCode, |
| | | productBarcode: self.headContent.sfcCode, |
| | | } |
| | | saveCampaignTimeParameters(param).then(response => {}); |
| | | workpieceRelease(param).then(response => {}); |
| | | self.formulaChildList = []; |
| | | self.headContent.sfcCode = ''; |
| | | if(formulaChilds.paramCode === null||formulaChilds.paramCode ===''){ |
| | | self.$message('未找到参数码,请检查参数码是否正确'); |
| | | return; |
| | | } |
| | | if(self.headContent.sfcCode === null||self.headContent.sfcCode ===''){ |
| | | self.$message('未找到总成码,请先扫码!'); |
| | | return; |
| | | } |
| | | checkMaterialCode(param).then(response => { |
| | | if(response.msg === "2"){ |
| | | self.$message('未扫描物料码完毕!'); |
| | | return; |
| | | } |
| | | }); |
| | | // self.getListFormulaChild() |
| | | |
| | | yzUpdateTighteningFormula(param).then(response => { |
| | | console.log(response) |
| | | if(response.msg === "1" || response.msg === "3"){ |
| | | self.getListFormulaChild() |
| | | }else { |
| | | const param = { |
| | | workOrderNo: self.workpieceInformation.workOrderNo, |
| | | productCode: "1P102S", |
| | | locationCode: self.headContent.processesCode, |
| | | productBarcode: self.headContent.sfcCode, |
| | | } |
| | | saveCampaignTimeParameters(param).then(response => {}); |
| | | workpieceRelease(param).then(response => {}); |
| | | self.formulaChildList = []; |
| | | self.headContent.sfcCode = ''; |
| | | } |
| | | }); |
| | | addTighteningParameters(param).then(response => {}); |
| | | // self.getListFormulaChild() |
| | | |
| | | } |
| | | }; |