From 2a282c5b63090359f5f63bdfb74bb69d54f25c89 Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 9 Jan 2025 13:29:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:mlobw=E7=BC=96=E8=BE=91=E6=97=B6=E4=BC=A0?= =?UTF-8?q?=E5=8F=82=E8=B0=83=E6=95=B4=E4=BB=A5=E5=8F=8A=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E9=A2=86=E6=96=99=E6=97=B6=E7=89=A9=E6=96=99=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E7=9A=84=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/mioitem.vue | 30 ++++++ src/views/wpm_bx/mlogbw_check.vue | 155 +++++++++++++++++++++++------- 2 files changed, 152 insertions(+), 33 deletions(-) diff --git a/src/views/inm/mioitem.vue b/src/views/inm/mioitem.vue index 360649aa..29d06503 100644 --- a/src/views/inm/mioitem.vue +++ b/src/views/inm/mioitem.vue @@ -200,6 +200,13 @@ > 删除 + + 物料标签 + @@ -413,6 +420,29 @@ export default { that.printVisible = true; }) },//打印 + //打印物料标签 + printMaterial(row){ + let that = this; + that.apiObj.req({tid:row.id}).then((res) => { + let code = res.code_label; + let str = [ + "SIZE 40 mm,70 mm", + "GAP 7 mm,7 mm", + "CLS", + "REFERENCE 0,0", + 'QRCODE 30,400,H,5,A,0,"' +code +'"', + "WINTEXT 200,550,28,90,0,0,Simhei," + res.material_name, + "WINTEXT 240,550,28,90,0,0,Simhei," + res.batch, + "PRINT 1", + ]; + let obj = {}; + obj.printer_commands = str; + obj.printer_name = that.printer_name; + that.$API.wpm.prints.req(obj).then((response) => { + that.$message.success("打印成功"); + }); + }) + }, }, }; diff --git a/src/views/wpm_bx/mlogbw_check.vue b/src/views/wpm_bx/mlogbw_check.vue index 5e515083..fcbb153d 100644 --- a/src/views/wpm_bx/mlogbw_check.vue +++ b/src/views/wpm_bx/mlogbw_check.vue @@ -18,21 +18,21 @@ {{ scope.row.number }} + - - - + + @@ -105,6 +105,76 @@ > +