feat(admin): show single-remainder fulfillment aggregate

This commit is contained in:
2026-08-11 09:22:22 +08:00
parent c5295abb49
commit d967355272
6 changed files with 287 additions and 0 deletions
@@ -150,6 +150,14 @@ describe('UnifiedOrdersView contract', () => {
expect(source).toContain('await loadOrders()')
})
it('exposes the single-remainder fulfillment aggregate in row expansion and detail', () => {
expect(source).toContain("{ key: 'fulfillment', type: 'expand', width: 52, fixed: 'left'")
expect(source).toContain('<template #fulfillment="{ row }">')
expect(source).toContain("{ key: 'fulfillment', label: '拆分履约', icon: ListChecks }")
expect(source).toContain("activeDetailTab === 'fulfillment'")
expect(source).toContain('根单、已完成分片与当前余量')
})
it('distinguishes overflow action buttons by row and keeps a stable missing-field fallback', () => {
expect(source).toContain('function moreUnifiedOrderActionsLabel(row: UnifiedOrderResource)')
expect(source).toContain('[compatibleOrder.inboundCode, compatibleOrder.orderNo, compatibleOrder.orderId, compatibleOrder.id]')