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/)
+3 -1
View File
@@ -1,4 +1,4 @@
import { ClipboardList, ReceiptText } from '@lucide/vue'
import { ClipboardList, ReceiptText, Truck, Warehouse } from '@lucide/vue'
import type { ClientModuleManifest } from '../types.ts'
export const orderManagementModule = {
@@ -19,6 +19,7 @@ export const orderManagementModule = {
component: () => import('./views/InboundOrdersView.vue'),
release: 'active',
meta: { title: '入库订单列表', description: '查询海外仓入库订单', permission: 'merchant:warehouse:inbound:list' },
navigation: { key: 'orders-inbound', icon: Warehouse },
},
{
path: 'orders/inbound/:planNo/detail',
@@ -34,6 +35,7 @@ export const orderManagementModule = {
component: () => import('./views/DeliveryOrdersView.vue'),
release: 'active',
meta: { title: '派送订单列表', description: '查询海外仓派送订单', permission: 'merchant:warehouse:delivery:list' },
navigation: { key: 'orders-delivery', icon: Truck },
},
{
path: 'orders/delivery/create',