diff --git a/商家端web/订单管理/订单管理.html b/商家端web/订单管理/订单管理.html index a9fb41c..7b5f55b 100644 --- a/商家端web/订单管理/订单管理.html +++ b/商家端web/订单管理/订单管理.html @@ -548,6 +548,28 @@ + + + + + + + + + + + + + + + + + + + + + + @@ -624,6 +646,28 @@ + + + + + + + + + + + + + + + + + + + + + + @@ -700,6 +744,28 @@ + + + + + + + + + + + + + + + + + + + + + + @@ -776,6 +842,28 @@ + + + + + + + + + + + + + + + + + + + + + + @@ -852,6 +940,28 @@ + + + + + + + + + + + + + + + + + + + + + + @@ -946,7 +1056,7 @@ } } - // 子表格展开功能 + // 子表格展开功能(结算单位订单展开店铺订单) function toggleSubExpand(btn) { const currentRow = btn.closest('tr'); const tableWrapper = currentRow.closest('.nested-table-wrapper'); @@ -965,6 +1075,26 @@ } } + // 店铺订单展开功能(店铺订单展开商品订单) + function toggleShopExpand(btn) { + const currentRow = btn.closest('tr'); + const tableWrapper = currentRow.closest('.nested-table-wrapper'); + const tables = tableWrapper.querySelectorAll('.sub-table'); + let productTable = tables[tables.length - 1]; // 获取最后一个表格(商品订单表格) + + if (productTable) { + const isVisible = productTable.style.display !== 'none'; + + if (isVisible) { + productTable.style.display = 'none'; + btn.innerHTML = '▼'; + } else { + productTable.style.display = 'table'; + btn.innerHTML = '▲'; + } + } + } + // 分页功能 document.querySelectorAll('.page-item:not(.disabled):not(.active)').forEach(item => { item.addEventListener('click', function() {