| | |
| | | addParamCollection, |
| | | addTighteningParameters, |
| | | saveCampaignTimeParameters, |
| | | replaceAssemblyCode, checkRecordDataDone, |
| | | replaceAssemblyCode, checkRecordDataDone, enterWeighing, |
| | | } from "@/api/main/da/paramCollection/paramCollection"; |
| | | |
| | | export default { |
| | |
| | | pageSize: 10, |
| | | productCode: null, |
| | | processesCode: null, |
| | | artificialNgFlag: null, |
| | | sfcBarcode: null, |
| | | }, |
| | | // 配方配置子信息表格数据 |
| | | formulaChildList: [], |
| | |
| | | // this.formulaChildList = [] |
| | | this.formulaChildParams.productCode = this.workpieceInformation.productCode |
| | | this.formulaChildParams.processesCode = this.headContent.processesCode |
| | | console.log(this.formulaChildParams) |
| | | if(this.formulaChildParams.artificialNgFlag !== null){ |
| | | this.formulaChildParams.sfcBarcode = this.headContent.sfcCode |
| | | } |
| | | console.log("getListFormulaChild"+this.formulaChildParams.artificialNgFlag) |
| | | noPageListFormulaChild(this.formulaChildParams).then(response => { |
| | | this.formulaChildList = response.rows; |
| | | if (this.formulaChildList.length >0){ |
| | |
| | | this.headContent.sfcCode = ''; |
| | | this.headContent.yzSfcCode = ''; |
| | | this.headContent.cardCode = ''; |
| | | this.formulaChildParams.artificialNgFlag = null |
| | | this.formulaChildParams.sfcBarcode = null |
| | | }, |
| | | changeMenu(tab, event) { |
| | | console.log(tab, event); |
| | |
| | | this.workpieceInformation.productModel = rowsData.productModel; |
| | | this.workpieceInformation.productName = rowsData.productName; |
| | | this.headContent.cardCode = rowsData.trolleyYard; |
| | | this.formulaChildParams.artificialNgFlag = rowsData.artificialNgFlag; |
| | | }); |
| | | this.getListFormulaChild() |
| | | // this.addOverStationCollection() |
| | | this.workpieceInformation.inboundTime = this.getCurrentTime() |
| | | const param = { |
| | | processesCode: this.headContent.processesCode, |
| | | productCode: this.workpieceInformation.productCode |
| | | } |
| | | fistSetpNumber(param).then(response => { |
| | | console.log("fistSetpNumber------"+response.msg) |
| | |
| | | } else if (event.data === "NG") { |
| | | //给plc发下线信号 |
| | | //清除数据 |
| | | this.$confirm('<span style="font-size: 20px;color: red">拧紧超过三次该产品NG下线,请确认!</span>', '通知', { |
| | | self.$confirm('拧紧三次NG,请确认下线!!!', '消息', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | showCancelButton: false, |
| | | type: 'warning' |
| | | }).then(() => { |
| | | self.ngFunction(); |
| | | }) |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '确认成功!' |
| | | }); |
| | | }); |
| | | |
| | | } else if (event.data === "OUT") { |
| | | self.cakeLamp.release = 1; |
| | |
| | | inboundTime: self.workpieceInformation.inboundTime, |
| | | formulaChildEntity: self.formulaChildList[formulaChildIndex] |
| | | } |
| | | |
| | | // if(param.locationCode === 'POP430'){ |
| | | // let enterWeighingparam = { |
| | | // sfcCode: param.productBarcode, |
| | | // } |
| | | // enterWeighing(enterWeighingparam).then(response => { |
| | | // }); |
| | | // } |
| | | |
| | | console.log("进入最终方法") |
| | | self.endSaveData(param) |
| | |
| | | self.$message('未找到参数码,请检查参数码是否正确'); |
| | | return; |
| | | } |
| | | self.formulaChildParams.artificialNgFlag = null |
| | | console.log("self.formulaChildParams.artificialNgFlag"+self.formulaChildParams.artificialNgFlag) |
| | | if(self.headContent.sfcCode!==null||self.headContent.sfcCode!==''){ |
| | | updateTighteningFormula(param).then(response => { |
| | | //addTighteningParameters(param).then(response => {}); |