From 6f5a7cf0dba965f7bcc2d39eee183ee30b5e26ea Mon Sep 17 00:00:00 2001 From: DXC Date: Tue, 21 Apr 2026 13:55:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(outbound):=20#print-area=E6=94=B9=E4=B8=BAa?= =?UTF-8?q?bsolute=E8=A7=A3=E9=99=A4=E9=AB=98=E5=BA=A6=E9=94=81=E6=AD=BB?= =?UTF-8?q?=EF=BC=8C=E6=96=B0=E5=A2=9E=E8=A1=8C=E9=98=B2=E6=96=AD=E8=A3=82?= =?UTF-8?q?=E4=BF=9D=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inventory-web/src/views/outbound/Selection.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/inventory-web/src/views/outbound/Selection.vue b/inventory-web/src/views/outbound/Selection.vue index a621bb3..db89bf3 100644 --- a/inventory-web/src/views/outbound/Selection.vue +++ b/inventory-web/src/views/outbound/Selection.vue @@ -855,7 +855,10 @@ const confirmExport = () => { .el-dialog__wrapper, .v-modal, .el-message, .no-print-content { display: none !important; } #print-area, #print-area * { visibility: visible; } #print-area { - position: fixed; left: 0; top: 0; width: 100%; height: 100%; + position: absolute !important; + left: 0; top: 0; width: 100%; + height: auto !important; + min-height: 100%; margin: 0; padding: 20mm; background-color: white; display: block !important; z-index: 99999; } @@ -867,6 +870,13 @@ const confirmExport = () => { .print-table th, .print-table td { border: 1px solid #000; padding: 12px 8px; text-align: left; font-size: 14px; color: #000; } .print-table th { text-align: center; font-weight: bold; } .cell-padding { padding-left: 10px; } + + /* ★★★ 防止表格行在跨页时被水平切断 ★★★ */ + .print-table tr { + page-break-inside: avoid !important; + break-inside: avoid !important; + } + .print-footer { display: flex; justify-content: space-between; margin-top: 60px; padding: 0 20px; } .signature-item { display: flex; flex-direction: column; align-items: center; width: 30%; } .sig-label { font-size: 14px; margin-bottom: 40px; text-align: left; width: 100%; }