From 6c1107bc7603c5742527cdd556ce47f7a85db38d Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" Date: Mon, 1 Jul 2024 11:31:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=93=E5=8D=B0=E9=AB=98?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/print.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/utils/print.js b/src/utils/print.js index d20038ab..26f4bf5e 100644 --- a/src/utils/print.js +++ b/src/utils/print.js @@ -12,7 +12,7 @@ const handleTitlePrint = (LODOP, templateData)=>{ // // 设置打印后自动关闭 LODOP.SET_PRINT_MODE('AUTO_CLOSE_PREWINDOW', 1); // // data就是一段html文本 - LODOP.ADD_PRINT_HTM('40', '0%', '100%', '100%', templateData); + LODOP.ADD_PRINT_HTM('30', '0%', '100%', '100%', templateData); } /** 打印配送单 */ @@ -48,12 +48,16 @@ const print = (nodeList, type = 'deliveryPrint') => { // 循环列表内元素并打印 nodeList.forEach(orderNode => { let templateData = orderNode.innerHTML; + // let templateData="

1111

" + + + if (type === 'titlePrint') handleTitlePrint(LODOP, templateData) else handleDeliveryPrint(LODOP, templateData) // LODOP.NewPage() - LODOP.PRINT(); //直接打印 + // LODOP.PRINT(); //直接打印 }); - // LODOP.PREVIEW(); //预览(预览打印无脚标) + LODOP.PREVIEW(); //预览(预览打印无脚标) }; const newPrint = nodeName => {