From b887aff3ddb28992c87f3479c30f55a7160bb896 Mon Sep 17 00:00:00 2001 From: lynn Date: Wed, 16 Jul 2025 16:22:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E8=A1=A8=E6=A0=BC=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../contract/components/printPaymentForm.vue | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/views/contract/components/printPaymentForm.vue b/src/views/contract/components/printPaymentForm.vue index 535427d..6b3ac15 100644 --- a/src/views/contract/components/printPaymentForm.vue +++ b/src/views/contract/components/printPaymentForm.vue @@ -840,6 +840,38 @@ export default { td { border: 1px solid #000; padding: 8px; min-width: 100px; word-break: break-all; vertical-align: middle; } th { vertical-align: middle; } + /* 资金划拨单最后一列宽度调整 */ + ${this.getForms && this.getForms.includes('资金划拨审批单') ? ` + /* 改变表格布局方式 */ + table { + table-layout: auto !important; + width: 100% !important; + } + + /* 设置各列宽度比例 */ + table td:nth-child(1) { width: 20% !important; } + table td:nth-child(2) { width: 20% !important; } + table td:nth-child(3) { width: 20% !important; } + table td:nth-child(4) { + width: 40% !important; + min-width: 500px !important; + max-width: none !important; + word-break: break-all !important; + white-space: normal !important; + overflow-wrap: break-word !important; + } + + /* 处理跨列情况 */ + table td[colspan] { width: auto !important; min-width: auto !important; } + + /* 确保所有文本内容正常换行 */ + table td * { + white-space: normal !important; + word-break: break-all !important; + overflow-wrap: break-word !important; + } + ` : ''} + /* 水电费结算单特殊行高控制 */ ${hasUtilityBill ? ` table td { height: 80px !important; min-height: 60px !important; line-height: 1.8 !important; }