提交
This commit is contained in:
1 parent
3779de12ce
commit
fb85230d25
25 files changed
+6003
-234
No files matched your search
@@ -303,3 +303,121 @@ export function fetchUpdateStepOutputs(data: { stepId: string; items: any[] }) {
|
||||
export function fetchUpdateStepDataCollections(data: { stepId: string; items: any[] }) {
|
||||
return request.put({ url: '/web/admin/process-routes/step/data-collection/update', params: data })
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// 试剂库存操作
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export function fetchReagentStockIn(id: string, data: { qty: number; remark?: string }) {
|
||||
return request.post({ url: `/web/admin/reagents/${id}/stock-in`, data })
|
||||
}
|
||||
|
||||
export function fetchReagentStockOut(
|
||||
id: string,
|
||||
data: { qty: number; receiver: string; purpose?: string; remark?: string }
|
||||
) {
|
||||
return request.post({ url: `/web/admin/reagents/${id}/stock-out`, data })
|
||||
}
|
||||
|
||||
export function fetchReagentBatchStockIn(data: {
|
||||
items: Array<{ materialId: string; qty: number; remark?: string }>
|
||||
remark?: string
|
||||
}) {
|
||||
return request.post<{ count: number }>({ url: '/web/admin/reagents/batch-stock-in', data })
|
||||
}
|
||||
|
||||
export function fetchReagentBatchStockOut(data: {
|
||||
items: Array<{ materialId: string; qty: number }>
|
||||
receiver: string
|
||||
purpose?: string
|
||||
remark?: string
|
||||
}) {
|
||||
return request.post<{ count: number }>({ url: '/web/admin/reagents/batch-stock-out', data })
|
||||
}
|
||||
|
||||
export function fetchReagentStockLogs(
|
||||
id: string,
|
||||
params: { page: number; pageSize: number; changeType?: string }
|
||||
) {
|
||||
return request.get<{
|
||||
list: any[]
|
||||
total: number
|
||||
page: number
|
||||
pageSize: number
|
||||
}>({ url: `/web/admin/reagents/${id}/stock-logs`, params })
|
||||
}
|
||||
|
||||
export function fetchAllReagentStockLogs(params: {
|
||||
page: number
|
||||
pageSize: number
|
||||
keyword?: string
|
||||
changeType?: string
|
||||
startTime?: string
|
||||
endTime?: string
|
||||
}) {
|
||||
return request.get<{
|
||||
list: any[]
|
||||
total: number
|
||||
page: number
|
||||
pageSize: number
|
||||
}>({ url: '/web/admin/reagents/stock-logs', params })
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// 耗材库存操作
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export function fetchConsumableStockIn(id: string, data: { qty: number; remark?: string }) {
|
||||
return request.post({ url: `/web/admin/consumables/${id}/stock-in`, data })
|
||||
}
|
||||
|
||||
export function fetchConsumableStockOut(
|
||||
id: string,
|
||||
data: { qty: number; receiver?: string; purpose?: string; remark?: string }
|
||||
) {
|
||||
return request.post({ url: `/web/admin/consumables/${id}/stock-out`, data })
|
||||
}
|
||||
|
||||
export function fetchConsumableBatchStockIn(data: {
|
||||
items: { materialId: string; qty: number; remark?: string }[]
|
||||
remark?: string
|
||||
}) {
|
||||
return request.post<{ count: number }>({ url: '/web/admin/consumables/batch-stock-in', data })
|
||||
}
|
||||
|
||||
export function fetchConsumableBatchStockOut(data: {
|
||||
items: { materialId: string; qty: number }[]
|
||||
receiver?: string
|
||||
purpose?: string
|
||||
remark?: string
|
||||
}) {
|
||||
return request.post<{ count: number }>({ url: '/web/admin/consumables/batch-stock-out', data })
|
||||
}
|
||||
|
||||
export function fetchConsumableStockLogs(
|
||||
id: string,
|
||||
params: { page: number; pageSize: number; changeType?: string }
|
||||
) {
|
||||
return request.get<{
|
||||
list: any[]
|
||||
total: number
|
||||
page: number
|
||||
pageSize: number
|
||||
}>({ url: `/web/admin/consumables/${id}/stock-logs`, params })
|
||||
}
|
||||
|
||||
export function fetchAllConsumableStockLogs(params: {
|
||||
page: number
|
||||
pageSize: number
|
||||
keyword?: string
|
||||
changeType?: string
|
||||
startTime?: string
|
||||
endTime?: string
|
||||
}) {
|
||||
return request.get<{
|
||||
list: any[]
|
||||
total: number
|
||||
page: number
|
||||
pageSize: number
|
||||
}>({ url: '/web/admin/consumables/stock-logs', params })
|
||||
}
|
||||
Reference in new issue
Block a user