fix(scripts): scope container workbench queries
This commit is contained in:
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user