fix(admin): validate co-load routes by business code

This commit is contained in:
2026-08-31 15:50:05 +08:00
parent afbee83b51
commit 1a81a5a2b6
5 changed files with 70 additions and 13 deletions
@@ -175,8 +175,10 @@ describe('UnifiedOrdersView contract', () => {
expect(createSource).not.toContain('relation')
expect(createSource).toContain('createPlatformCoLoadGroup(selectedOrders.value.map((row) => String(row.orderId)))')
expect(source).toContain(':disabled="loading || !canCreateCoLoadGroup"')
expect(source).toContain('所选订单的平台收货仓不同,不能设为同柜组')
expect(source).toContain('所选订单的渠道不同,不能设为同柜组')
expect(source).toContain('所选订单的平台收货仓不同:')
expect(source).toContain('所选订单的渠道不同:')
expect(source).toContain('row.channelCode!.trim()')
expect(source).not.toContain('String(row.channelName || \'\').trim()')
expect(source).toContain('所选订单中已有同柜组,请先解除原同柜组')
})