| | |
| | | </div> |
| | | <div style="width: 70%;flex: 1;margin-top: 18px;margin-right: 29px"> |
| | | <span style="margin-left: -80px;font-size: 20px;font-family: FangSong;letter-spacing: -0.8px"> |
| | | P9900166410#T{{headContent.sfcCode}} |
| | | P9900200461#T{{headContent.sfcCode}} |
| | | </span><br> |
| | | <span style="margin-left: -80px;font-size: 20px;font-family: FangSong;letter-spacing: -0.8px"> |
| | | #V993983#SSW002.005#HHW001.001#NMCU |
| | |
| | | </div> |
| | | <div style="width: 70%;flex: 1;margin-top: 18px;margin-right: 29px"> |
| | | <span style="margin-left: -80px;font-size: 20px;font-family: FangSong;letter-spacing: -0.8px"> |
| | | P9900166410#T{{headContent.sfcCode}} |
| | | P9900200461#T{{headContent.sfcCode}} |
| | | </span><br> |
| | | <span style="margin-left: -80px;font-size: 20px;font-family: FangSong;letter-spacing: -0.8px"> |
| | | #V993983#SSW002.005#HHW001.001#NMCU |
| | |
| | | bindYzSfcFlag, |
| | | checkCarCode, checkYzSfcCode, |
| | | findBytrolleyYardGetOne, |
| | | listProductionOrde, mozuReceivingWorkOrders, |
| | | listProductionOrde, listProductionOrdeLoopLine, mozuReceivingWorkOrders, |
| | | receivingWorkOrders, |
| | | trolleyYardBinDing |
| | | } from "@/api/main/om/productionOrde/productionOrde"; |
| | |
| | | release: 0 //允许放行 |
| | | }, |
| | | content: '', |
| | | // url: "ws://10.103.210.248:8080/websocket/message/", |
| | | // url: "ws://10.103.214.26:8080/websocket/message/", |
| | | url: "ws://192.168.20.250:8080/websocket/message/", |
| | | |
| | | passingStationForm: {}, |
| | |
| | | ){ |
| | | if(this.materialCode.length>25){ |
| | | let code = this.materialCode.substring(13,26); |
| | | this.headContent.sfcCode = code; |
| | | // this.headContent.sfcCode = code; |
| | | this.queryParams.productNum = code; |
| | | this.getList(); |
| | | this.cakeLamp.scanFinish = 1 |
| | |
| | | }, |
| | | /** 查询工单列表 */ |
| | | async getList() { |
| | | await listProductionOrde(this.queryParams).then(response => { |
| | | await listProductionOrdeLoopLine(this.queryParams).then(response => { |
| | | let rowsData = response.rows[0]; |
| | | if(rowsData){ |
| | | if(this.headContent.processesCode === 'OP170' |
| | | ||this.headContent.processesCode === 'OP180'|| |
| | | this.headContent.processesCode === 'OP190'|| |
| | | this.headContent.processesCode === 'OP200'|| |
| | | this.headContent.processesCode === 'OP210'|| |
| | | this.headContent.processesCode === 'OP220'){ |
| | | this.headContent.sfcCode = rowsData.productNum |
| | | } |
| | | this.workpieceInformation.workOrderNo = rowsData.workOrderNo; |
| | | this.workpieceInformation.productCode = rowsData.productCode; |
| | | this.workpieceInformation.materialCode = rowsData.materialCode; |
| | |
| | | } else if(event.data.includes("productNum")){//产品序列号 |
| | | let productNum = event.data.split(',')[1]; |
| | | if(self.headContent.processesCode === 'OP165'){ |
| | | console.log("进去截取总成码方法165工站原始值是"+productNum+"截取之后的是"+productNum.substring(13,26)) |
| | | self.headContent.sfcCode = productNum.substring(13,26) |
| | | console.log("self.headContent.sfcCode"+self.headContent.sfcCode) |
| | | }else { |
| | | self.headContent.sfcCode = productNum; |
| | | } |
| | |
| | | if(self.headContent.processesCode === "OP165"){ |
| | | // self.test1() |
| | | // self.test2() |
| | | self.text = 'P9900166410#T'+self.headContent.sfcCode+' #V993983#SSW002.005#HHW001.001#NMCU#' |
| | | self.text = 'P9900200461#T'+self.headContent.sfcCode+' #V993983#SSW002.005#HHW001.001#NMCU#' |
| | | } |
| | | |
| | | }else if (event.data.includes("[")) {//拧紧 |