fix(navigation): expose permitted inbound and delivery order lists

This commit is contained in:
2026-09-30 13:28:48 +08:00
parent 6564d41285
commit 706e3e871e
4 changed files with 28 additions and 6 deletions
@@ -33,7 +33,7 @@ test('uses only authenticated merchant delivery endpoints without customer scope
test('keeps list, read-only detail and create permissions independent in active routes', () => {
const listRoute = routesSource.match(/path: 'orders\/delivery',[\s\S]*?\n\s*},/)?.[0] ?? ''
assert.match(listRoute, /permission: 'merchant:warehouse:delivery:list'/)
assert.doesNotMatch(listRoute, /navigation:/)
assert.match(listRoute, /navigation: \{ key: 'orders-delivery', icon: Truck \}/)
assert.match(routesSource, /path: 'orders\/delivery\/create'[\s\S]*DeliveryOrderCreateView\.vue[\s\S]*permission: 'merchant:warehouse:delivery:create'/)
assert.match(routesSource, /path: 'orders\/delivery\/:deliveryNo'[\s\S]*DeliveryOrderDetailView\.vue[\s\S]*props: true[\s\S]*permission: 'merchant:warehouse:delivery:list'/)
assert.match(routesSource, /orders-delivery-create[\s\S]*keepAlive: false/)