fix(qc,production): 我的任务列表改为按工单服务端分页

避免前端循环拉取全部任务再本地分页,翻页只请求当前页工单卡片及下属任务。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-12-02 16:11:55 +08:00
1 parent 0807ee9b4a
commit 9984d73989
11 files changed
+575 -203

No files matched your search

+4 -1
View File
@@ -88,7 +88,10 @@ export function fetchMyProductionTasks(params: {
workOrderType?: string
receptionSource?: string
bizType?: string
scope: 'current' | 'history'
workOrderStatus?: string
scope: 'current' | 'history' | 'all'
/** workOrder=按工单卡片分页(合并 current+history) */
pageBy?: 'workOrder'
includeStepSummary?: boolean
excludeVoidProtocol?: boolean
plannedStartTimeStart?: string
+10
View File
@@ -172,6 +172,16 @@ export function fetchMyQcTaskList(params?: {
bizType?: string
/** 科研捐赠:协议/捐赠状态,多个逗号分隔;空串=不限制 */
protocolStatus?: string
/** 工单状态,多个逗号分隔 */
workOrderStatus?: string
triggerSource?: string
sampleTypeId?: string
createTimeStart?: string
createTimeEnd?: string
infusionTimeStart?: string
infusionTimeEnd?: string
/** workOrder=按工单卡片分页;total 为工单数,list 为当页工单下全部任务 */
pageBy?: 'workOrder'
}) {
return request.get<PageList<QcTask>>({
url: '/web/admin/qc-tasks/mine',