From 8312a796854315dddbc98cfa11957be939ec8d78 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 28 Apr 2025 09:27:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=89=B9=E6=AC=A1=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/mainso.vue | 1 + src/views/inm/mioitem.vue | 1 + src/views/wpm_bx/inm.vue | 2 +- src/views/wpm_bx/mlog_detail.vue | 3 ++- src/views/wpm_bx/mlogbw_check.vue | 3 ++- 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/inm/mainso.vue b/src/views/inm/mainso.vue index 6aefc73a..ddafbb76 100644 --- a/src/views/inm/mainso.vue +++ b/src/views/inm/mainso.vue @@ -192,6 +192,7 @@ export default { '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, + "WINTEXT 280,550,28,90,0,0,Simhei," + row.count, "PRINT 1", ]; let obj = {}; diff --git a/src/views/inm/mioitem.vue b/src/views/inm/mioitem.vue index b562e1a5..cb0f5906 100644 --- a/src/views/inm/mioitem.vue +++ b/src/views/inm/mioitem.vue @@ -490,6 +490,7 @@ export default { '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, + "WINTEXT 280,550,28,90,0,0,Simhei," + row.count, "PRINT 1", ]; let obj = {}; diff --git a/src/views/wpm_bx/inm.vue b/src/views/wpm_bx/inm.vue index 025a6d86..b312bbf7 100644 --- a/src/views/wpm_bx/inm.vue +++ b/src/views/wpm_bx/inm.vue @@ -492,6 +492,7 @@ export default { '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, + "WINTEXT 280,550,28,90,0,0,Simhei," + row.count, "PRINT 1", ]; let obj = {}; @@ -510,7 +511,6 @@ export default { "CLS", "REFERENCE 0,0", 'QRCODE 30,400,H,5,A,0,"' +code +'"', - "WINTEXT 200,550,28,90,0,0,Simhei," + row.material_name, "WINTEXT 240,550,28,90,0,0,Simhei," + row.number, "PRINT 1", ]; diff --git a/src/views/wpm_bx/mlog_detail.vue b/src/views/wpm_bx/mlog_detail.vue index a3420f7b..16012a16 100644 --- a/src/views/wpm_bx/mlog_detail.vue +++ b/src/views/wpm_bx/mlog_detail.vue @@ -813,7 +813,7 @@ export default { //打印物料标签 printMaterial(row){ let that = this; - that.apiObj.req({tid:row.id}).then((res) => { + that.apiObjPrint.req({tid:row.id}).then((res) => { let code = res.code_label; let str = [ "SIZE 40 mm,70 mm", @@ -823,6 +823,7 @@ export default { '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, + "WINTEXT 280,550,28,90,0,0,Simhei," + row.count, "PRINT 1", ]; let obj = {}; diff --git a/src/views/wpm_bx/mlogbw_check.vue b/src/views/wpm_bx/mlogbw_check.vue index 58fd1fdb..d8a4ab7a 100644 --- a/src/views/wpm_bx/mlogbw_check.vue +++ b/src/views/wpm_bx/mlogbw_check.vue @@ -776,7 +776,7 @@ export default { //打印物料标签 printMaterial(row){ let that = this; - that.apiObj.req({tid:row.id}).then((res) => { + that.apiObjPrint.req({tid:row.id}).then((res) => { let code = res.code_label; let str = [ "SIZE 40 mm,70 mm", @@ -786,6 +786,7 @@ export default { '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, + "WINTEXT 280,550,28,90,0,0,Simhei," + row.count, "PRINT 1", ]; let obj = {};