From 22f42e1166257ad1701f544ad75e1b6bcf6e2414 Mon Sep 17 00:00:00 2001 From: limeng <1131177064@qq.com> Date: Sun, 18 Oct 2026 14:24:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8A=A5=E4=BB=B7=E5=88=97=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=90=8E=E5=8A=A8=E6=80=81=E6=95=B0=E6=8D=AE=E4=B8=8E?= =?UTF-8?q?=E8=A1=A8=E5=A4=B4=E5=90=8C=E6=AD=A5=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../quote-management.blade.php | 31 +++++++++++++------ 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/resources/views/business/pages/courier-payables/quote-management.blade.php b/resources/views/business/pages/courier-payables/quote-management.blade.php index a38a0c62..1b26a3f4 100644 --- a/resources/views/business/pages/courier-payables/quote-management.blade.php +++ b/resources/views/business/pages/courier-payables/quote-management.blade.php @@ -797,15 +797,15 @@ - - - - - - - - - + + + + + + + + + @@ -1080,6 +1080,19 @@ if (quote.status !== '已作废') { actionCell.appendChild(changeAction); } + // 动态重建行时按字段键对应当前表头,保留用户列顺序与隐藏设置。 + var columnKeys = ['报价版本_0', '快递公司_1', '报价类型_2', '原始范围_3', '数据规模_4', '执行日期_5', '签章_6', '资料状态_7', '操作_8']; + var cellsByKey = {}; + Array.from(row.children).forEach(function (cell, index) { + cell.dataset.financeColumnKey = columnKeys[index]; + cellsByKey[columnKeys[index]] = cell; + }); + body.closest('table').querySelectorAll('thead th[data-finance-column-key]').forEach(function (header) { + var cell = cellsByKey[header.dataset.financeColumnKey]; + if (!cell) return; + cell.classList.toggle('is-column-hidden', header.classList.contains('is-column-hidden')); + row.appendChild(cell); + }); return row; } -- 2.47.2
报价版本快递公司报价类型原始范围数据规模执行日期签章资料状态操作报价版本快递公司报价类型原始范围数据规模执行日期签章资料状态操作