fix(production): list-by-work-orders 不再请求 pageSize 500
按当前页工单数发送合理 chunk(≤100),后端循环凑齐任务,避免 Network 中再出现 pageSize:500。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
8370573edc
commit
426a884aa7
3 files changed
+6
-5
No files matched your search
@@ -62,7 +62,8 @@ export function fetchProductionTasksByWorkOrderIds(workOrderIds: string[]) {
|
||||
params: {
|
||||
workOrderIds: ids,
|
||||
includeStepSummary: true,
|
||||
pageSize: Math.min(500, ids.length * 100)
|
||||
// 仅作后端翻页 chunk;后端会循环凑齐当前页工单下全部任务,勿再放大到 500
|
||||
pageSize: Math.min(100, Math.max(10, ids.length * 10))
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user