From a5316bfa7a6b5a1341222097b5fc039a9b3ce8d3 Mon Sep 17 00:00:00 2001 From: linbin <495561397@qq.com> Date: Wed, 24 Sep 2025 00:58:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=BC=E8=BF=B0:=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=98=BE=E7=A4=BA=E5=92=8C=E5=B1=95=E5=BC=80=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 合并多个订单状态字段为统一的订单状态展示 - 调整表格列数和嵌套表格的展开逻辑 - 完善子表格展开功能,增加toggleSubExpand函数处理子表格显示 - 优化订单状态标签的显示文本 --- 商家端web/订单管理/订单管理.html | 287 ++++++++++++++++++++++++++----- 1 file changed, 245 insertions(+), 42 deletions(-) diff --git a/商家端web/订单管理/订单管理.html b/商家端web/订单管理/订单管理.html index 037beb9..a9fb41c 100644 --- a/商家端web/订单管理/订单管理.html +++ b/商家端web/订单管理/订单管理.html @@ -496,10 +496,7 @@ 市场订单配送费 调度费 包装费 - 订单支付状态 - 订单业务状态 - 订单退款状态 - 订单结算状态 + 订单状态 市场编号 市场名称 申请退款原因 @@ -521,16 +518,13 @@ 0 1 已支付 - 待备货 - 正常 - 未结算 - 0 + 1 春申菜市场 - +
@@ -539,20 +533,22 @@ + - + +
序号 订单编号 店铺名称订单状态
1 11220250719153384807045 牛牛蔬菜店待备货
- +
@@ -562,6 +558,7 @@ + @@ -574,6 +571,7 @@ + @@ -596,18 +594,64 @@ - - - - + - @@ -625,19 +669,65 @@ - - - - - + + - @@ -655,19 +745,65 @@ - - - - - + + - @@ -685,19 +821,65 @@ - - - - - + + - @@ -752,12 +934,33 @@ const nextRow = currentRow.nextElementSibling; if (nextRow && nextRow.classList.contains('expandable-row')) { - if (nextRow.style.display === 'none') { - nextRow.style.display = 'table-row'; - btn.innerHTML = '▲'; - } else { + const isVisible = nextRow.style.display !== 'none'; + + if (isVisible) { nextRow.style.display = 'none'; btn.innerHTML = '▼'; + } else { + nextRow.style.display = 'table-row'; + btn.innerHTML = '▲'; + } + } + } + + // 子表格展开功能 + function toggleSubExpand(btn) { + const currentRow = btn.closest('tr'); + const tableWrapper = currentRow.closest('.nested-table-wrapper'); + let subTable = tableWrapper.querySelector('.sub-table:not(.order-detail-header)'); + + if (subTable) { + const isVisible = subTable.style.display !== 'none'; + + if (isVisible) { + subTable.style.display = 'none'; + btn.innerHTML = '▼'; + } else { + subTable.style.display = 'table'; + btn.innerHTML = '▲'; } } }