| | |
| | | <el-descriptions-item label="工单编号"> |
| | | <span>{{workpieceInformation.workOrderNo}}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="物料编码"> |
| | | <span>{{workpieceInformation.materialCode}}</span> |
| | | <el-descriptions-item label="产品编码"> |
| | | <span>{{workpieceInformation.productCode}}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="计划数量"> |
| | | <span>{{workpieceInformation.planQty}}</span> |
| | |
| | | <div style="text-align: center;margin-top: 64px"> |
| | | <span style="font-size: 29px;">电驱系统总成</span> |
| | | </div> |
| | | <div style="display: flex;margin-top: 2px;margin-left: 37px;font-size: 15px"> |
| | | <div style="display: flex;margin-top: 2px;margin-left: 39px;font-size: 15px"> |
| | | <div class="div1"> |
| | | <div > |
| | | <span>电机型号:</span><span>TZ180XSDSZX01</span><br> |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="div2" style="font-size: 15px;margin-left: 17px"> |
| | | <div class="div2" style="font-size: 15px;margin-left: 4px"> |
| | | <div> |
| | | <span>控制器型号:</span><span>KTZ34X23SZX07</span><br> |
| | | </div> |
| | |
| | | <span>最高转速:</span><span>12000rpm</span><br> |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span>防护等级:</span><span>IP68</span><br> |
| | | <span>防护等级:</span><span>IP67</span><br> |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span>峰值工作电流:</span><span>230A</span><br> |
| | |
| | | <span>绝缘等级:</span><span>H</span><br> |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span>出厂编号:</span><span>2407190000002</span><br> |
| | | <span>出厂编号:</span><span>{{headContent.sfcCode}}</span><br> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div style="margin-top: 2px;margin-left: 80px"> |
| | | <span style="font-size: 29px;">湖州智芯动力发展有限公司</span> |
| | | <div style="margin-top: 2px;margin-left: 70px"> |
| | | <span style="font-size: 26px;">湖州智芯动力系统发展有限公司</span> |
| | | </div> |
| | | |
| | | |
| | | <div style="text-align: center;margin-top: 97px;font-size: 20px"> |
| | | <div style="text-align: center;margin-top: 101px;font-size: 20px"> |
| | | <div style="margin-top: 8px"> |
| | | <span style="font-size: 22px">TZ180XSDSZX01</span><br> |
| | | |
| | |
| | | |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span style="font-size: 22px">993083</span><br> |
| | | <span style="font-size: 22px">993983</span><br> |
| | | |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span style="font-size: 22px">9900166410</span><br> |
| | | <span style="font-size: 22px">9900200461</span><br> |
| | | |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span style="font-size: 22px">2407190000002</span> |
| | | <span style="font-size: 22px">{{headContent.sfcCode}}</span> |
| | | |
| | | </div> |
| | | </div> |
| | | |
| | | <div style="margin-top: 56px;display: flex;margin-left: 32px"> |
| | | <div ref="canvasWrapper" id="canvasWrapper1" style="width: 30%;flex: 1"></div> |
| | | <div style="width: 70%;flex: 1;margin-top: 18px;margin-right: 26px"> |
| | | <span style="margin-left: -80px;font-size: 19px;font-family: FangSong"> |
| | | P9900166410#T{{headContent.sfcCode}} |
| | | <div style="margin-top: 61px;display: flex;margin-left: 40px"> |
| | | <div style="width: 30%;flex: 1"> |
| | | <VueQr :size='80' :margin='0' :text='this.text'></VueQr> |
| | | </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"> |
| | | P9900200461#T{{headContent.sfcCode}} |
| | | </span><br> |
| | | <span style="margin-left: -80px;font-size: 19px;font-family: FangSong"> |
| | | <span style="margin-left: -80px;font-size: 20px;font-family: FangSong;letter-spacing: -0.8px"> |
| | | #V993983#SSW002.005#HHW001.001#NMCU |
| | | </span> |
| | | <!-- <span style="font-size: 10px;word-break: break-all;display: flex;justify-content: center;width: 155px;margin-left: 9px">P9900166410#T{{text1}}#V993983#SSW002.005#HHW001.001#NBMS#</span>--> |
| | | </div> |
| | | </div> |
| | | |
| | | <div style="margin-top: 42px;display: flex;margin-left: 32px"> |
| | | <div ref="canvasWrapper" id="canvasWrapper2" style="width: 30%;flex: 1"></div> |
| | | <div style="width: 70%;flex: 1;margin-top: 18px;margin-right: 26px"> |
| | | <span style="margin-left: -80px;font-size: 19px;font-family: FangSong"> |
| | | P9900166410#T{{headContent.sfcCode}} |
| | | <div style="margin-top: 48px;display: flex;margin-left: 40px"> |
| | | <div style="width: 30%;flex: 1"> |
| | | <VueQr :size='80' :margin='0' :text='this.text'></VueQr> |
| | | </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"> |
| | | P9900200461#T{{headContent.sfcCode}} |
| | | </span><br> |
| | | <span style="margin-left: -80px;font-size: 19px;font-family: FangSong"> |
| | | <span style="margin-left: -80px;font-size: 20px;font-family: FangSong;letter-spacing: -0.8px"> |
| | | #V993983#SSW002.005#HHW001.001#NMCU |
| | | </span> |
| | | <!-- <span style="font-size: 10px;word-break: break-all;display: flex;justify-content: center;width: 155px;margin-left: 9px">P9900166410#T{{text1}}#V993983#SSW002.005#HHW001.001#NBMS#</span>--> |
| | | </div> |
| | | </div> |
| | | |
| | | <div style="text-align: center;margin-left: -190px;margin-top: 45px"> |
| | | <div style="text-align: center;margin-left: -190px;margin-top: 35px"> |
| | | <div style="margin-top: 4px"> |
| | | <span>9900200461</span><br> |
| | | </div> |
| | |
| | | bindYzSfcFlag, |
| | | checkCarCode, checkYzSfcCode, |
| | | findBytrolleyYardGetOne, |
| | | listProductionOrde, mozuReceivingWorkOrders, |
| | | listProductionOrde, listProductionOrdeLoopLine, mozuReceivingWorkOrders, |
| | | receivingWorkOrders, |
| | | trolleyYardBinDing |
| | | } from "@/api/main/om/productionOrde/productionOrde"; |
| | |
| | | } from "@/api/main/da/paramCollection/paramCollection"; |
| | | import {addFormula} from "@/api/main/bs/formula/formula"; |
| | | import QRCode from "qrcodejs2"; |
| | | import VueQr from "vue-qr"; |
| | | |
| | | export default { |
| | | components: { |
| | | VueQr |
| | | }, |
| | | name: "stationTerminal", |
| | | data() { |
| | | return { |
| | | text: 'P9900200461#T2408170000004#V993983#SSW001.001#HHW001.001#NMCU', |
| | | materialCode: '', // 物料编码 |
| | | carCode: '', |
| | | showInput: false, |
| | |
| | | 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: {}, |
| | |
| | | console.log(tab, event); |
| | | }, |
| | | handleEnter() { |
| | | console.log("物料码:"+this.materialCode); |
| | | if(this.materialCode.includes("9900200461") || this.materialCode.includes("9900207783")){ |
| | | 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.processesCode === "OP230" |
| | | ){ |
| | | if(this.materialCode.length>30){ |
| | | 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 |
| | |
| | | this.cakeLamp.InPlace = 1 |
| | | const param = { |
| | | processesCode: this.headContent.processesCode, |
| | | productCode: this.workpieceInformation.productCode |
| | | productCode: this.workpieceInformation.productCode, |
| | | sfcBarcode:code, |
| | | } |
| | | fistSetpNumber(param).then(response => { |
| | | console.log("fistSetpNumber------"+response.msg) |
| | | }); |
| | | this.$message("扫描物料编码"+this.materialCode); |
| | | this.setFocus(); |
| | | this.materialCode=""; |
| | | this.setFocus(); |
| | | }else{ |
| | | this.$message("扫描物料编码错误!"+this.materialCode); |
| | | this.materialCode=""; |
| | | this.setFocus(); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | } |
| | | }, |
| | | // 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 |
| | | }, |
| | |
| | | }, |
| | | /** 查询工单列表 */ |
| | | async getList() { |
| | | await listProductionOrde(this.queryParams).then(response => { |
| | | await listProductionOrdeLoopLine(this.queryParams).then(response => { |
| | | let rowsData = response.rows[0]; |
| | | console.log(rowsData) |
| | | this.workpieceInformation.workOrderNo = rowsData.workOrderNo; |
| | | this.workpieceInformation.productCode = rowsData.productCode; |
| | | this.workpieceInformation.materialCode = rowsData.materialCode; |
| | | this.workpieceInformation.planQty = rowsData.planQty; |
| | | this.headContent.cardCode = rowsData.trolleyYard; |
| | | 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.processesCode === 'OP230' |
| | | ){ |
| | | this.headContent.sfcCode = rowsData.productNum |
| | | } |
| | | this.workpieceInformation.workOrderNo = rowsData.workOrderNo; |
| | | this.workpieceInformation.productCode = rowsData.productCode; |
| | | this.workpieceInformation.materialCode = rowsData.materialCode; |
| | | this.workpieceInformation.planQty = rowsData.planQty; |
| | | this.headContent.cardCode = rowsData.trolleyYard; |
| | | this.getListFormulaChild() |
| | | this.workpieceInformation.inboundTime = this.getCurrentTime() |
| | | }else { |
| | | this.$message.error('系统没有此工单,请重新扫码!'); |
| | | } |
| | | }); |
| | | this.getListFormulaChild() |
| | | this.workpieceInformation.inboundTime = this.getCurrentTime() |
| | | |
| | | }, |
| | | |
| | | initializedData(){ |
| | |
| | | this.cakeLamp.scanFinish = 1 |
| | | this.cakeLamp.startWork = 1 |
| | | this.cakeLamp.InPlace = 1 |
| | | // this.test1() |
| | | // this.test2() |
| | | this.text = 'P9900200461#T'+this.headContent.sfcCode+'#V993983#SSW001.001#HHW001.001#NMCU' |
| | | } |
| | | }); |
| | | }, |
| | |
| | | let qrCode = new QRCode('canvasWrapper1',{ |
| | | width: 83, |
| | | height: 83, |
| | | text: 'P9900166410#T'+ this.headContent.sfcCode +'#V993983#SSW002.005#HHW001.001#NMCU#', |
| | | text: 'P9900200461#T'+this.headContent.sfcCode+'#V993983#SSW001.001#HHW001.001#NMCU', |
| | | colorDark: '#000', |
| | | colorLight: '#fff' |
| | | }) |
| | |
| | | let qrCode = new QRCode('canvasWrapper2',{ |
| | | width: 83, |
| | | height: 83, |
| | | text: 'P9900166410#T'+ this.headContent.sfcCode +'#V993983#SSW002.005#HHW001.001#NMCU#', |
| | | text: 'P9900200461#T'+this.headContent.sfcCode+'#V993983#SSW001.001#HHW001.001#NMCU', |
| | | colorDark: '#000', |
| | | colorLight: '#fff' |
| | | }) |
| | |
| | | //socket从后台向前台推送数据 |
| | | this.ws.onmessage = function (event) { |
| | | if (event.data === "print") { |
| | | self.$message('postman调用打印方法打印!'); |
| | | document.getElementById('print').click(); |
| | | unfinishedProcess({processesCode: self.headContent.processesCode,recordDataDone: 21}).then(response => {}); |
| | | }else if (event.data === "IN") { |
| | | self.cakeLamp.InPlace = 1; |
| | | }else if(event.data === "twoHundredAndThirtyEND"){ |
| | | self.endClear() |
| | | } else if (event.data === "OUT") { |
| | | self.cakeLamp.release = 1; |
| | | } else if (event.data === "END") { |
| | |
| | | |
| | | } else if(event.data.includes("productNum")){//产品序列号 |
| | | let productNum = event.data.split(',')[1]; |
| | | self.headContent.sfcCode = productNum; |
| | | 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; |
| | | } |
| | | self.queryParams.productNum = productNum; |
| | | self.getList() |
| | | self.cakeLamp.scanFinish = 1 |
| | |
| | | |
| | | //打印 |
| | | if(self.headContent.processesCode === "OP165"){ |
| | | self.test1() |
| | | self.test2() |
| | | // self.test1() |
| | | // self.test2() |
| | | self.text = 'P9900200461#T'+self.headContent.sfcCode+'#V993983#SSW002.005#HHW001.001#NMCU#' |
| | | } |
| | | |
| | | }else if (event.data.includes("[")) {//拧紧 |