| | |
| | | <span> 允许放行</span> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row v-show="printFlag" style="margin-top: 20px"> |
| | | <el-button id="print" v-print="'#printMe'" type="primary">打印</el-button> |
| | | <div style="display: none"> |
| | | <div id="printMe"> |
| | | <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 class="div1"> |
| | | <div > |
| | | <span>电机型号:</span><span>TZ180XSDSZX01</span><br> |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span>额定功率:</span><span>30KW</span><br> |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span>额定扭矩:</span><span>70N.m</span><br> |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span>额定电压:</span><span>336VDS</span><br> |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span>额工作制:</span><span>S9</span><br> |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span>持续工作电流:</span><span>115A</span><br> |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span>相数:</span><span>3</span><br> |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span>零件号:</span><span>9900200461</span><br> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="div2" style="font-size: 15px;margin-left: 17px"> |
| | | <div> |
| | | <span>控制器型号:</span><span>KTZ34X23SZX07</span><br> |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span>峰值功率:</span><span>60KW</span><br> |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span>峰值转矩:</span><span>175N.m</span><br> |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span>最高转速:</span><span>12000rpm</span><br> |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span>防护等级:</span><span>IP68</span><br> |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span>峰值工作电流:</span><span>230A</span><br> |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span>绝缘等级:</span><span>H</span><br> |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span>出厂编号:</span><span>2407190000002</span><br> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div style="margin-top: 2px;margin-left: 80px"> |
| | | <span style="font-size: 29px;">湖州智芯动力发展有限公司</span> |
| | | </div> |
| | | |
| | | |
| | | <div style="text-align: center;margin-top: 97px;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">KTZ34X23SZX07</span><br> |
| | | |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span style="font-size: 22px">993083</span><br> |
| | | |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span style="font-size: 22px">9900166410</span><br> |
| | | |
| | | </div> |
| | | <div style="margin-top: 4px"> |
| | | <span style="font-size: 22px">2407190000002</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}} |
| | | </span><br> |
| | | <span style="margin-left: -80px;font-size: 19px;font-family: FangSong"> |
| | | #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}} |
| | | </span><br> |
| | | <span style="margin-left: -80px;font-size: 19px;font-family: FangSong"> |
| | | #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="margin-top: 4px"> |
| | | <span>9900200461</span><br> |
| | | </div> |
| | | <div style="margin-top: 8px"> |
| | | <span>MCU</span><br> |
| | | </div> |
| | | <div style="margin-top: 8px"> |
| | | <span>HW 001.001</span><br> |
| | | </div> |
| | | <div style="margin-top: 8px"> |
| | | <span>SW 001.001</span><br> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | </el-row> |
| | | <el-row v-show="orderFlag" style="margin-top: 20px"> |
| | | <!-- <el-button @click="getWorkOrders" type="warning" size="mini">接收工单</el-button>--> |
| | | </el-row> |
| | |
| | | replaceAssemblyCode, checkRecordDataDone, |
| | | } from "@/api/main/da/paramCollection/paramCollection"; |
| | | import {addFormula} from "@/api/main/bs/formula/formula"; |
| | | import QRCode from "qrcodejs2"; |
| | | |
| | | export default { |
| | | name: "stationTerminal", |
| | |
| | | passingStationForm: {}, |
| | | originalArray: [], |
| | | orderFlag: true, |
| | | printFlag: false, |
| | | activeName: 'first', |
| | | |
| | | } |
| | |
| | | locationCode: this.headContent.processesCode, |
| | | productBarcode: this.headContent.sfcCode, |
| | | } |
| | | this.endClear() |
| | | // this.endClear() |
| | | clearWorkpieceRelease(param).then(response => {}); |
| | | this.headContent.sfcCode = '' |
| | | // this.headContent.sfcCode = '' |
| | | this.$message('清除成功!'); |
| | | this.setFocus(); |
| | | this.getList() |
| | | |
| | | }, |
| | | /** 查询工单列表 */ |
| | | async getList() { |
| | |
| | | this.ws = null; |
| | | } |
| | | }, |
| | | test1(){ |
| | | document.getElementById('canvasWrapper1').innerHTML = ''; |
| | | this.$nextTick(() => { |
| | | let qrCode = new QRCode('canvasWrapper1',{ |
| | | width: 83, |
| | | height: 83, |
| | | text: 'P9900166410#T'+ this.headContent.sfcCode +'#V993983#SSW002.005#HHW001.001#NMCU#', |
| | | colorDark: '#000', |
| | | colorLight: '#fff' |
| | | }) |
| | | } |
| | | ) |
| | | }, |
| | | test2(){ |
| | | document.getElementById('canvasWrapper2').innerHTML = ''; |
| | | this.$nextTick(() => { |
| | | let qrCode = new QRCode('canvasWrapper2',{ |
| | | width: 83, |
| | | height: 83, |
| | | text: 'P9900166410#T'+ this.headContent.sfcCode +'#V993983#SSW002.005#HHW001.001#NMCU#', |
| | | colorDark: '#000', |
| | | colorLight: '#fff' |
| | | }) |
| | | } |
| | | ) |
| | | }, |
| | | send() { |
| | | if (this.ws) { |
| | | this.ws.send(this.message); |
| | |
| | | this.headContent.processesName = rows.processesName |
| | | this.headContent.processesCode = rows.processesCode |
| | | this.initializedData() |
| | | if(this.headContent.processesCode === 'OP010'){ |
| | | this.printFlag = true |
| | | } |
| | | |
| | | }); |
| | | console.log('websocket连接工位为' + this.headContent.processesCode) |
| | |
| | | |
| | | //socket从后台向前台推送数据 |
| | | this.ws.onmessage = function (event) { |
| | | if (event.data === "IN") { |
| | | if (event.data === "print") { |
| | | self.$message('postman调用打印方法打印!'); |
| | | document.getElementById('print').click(); |
| | | }else if (event.data === "IN") { |
| | | self.cakeLamp.InPlace = 1; |
| | | } else if (event.data === "OUT") { |
| | | self.cakeLamp.release = 1; |
| | |
| | | fistSetpNumber(param).then(response => { |
| | | console.log("fistSetpNumber------"+response.msg) |
| | | }); |
| | | self.test1() |
| | | self.test2() |
| | | |
| | | }else if (event.data.includes("[")) {//拧紧 |
| | | let formulaChilds = ""; |
| | |
| | | |
| | | </script> |
| | | <style scoped> |
| | | .div1, .div2 { |
| | | flex: 1; /* 两个div平分容器宽度 */ |
| | | } |
| | | .span{ |
| | | font-family: 'Microsoft YaHei', sans-serif; |
| | | } |
| | | .div2{ |
| | | margin-left: 30px; |
| | | } |
| | | .bottom-card{ |
| | | height: 600px; |
| | | } |