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",