From db55c3ef005b28a0241d1e471c71695d626bf43c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B3=89=E4=BD=B3?= <1107186916@qq.com> Date: Fri, 6 Nov 2026 11:15:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BA=94=E6=94=B6?= =?UTF-8?q?=E5=BA=94=E4=BB=98=E8=B0=83=E6=95=B4=E8=B4=B9=E7=94=A8=E9=9D=A2?= =?UTF-8?q?=E6=9D=BF=E8=A1=A8=E6=A0=BC=E8=A1=8C=E8=A2=AB=E8=A3=81=E5=88=87?= =?UTF-8?q?=EF=BC=8C=E8=B4=B9=E7=94=A8=E8=A1=8C=E5=A4=9A=E6=97=B6=E8=A1=A8?= =?UTF-8?q?=E4=BD=93=E5=86=85=E9=83=A8=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/settlement/receivable-payable-detail.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/settlement/receivable-payable-detail.vue b/src/views/settlement/receivable-payable-detail.vue index f40e2a4..485476e 100644 --- a/src/views/settlement/receivable-payable-detail.vue +++ b/src/views/settlement/receivable-payable-detail.vue @@ -1144,8 +1144,6 @@ export default { rule: null, }, adjustDialog: { visible: false, loading: false, submitting: false, row: null }, - // 表头 + 最多 3 行费用 + 横向滚动条,超出后表体上下滚动 - adjustTableMaxHeight: 40 + 49 * 3 + 16, adjustRows: [], adjustDynamicFeeColumns: [], adjustTextProps: ['specification', 'model', 'billingFactor', 'billingType'], @@ -1223,6 +1221,11 @@ export default { }; }, computed: { + adjustTableMaxHeight() { + // 面板满高 min(60vh,560) 减去头部(49)、底部(58)、内边距(32);费用行多时表体内部滚动,表头固定 + if (!this.adjustDialog.visible) return 40 + 49 * 3 + 16; + return Math.round(Math.min(window.innerHeight * 0.6, 560)) - 138; + }, generateContractName() { const contract = this.contractOptions.find( item => String(item.id) === String(this.generateQuery.contractId)