From 3c2fe7c2a0a4f9211f801dfe7747513e2b198e7b Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Thu, 30 May 2024 18:06:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/print.ts | 4 ++-- src/views/opurchase/opurchaseclass/index.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/print.ts b/src/utils/print.ts index bdcfe12..fd6a3a6 100644 --- a/src/utils/print.ts +++ b/src/utils/print.ts @@ -202,7 +202,7 @@ export const print = (data: any) => { panel.addPrintText(options("")); // 文本 *4 - panel.addPrintText({ options: { width: T_WIDTH, height: 35, top: nowHeight, left: T_LEFT, title: data.number, textType: 'barcode',textAlign: "center" } }); + panel.addPrintText({ options: { width: T_WIDTH-10, height: 35, top: nowHeight, left: T_LEFT+5, title: data.number, textType: 'barcode',textAlign: "center" } }); nowHeight += 40 // 文本 *4 @@ -430,7 +430,7 @@ export const testPrint = () => { panel.addPrintText(options("出库码: ")); // 文本 *4 - panel.addPrintText({ options: { width: T_WIDTH, height: 35, top: nowHeight, left: T_LEFT, title: '65155', textType: 'barcode',textAlign: "center" } }); + panel.addPrintText({ options: { width: T_WIDTH-10, height: 35, top: nowHeight, left: T_LEFT+5, title: '65155', textType: 'barcode',textAlign: "center" } }); nowHeight += 40 // 文本 *1 diff --git a/src/views/opurchase/opurchaseclass/index.vue b/src/views/opurchase/opurchaseclass/index.vue index 45e9624..6597b31 100644 --- a/src/views/opurchase/opurchaseclass/index.vue +++ b/src/views/opurchase/opurchaseclass/index.vue @@ -190,7 +190,7 @@ const onPrintOrder = (row: any) => { user_phone: "19330904744", user_address: "里海三楼", uid: "9", - number: "PF171617436315965155", + number: "sd1717057745438221", total: "0.02", actual: "0.02", create_time: "2024-05-20 11:06:03",