| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row v-show="orderFlag" style="margin-top: 20px"> |
| | | <el-button @click="getWorkOrders" type="warning" size="mini">接收工单</el-button> |
| | | <!-- <el-button @click="getWorkOrders" type="warning" size="mini">接收工单</el-button>--> |
| | | </el-row> |
| | | </el-card> |
| | | |
| | |
| | | this.setFocus(); |
| | | this.materialCode=""; |
| | | }, |
| | | getWorkOrders(){ |
| | | if(this.headContent.sfcCode === '' || this.headContent.sfcCode === null){ |
| | | //接收工单 |
| | | const param = { |
| | | lineCode: this.headContent.processesCode |
| | | } |
| | | mozuReceivingWorkOrders(param).then(response => { |
| | | this.headContent.sfcCode = response.msg; |
| | | this.queryParams.productNum = response.msg; |
| | | this.getList() |
| | | this.cakeLamp.scanFinish = 1 |
| | | this.cakeLamp.startWork = 1 |
| | | this.cakeLamp.InPlace = 1 |
| | | }); |
| | | }else { |
| | | this.$message.error("已经有工单了,不能接收!"); |
| | | } |
| | | }, |
| | | // getWorkOrders(){ |
| | | // if(this.headContent.sfcCode === '' || this.headContent.sfcCode === null){ |
| | | // //接收工单 |
| | | // const param = { |
| | | // lineCode: this.headContent.processesCode |
| | | // } |
| | | // mozuReceivingWorkOrders(param).then(response => { |
| | | // this.headContent.sfcCode = response.msg; |
| | | // this.queryParams.productNum = response.msg; |
| | | // this.getList() |
| | | // this.cakeLamp.scanFinish = 1 |
| | | // this.cakeLamp.startWork = 1 |
| | | // this.cakeLamp.InPlace = 1 |
| | | // }); |
| | | // }else { |
| | | // this.$message.error("已经有工单了,不能接收!"); |
| | | // } |
| | | // }, |
| | | serialLink() { |
| | | this.open1 = true |
| | | }, |
| | |
| | | }); |
| | | this.getListFormulaChild() |
| | | this.workpieceInformation.inboundTime = this.getCurrentTime() |
| | | |
| | | }, |
| | | |
| | | initializedData(){ |
| | |
| | | self.cakeLamp.startWork = 1 |
| | | self.cakeLamp.InPlace = 1 |
| | | |
| | | const param = { |
| | | processesCode: self.headContent.processesCode, |
| | | productCode: self.workpieceInformation.productCode |
| | | } |
| | | fistSetpNumber(param).then(response => { |
| | | console.log("fistSetpNumber------"+response.msg) |
| | | }); |
| | | |
| | | }else if (event.data.includes("[")) {//拧紧 |
| | | let formulaChilds = ""; |
| | | self.formulaChildList.sort((a, b) => a.stepSort - b.stepSort); |