From 9f1c50994f0972d595862087ffa977f3701e971b Mon Sep 17 00:00:00 2001 From: admin <15939171744@163.com> Date: 星期五, 20 九月 2024 18:43:33 +0800 Subject: [PATCH] 打印功能修改 --- jcdm-ui/src/views/main/kb/stationTerminal/index.vue | 122 ++++++++++++++++++++++++++++++++-------- 1 files changed, 97 insertions(+), 25 deletions(-) diff --git a/jcdm-ui/src/views/main/kb/stationTerminal/index.vue b/jcdm-ui/src/views/main/kb/stationTerminal/index.vue index 41ba550..bf14582 100644 --- a/jcdm-ui/src/views/main/kb/stationTerminal/index.vue +++ b/jcdm-ui/src/views/main/kb/stationTerminal/index.vue @@ -89,13 +89,13 @@ <span>鐢垫満鍨嬪彿锛�</span><span>TZ180XSDSZX01</span><br> </div> <div style="margin-top: 4px"> - <span>棰濆畾鍔熺巼锛�</span><span>30KW</span><br> + <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> + <span>棰濆畾鐢靛帇锛�</span><span>336VDC</span><br> </div> <div style="margin-top: 4px"> <span>棰濆伐浣滃埗锛�</span><span>S9</span><br> @@ -107,7 +107,7 @@ <span>鐩告暟锛�</span><span>3</span><br> </div> <div style="margin-top: 4px"> - <span>闆朵欢鍙凤細</span><span>9900200461</span><br> + <span>闆朵欢鍙凤細</span><span>{{printMaterialCode}}</span><br> </div> </div> @@ -116,7 +116,7 @@ <span>鎺у埗鍣ㄥ瀷鍙凤細</span><span>KTZ34X23SZX07</span><br> </div> <div style="margin-top: 4px"> - <span>宄板�煎姛鐜囷細</span><span>60KW</span><br> + <span>宄板�煎姛鐜囷細</span><span>60kW</span><br> </div> <div style="margin-top: 4px"> <span>宄板�艰浆鐭╋細</span><span>175N.m</span><br> @@ -157,7 +157,7 @@ </div> <div style="margin-top: 4px"> - <span style="font-size: 22px">9900200461</span><br> + <span style="font-size: 22px">{{printMaterialCode}}</span><br> </div> <div style="margin-top: 4px"> @@ -171,13 +171,43 @@ <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: 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>--> + <span style="margin-left: -122px;font-size: 16px;font-family: FZYaoti;letter-spacing: -0.7px"> + P{{printMaterialCode}} + </span> + <span style="margin-left: -5px;font-size: 19px;font-family: FangSong;letter-spacing: -0.7px"> + # + </span> + <span style="margin-left: -9px;font-size: 16px;font-family: FZYaoti;letter-spacing: -0.7px"> + T{{headContent.sfcCode}} + </span><br> + + <span style="margin-left: -122px;font-size: 19px;font-family: FangSong;letter-spacing: -0.7px"> + # + </span> + <span style="margin-left: -9px;font-size: 16px;font-family: FZYaoti;letter-spacing: -0.7px"> + V993983 + </span> + <span style="margin-left: -4px;font-size: 19px;font-family: FangSong;letter-spacing: -0.7px"> + # + </span> + <span style="margin-left: -10px;font-size: 16px;font-family: FZYaoti;letter-spacing: -0.7px"> + SSW002.005 + </span> + <span style="margin-left: -4px;font-size: 19px;font-family: FangSong;letter-spacing: -0.7px"> + # + </span> + <span style="margin-left: -9px;font-size: 16px;font-family: FZYaoti;letter-spacing: -0.7px"> + HHW001.001 + </span> + <span style="margin-left: -6px;font-size: 19px;font-family: FangSong;letter-spacing: -0.7px"> + # + </span> + <span style="margin-left: -9px;font-size: 16px;font-family: FZYaoti;letter-spacing: -0.7px"> + NMCU + </span> +<!-- <span style="margin-left: -80px;font-size: 19px;font-family: FZYaoti;letter-spacing: -0.8px;font-weight: 100">--> +<!-- #V993983#SSW002.005#HHW001.001#NMCU--> +<!-- </span>--> </div> </div> @@ -186,19 +216,52 @@ <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: 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>--> +<!-- <span style="margin-left: -80px;font-size: 19px;font-family: FZYaoti;letter-spacing: -0.8px;font-weight: 100">--> +<!-- P9900200461#T{{headContent.sfcCode}}--> +<!-- </span><br>--> +<!-- <span style="margin-left: -80px;font-size: 19px;font-family: FZYaoti ;letter-spacing: -0.8px;font-weight: 100">--> +<!-- #V993983#SSW002.005#HHW001.001#NMCU--> +<!-- </span>--> + <span style="margin-left: -122px;font-size: 16px;font-family: FZYaoti;letter-spacing: -0.7px"> + P{{printMaterialCode}} + </span> + <span style="margin-left: -5px;font-size: 19px;font-family: FangSong;letter-spacing: -0.7px"> + # + </span> + <span style="margin-left: -9px;font-size: 16px;font-family: FZYaoti;letter-spacing: -0.7px"> + T{{headContent.sfcCode}} + </span><br> + + <span style="margin-left: -122px;font-size: 19px;font-family: FangSong;letter-spacing: -0.7px"> + # + </span> + <span style="margin-left: -9px;font-size: 16px;font-family: FZYaoti;letter-spacing: -0.7px"> + V993983 + </span> + <span style="margin-left: -4px;font-size: 19px;font-family: FangSong;letter-spacing: -0.7px"> + # + </span> + <span style="margin-left: -10px;font-size: 16px;font-family: FZYaoti;letter-spacing: -0.7px"> + SSW002.005 + </span> + <span style="margin-left: -4px;font-size: 19px;font-family: FangSong;letter-spacing: -0.7px"> + # + </span> + <span style="margin-left: -9px;font-size: 16px;font-family: FZYaoti;letter-spacing: -0.7px"> + HHW001.001 + </span> + <span style="margin-left: -6px;font-size: 19px;font-family: FangSong;letter-spacing: -0.7px"> + # + </span> + <span style="margin-left: -9px;font-size: 16px;font-family: FZYaoti;letter-spacing: -0.7px"> + NMCU + </span> </div> </div> <div style="text-align: center;margin-left: -190px;margin-top: 35px"> <div style="margin-top: 4px"> - <span>9900200461</span><br> + <span>{{printMaterialCode}}</span><br> </div> <div style="margin-top: 8px"> <span>MCU</span><br> @@ -352,6 +415,7 @@ orderFlag: true, printFlag: false, activeName: 'first', + printMaterialCode : '', } }, @@ -538,6 +602,8 @@ this.headContent.cardCode = rowsData.trolleyYard; this.getListFormulaChild() this.workpieceInformation.inboundTime = this.getCurrentTime() + this.printMaterialCode = rowsData.productCode + this.text = 'P'+this.printMaterialCode+'#T'+this.headContent.sfcCode+'#V993983#SSW001.001#HHW001.001#NMCU' }else { this.$message.error('绯荤粺娌℃湁姝ゅ伐鍗曪紝璇烽噸鏂版壂鐮侊紒'); } @@ -550,15 +616,17 @@ } initializedData(param).then(response => { if(response.msg !== ''){ - this.headContent.sfcCode = response.msg; - this.queryParams.productNum = response.msg; + if(this.headContent.processesCode === 'OP165'){ + this.headContent.sfcCode = response.msg.substring(13,26) + }else { + this.headContent.sfcCode = response.msg; + this.queryParams.productNum = response.msg; + } this.getList() 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' + // this.text = 'P9900200461#T'+this.headContent.sfcCode+'#V993983#SSW001.001#HHW001.001#NMCU' } }); }, @@ -635,6 +703,10 @@ this.printFlag = true } + if(this.headContent.processesCode === 'OP250'){ + this.printFlag = true + } + }); console.log('websocket杩炴帴宸ヤ綅涓�' + this.headContent.processesCode) const wsuri = this.url + this.headContent.processesCode; -- Gitblit v1.9.3