This commit is contained in:
zlwu committed 2026-06-12 12:32:49 +08:00
1 parent 9a73e87ce8
commit 4ea71a1bae
70 files changed
+24056 -18383

No files matched your search

+28 -3
View File
@@ -73,11 +73,16 @@ export type QcTask = {
attachmentFiles?: Array<{ id?: string; fileUrl: string; fileName?: string; fileType?: string }>
completedTime?: string
completedBy?: string
assigneeUserIds?: string[]
assigneeUserNames?: string
sourceLineId?: string
remark?: string
createTime?: string
updateTime?: string
}
export type QcTaskOperateScope = 'mine' | 'manage'
export type QcTaskDetail = QcTask & {
reception?: QcTaskReceptionDetail
attachmentFiles?: Array<{ id?: string; fileUrl: string; fileName?: string }>
@@ -104,15 +109,30 @@ export function fetchQcTaskList(params?: {
})
}
export function fetchMyQcTaskList(params?: {
page?: number
pageSize?: number
keyword?: string
taskType?: string
taskStatus?: string
qcBizType?: string
}) {
return request.get<PageList<QcTask>>({
url: '/web/admin/qc-tasks/mine',
params
})
}
export function fetchQcTaskDetail(id: string) {
return request.get<QcTaskDetail>({
url: `/web/admin/qc-tasks/${id}`
})
}
export function fetchStartQcTask(id: string) {
export function fetchStartQcTask(id: string, operateScope?: QcTaskOperateScope) {
return request.post<QcTask>({
url: `/web/admin/qc-tasks/${id}/start`
url: `/web/admin/qc-tasks/${id}/start`,
params: operateScope === 'mine' ? { operateScope: 'mine' } : undefined
})
}
@@ -122,9 +142,14 @@ export function fetchCompleteQcTask(id: string) {
})
}
export function fetchUpdateQcTaskAttachments(id: string, thirdPartyAttachments: string) {
export function fetchUpdateQcTaskAttachments(
id: string,
thirdPartyAttachments: string,
operateScope?: QcTaskOperateScope
) {
return request.put<QcTask>({
url: `/web/admin/qc-tasks/${id}/attachments`,
params: operateScope === 'mine' ? { operateScope: 'mine' } : undefined,
data: { thirdPartyAttachments }
})
}