This commit is contained in:
zlwu committed 2026-06-26 21:44:33 +08:00
1 parent e4c4cbeedc
commit 0c7034e932
83 files changed
+13802 -12094

No files matched your search

+1
View File
@@ -104,6 +104,7 @@ export function fetchUserList(params?: {
keyword?: string
deptId?: string
status?: string
roleName?: string
}) {
return request.get<{
list: Api.User.UserItem[]
+9 -2
View File
@@ -18,6 +18,7 @@ export function fetchProductionTaskList(params?: {
workOrderId?: string
startedTimeStart?: string
startedTimeEnd?: string
includeStepSummary?: boolean
}) {
return request.get<{
list: any[]
@@ -37,6 +38,7 @@ export function fetchMyProductionTasks(params: {
receptionSource?: string
bizType?: string
scope: 'current' | 'history'
includeStepSummary?: boolean
}) {
return request.get<{
list: any[]
@@ -87,8 +89,13 @@ export function fetchDispatchProductionTaskSteps(
})
}
export function fetchProductionTaskDetail(id: string) {
return request.get<any>({ url: `/web/admin/production-tasks/${id}` })
export function fetchProductionTaskDetail(
id: string,
options?: { includeStepSubTables?: boolean }
) {
const params =
options?.includeStepSubTables === false ? { includeStepSubTables: false } : undefined
return request.get<any>({ url: `/web/admin/production-tasks/${id}`, params })
}
export function fetchUpdateProductionTask(id: string, data: Record<string, any>) {