fix(scripts): scope container workbench queries

This commit is contained in:
2026-09-08 23:16:52 +08:00
parent 7d64135e79
commit 2121743753
3 changed files with 4 additions and 4 deletions
@@ -473,7 +473,7 @@ export async function run(context) {
`containerBookingId=${containerId}, cabinetNo=${linkedContainer?.cabinetNo || 'missing'}, loadingPlanId=${id(afterLinkPlan?.id) || 'missing'}`, OPTIONS)
const activeContainersResponse = await context.request('GET',
`${CONTAINERS}/domestic?page=1&size=50&keyword=${encodeURIComponent(realContainerNo)}`)
`${CONTAINERS}/domestic?scope=ACTIVE&page=1&size=50&keyword=${encodeURIComponent(realContainerNo)}`)
const activeWorkbench = context.apiSuccess(MODULE, '关联后按真实柜号回查正常货柜列表', activeContainersResponse, '', OPTIONS)
const activeContainers = { ...activeWorkbench,
records: records(activeWorkbench).map((item) => item?.container).filter(Boolean) }