修复订单货柜预约与排车维护界面

This commit is contained in:
2026-10-21 23:20:10 +08:00
parent 93a31b3872
commit 2e26477db5
68 changed files with 602 additions and 239 deletions
@@ -20,7 +20,7 @@ describe('UnifiedOrdersView contract', () => {
it('exposes desktop pallet printing only for one-click dropship orders', () => {
expect(source).toContain("detail.value?.summary.fulfillmentType === 'ONE_CLICK_DROPSHIP'")
expect(source).toContain("{ key: 'dropship-print', label: '托盘打印', icon: '🖨️' }")
expect(source).toContain("{ key: 'dropship-print', label: '托盘打印', icon: Printer }")
expect(source).toContain("activeDetailTab === 'dropship-print'")
expect(source).toContain('<DropshipPalletPrintPanel')
expect(source).toContain("can('platform:firstleg:inbound:list')")
@@ -70,6 +70,7 @@ describe('UnifiedOrdersView contract', () => {
})
it('renders accessible current-status tabs with keyboard navigation', () => {
expect(source).toContain("unifiedOrderStatusOptions.filter((tab) => tab.value !== 'WEIGHT_CONFIRMED')")
expect(source.match(/class="orders-status-toolbar"/g)).toHaveLength(2)
expect(source).toContain('.orders-status-toolbar :deep(.workbench-table.is-page-surface > .data-table > .data-table__toolbar > .data-table__toolbar-start)')
expect(source).toContain('flex: 0 0 100%;')
@@ -591,7 +592,9 @@ describe('UnifiedOrdersView contract', () => {
expect(source).toContain('子单 · 第 ${row.relation.splitSequence} 次')
expect(source).toContain('title="父子订单关联"')
expect(source).toContain('@click="openOrderRelation(row as UnifiedOrderResource)"')
expect(source).toContain("{ key: 'fulfillment', label: '拆分履约', icon: '🧩' }")
expect(source).toContain("{ key: 'fulfillment', label: '拆分履约', icon: GitBranch }")
const tabs = source.slice(source.indexOf('const detailTabs ='), source.indexOf('const customerMeasurementColumns ='))
expect(tabs.indexOf("key: 'other'")).toBeGreaterThan(tabs.indexOf("key: 'fulfillment'"))
expect(source).toContain("activeDetailTab === 'fulfillment'")
expect(source).toContain('<OrderFulfillmentTreePanel')
expect(source).not.toContain('根单、已完成分片与当前余量')
@@ -373,8 +373,8 @@ const detailTabs = computed(() => [
{ key: 'history', label: '状态历史', icon: History },
{ key: 'measurement', label: '测量数据', icon: Ruler },
...(isDropshipOrder.value ? [{ key: 'dropship-print', label: '托盘打印', icon: Printer }] : []),
{ key: 'other', label: '其他', icon: MoreHorizontal },
{ key: 'fulfillment', label: '拆分履约', icon: GitBranch },
{ key: 'other', label: '其他', icon: MoreHorizontal },
])
const customerMeasurementColumns = [
@@ -609,7 +609,7 @@ async function waitForSavedMeasurementVersion(tenantId: string, inboundId: strin
const statusTabs = computed(() => [
{ value: '' as const, label: '全部' },
...unifiedOrderStatusOptions.flatMap((tab) => tab.value === 'WAIT_MEASURE' && can('firstleg:inbound:measurement-review')
...unifiedOrderStatusOptions.filter((tab) => tab.value !== 'WEIGHT_CONFIRMED').flatMap((tab) => tab.value === 'WAIT_MEASURE' && can('firstleg:inbound:measurement-review')
? [tab, { value: 'MEASUREMENT_REVIEW' as const, label: '测量数据审核' }]
: [tab]),
])