feat(admin): adapt channel booking and smart loading contracts
This commit is contained in:
@@ -172,7 +172,7 @@ async function loadSelectedData(preserved: Record<string, number> = {}) {
|
||||
selectionLoading.value = true
|
||||
try {
|
||||
const [candidateResult, planResult] = await Promise.all([
|
||||
listSmartLoadingCandidates(container.warehouseId),
|
||||
listSmartLoadingCandidates(container.id, container.warehouseId),
|
||||
getSmartLoadingPlanByBooking(container.id).then((value) => ({ value, missing: false })).catch((error) => {
|
||||
const details = getApiErrorDetails(error)
|
||||
if (details.code === 'A0404') return { value: null, missing: true }
|
||||
|
||||
Reference in New Issue
Block a user