From f4ed1dd7794a4d95ad85cf2675298ced4dfb83e1 Mon Sep 17 00:00:00 2001 From: Euni4U <958079825@qq.com> Date: Fri, 11 Apr 2025 16:40:49 +0800 Subject: [PATCH] =?UTF-8?q?A7=E7=BA=B8=E5=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Inspection-checklist.vue | 37 ++++++++++++++++--- 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/src/views/Inspection-checklist/Inspection-checklist.vue b/src/views/Inspection-checklist/Inspection-checklist.vue index 103de06..5e8de0d 100644 --- a/src/views/Inspection-checklist/Inspection-checklist.vue +++ b/src/views/Inspection-checklist/Inspection-checklist.vue @@ -390,11 +390,16 @@ const handlePrintBarcode = async (row: PatientVO) => { settingContainer: "#BarcodePrintElementOptionSetting", }); - // 打印设置 + // 打印设置 - 根据barcode.js的配置设置纸张大小和边距 const options = { leftOffset: 0, topOffset: 0, - printMode: 'popup' + printMode: 'popup', + paperType: 'A7', // 纸张类型:A7 + height: 30, // 纸张高度:30mm + width: 50, // 纸张宽度:50mm + paperHeader: -6, // 纸张上边距:-6mm + paperFooter: 85.03937007874016 // 纸张下边距 }; // 增强样式 @@ -403,10 +408,30 @@ const handlePrintBarcode = async (row: PatientVO) => { }, styleHandler: () => { return ``; }, };