发布:将已验 TEST 功能更新至既有生产灰度(2026-10-23) #15

Merged
admin merged 69 commits from release/test into main 2026-10-23 10:51:31 +08:00
3 changed files with 10 additions and 8 deletions
Showing only changes of commit 7e68d978dd - Show all commits
+2
View File
@@ -43,6 +43,8 @@ const visibleNavigation = computed(() => filterNavigationByPermissions(clientNav
const activeParentKeys = computed(() => new Set(getNavigationParentKeys(visibleNavigation.value, props.activePath)))
const openedKeys = ref<ReadonlySet<string>>(new Set(activeParentKeys.value))
// Expand the order group by default so the three customer order shortcuts are visible.
openedKeys.value = new Set([...openedKeys.value, 'order-center'])
function handleToggle(key: string) {
const next = new Set(openedKeys.value)
+5 -5
View File
@@ -52,13 +52,13 @@ test('keeps standalone business pages at the client sidebar root', () => {
{ title: '首页', children: undefined },
{
title: '订单中心',
children: ['头程订单', '入库订单', '派送订单', '海外采购', '美国本土卡', '美本土散板'],
children: ['头程订单', '入库订单', '派送订单'],
},
{ title: '报关资料', children: undefined },
{ title: '船期价格', children: undefined },
{
title: '海外仓',
children: ['贴标申请', '仓储转运', '货物废弃', '退货换标'],
children: ['贴标申请', '仓储转运', '货物废弃', '退货换标', '海外采购', '美国本土卡', '美本土散板'],
},
{
title: '费用与账单',
@@ -90,15 +90,15 @@ test('flattens visible leaves with unique paths', () => {
'/orders/first-leg',
'/orders/inbound',
'/orders/delivery',
'/cross-border/procurement',
'/cross-border/domestic-trucking',
'/cross-border/pallet-shipping',
'/first-leg/customs-documents',
'/first-leg/sailing-prices',
'/overseas-warehouse/labeling',
'/overseas-warehouse/storage-transfer',
'/overseas-warehouse/cargo-disposal',
'/overseas-warehouse/return-relabel',
'/cross-border/procurement',
'/cross-border/domestic-trucking',
'/cross-border/pallet-shipping',
'/finance/account',
'/finance/bills',
'/company/profile',
+3 -3
View File
@@ -54,9 +54,6 @@ export const clientNavigation: ClientNavigationNode[] = [
requireLeaf('first-leg-orders', '头程订单'),
requireLeaf('orders-inbound', '入库订单'),
requireLeaf('orders-delivery', '派送订单'),
requireLeaf('cross-border-procurement'),
requireLeaf('cross-border-domestic-trucking'),
requireLeaf('cross-border-pallet-shipping'),
],
},
requireLeaf('first-leg-customs-documents', '报关资料'),
@@ -70,6 +67,9 @@ export const clientNavigation: ClientNavigationNode[] = [
requireLeaf('overseas-storage-transfer'),
requireLeaf('overseas-cargo-disposal'),
requireLeaf('overseas-return-relabel', '退货换标'),
requireLeaf('cross-border-procurement'),
requireLeaf('cross-border-domestic-trucking'),
requireLeaf('cross-border-pallet-shipping'),
],
},
{