From 943e43fac9e2fefabaeffb20445361d5d02cea25 Mon Sep 17 00:00:00 2001 From: 86134 <aa> Date: 星期一, 20 十一月 2023 10:24:45 +0800 Subject: [PATCH] 11 --- src/views/quality/finishedProductInspection/index.vue | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/views/quality/finishedProductInspection/index.vue b/src/views/quality/finishedProductInspection/index.vue index 9d582da..808f453 100644 --- a/src/views/quality/finishedProductInspection/index.vue +++ b/src/views/quality/finishedProductInspection/index.vue @@ -217,22 +217,20 @@ }, //鎵撳嵃鎸夐挳 printFun() { - const printSettings = { - paper: { - width: 827, // A4绾哥殑瀹藉害锛堝崟浣嶏細鍍忕礌锛� - height: 595, // A4绾哥殑楂樺害锛堝崟浣嶏細鍍忕礌锛� - orientation: 'portrait', // 绔栧悜鎵撳嵃 - }} + // const printSettings = { + // paper: { + // width: 827, // A4绾哥殑瀹藉害锛堝崟浣嶏細鍍忕礌锛� + // height: 595, // A4绾哥殑楂樺害锛堝崟浣嶏細鍍忕礌锛� + // orientation: 'portrait', // 绔栧悜鎵撳嵃 + // }} PrintJS({ printable: "printRaw", type: "html", - header:"", maxWidth: 1000, - printSettings, - style: '@page {margin: 2.0mm 2.0mm;size:A4;}', + // printSettings, + style: '@page {margin: 10mm 5mm;size:A4;}', targetStyles: ["*"], - fontSize: '30px', ignoreElements: ["no-ignore"], orientation: 'portrait' }); -- Gitblit v1.9.3