| | |
| | | <span style="font-weight: bold">当前工件信息</span> |
| | | </div> |
| | | <el-descriptions :column="1" border :content-style="{'min-width': '140px'}"> |
| | | <!-- <el-descriptions :column="1" :label-style="{'font-size': '15px'}" border :content-style="{'min-width': '150px'}">--> |
| | | <el-descriptions-item label="工单编号"> |
| | | <span>{{workpieceInformation.workOrderNo}}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="产品型号"> |
| | | <span>{{workpieceInformation.productCode}}</span> |
| | | <el-descriptions-item label="物料编码"> |
| | | <span>{{workpieceInformation.materialCode}}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="小车码"> |
| | | <span>{{headContent.cardCode}}</span> |
| | | <el-descriptions-item label="计划数量"> |
| | | <span>{{workpieceInformation.planQty}}</span> |
| | | </el-descriptions-item> |
| | | <!-- <el-descriptions-item label="产品型号">--> |
| | | <!-- <span>{{workpieceInformation.productModel}}</span>--> |
| | | <!-- </el-descriptions-item>--> |
| | | <!-- <el-descriptions-item label="产品名称">--> |
| | | <!-- <span>{{workpieceInformation.productName}}</span>--> |
| | | <!-- </el-descriptions-item>--> |
| | | <el-descriptions-item label="开始时间"> |
| | | <span>{{workpieceInformation.inboundTime}}</span> |
| | | </el-descriptions-item> |
| | |
| | | fistSetpNumber, initializedData, |
| | | listFormulaChild, |
| | | noPageListFormulaChild, |
| | | releaseCheck, |
| | | releaseCheck, unfinishedProcess, |
| | | updateResults, |
| | | updateTighteningFormula, |
| | | workpieceRelease |
| | |
| | | productModel: null, |
| | | productName: null, |
| | | inboundTime: null, |
| | | materialCode: null, |
| | | planQty: null, |
| | | }, |
| | | // 查询参数 |
| | | queryParams: { |
| | |
| | | }, |
| | | content: '', |
| | | activeName: 'first', |
| | | url: "ws://10.103.210.248:8080/websocket/message/", |
| | | // url: "ws://192.168.10.100:8080/websocket/message/", |
| | | // url: "ws://10.103.210.248:8080/websocket/message/", |
| | | url: "ws://192.168.10.100:8080/websocket/message/", |
| | | message: "", |
| | | text_content: "", |
| | | ws: null, |
| | |
| | | this.getList() |
| | | this.cakeLamp.scanFinish = 1 |
| | | this.cakeLamp.startWork = 1 |
| | | this.cakeLamp.InPlace = 1 |
| | | }); |
| | | }else { |
| | | this.$message.error("已经有工单了,不能接收!"); |
| | |
| | | console.log(rowsData) |
| | | this.workpieceInformation.workOrderNo = rowsData.workOrderNo; |
| | | this.workpieceInformation.productCode = rowsData.productCode; |
| | | this.workpieceInformation.productModel = rowsData.productModel; |
| | | this.workpieceInformation.productName = rowsData.productName; |
| | | this.workpieceInformation.materialCode = rowsData.materialCode; |
| | | this.workpieceInformation.planQty = rowsData.planQty; |
| | | this.headContent.cardCode = rowsData.trolleyYard; |
| | | }); |
| | | this.getListFormulaChild() |
| | | // this.addOverStationCollection() |
| | | this.workpieceInformation.inboundTime = this.getCurrentTime() |
| | | const param = { |
| | | processesCode: this.headContent.processesCode, |
| | | } |
| | | fistSetpNumber(param).then(response => { |
| | | console.log("fistSetpNumber------"+response.msg) |
| | | }); |
| | | }, |
| | | |
| | | initializedData(){ |
| | |
| | | this.getList() |
| | | this.cakeLamp.scanFinish = 1 |
| | | this.cakeLamp.startWork = 1 |
| | | this.cakeLamp.InPlace = 1 |
| | | } |
| | | }); |
| | | }, |
| | |
| | | |
| | | if(self.headContent.sfcCode=== ''||self.headContent.sfcCode=== null){ |
| | | self.$message('总成码为空,请扫码!') |
| | | unfinishedProcess({processesCode: self.headContent.processesCode,recordDataDone: 26}).then(response => {}); |
| | | return; |
| | | } |
| | | |
| | | // if(self.headContent.cardCode === null || self.headContent.cardCode === ''){ |
| | | // self.$alert('<strong style="color: red;font-size: 30px">未扫描小车码禁止放行</strong>', '提示', { |
| | | // dangerouslyUseHTMLString: true |
| | | // }); |
| | | // return; |
| | | // } |
| | | |
| | | if(self.formulaChildList[formulaChildIndex].results !== 'OK'){ |
| | | self.$message('未做完工序禁止放行'); |
| | | unfinishedProcess({processesCode: self.headContent.processesCode,recordDataDone: 25}).then(response => {}); |
| | | return; |
| | | } |
| | | |
| | |
| | | self.getList() |
| | | self.cakeLamp.scanFinish = 1 |
| | | self.cakeLamp.startWork = 1 |
| | | self.cakeLamp.InPlace = 1 |
| | | |
| | | } |
| | | }; |
| | | }, |
| | |
| | | console.log("sfc=--"+this.headContent.sfcCode+"--") |
| | | if(this.headContent.sfcCode !== '' && this.headContent.sfcCode !== null |
| | | && this.headContent.sfcCode !== undefined){ |
| | | // if(scanValue.includes("P9900173252")){ |
| | | // this.headContent.yzSfcCode = scanValue |
| | | // this.bindYzSfc(); |
| | | // }else |
| | | if(scanValue.includes("0RSP1TE") && this.headContent.processesCode === 'OP240'){ |
| | | this.headContent.cardCode = scanValue |
| | | this.bindcardCode(scanValue); |
| | |
| | | this.serialPortMethod(scanValue) |
| | | } |
| | | } else { |
| | | if(this.headContent.processesCode === 'OP240'){ |
| | | // if(this.headContent.processesCode === 'OP240'){ |
| | | this.headContent.sfcCode = scanValue; |
| | | this.queryParams.productNum = scanValue; |
| | | this.getList() |
| | | this.cakeLamp.scanFinish = 1 |
| | | this.cakeLamp.startWork = 1 |
| | | }else { |
| | | let param = { |
| | | trolleyYard: scanValue |
| | | } |
| | | findBytrolleyYardGetOne(param).then(response => { |
| | | if(response.msg !== '2'){ |
| | | this.headContent.sfcCode = response.msg; |
| | | this.queryParams.productNum = response.msg; |
| | | this.$message('扫码识别产品序列号'+scanValue); |
| | | this.getList() |
| | | this.cakeLamp.scanFinish = 1 |
| | | this.cakeLamp.startWork = 1 |
| | | }else { |
| | | this.$message('没有序列号'+scanValue); |
| | | return |
| | | } |
| | | }); |
| | | } |
| | | this.cakeLamp.InPlace = 1 |
| | | // }else { |
| | | // let param = { |
| | | // trolleyYard: scanValue |
| | | // } |
| | | // findBytrolleyYardGetOne(param).then(response => { |
| | | // if(response.msg !== '2'){ |
| | | // this.headContent.sfcCode = response.msg; |
| | | // this.queryParams.productNum = response.msg; |
| | | // this.$message('扫码识别产品序列号'+scanValue); |
| | | // this.getList() |
| | | // this.cakeLamp.scanFinish = 1 |
| | | // this.cakeLamp.startWork = 1 |
| | | // this.cakeLamp.InPlace = 1 |
| | | // }else { |
| | | // this.$message('没有序列号'+scanValue); |
| | | // return |
| | | // } |
| | | // }); |
| | | // } |
| | | |
| | | } |
| | | |