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 ``; }, };