This commit is contained in:
zlwu committed 2026-06-13 19:47:22 +08:00
1 parent e1d6de45a3
commit 5ad07c8cac
616 files changed
+181132 -35125

No files matched your search

+55
View File
@@ -0,0 +1,55 @@
import request from '@/utils/http'
type PageList<T> = {
list: T[]
total: number
page: number
pageSize: number
totalPages: number
}
export type MaterialUsage = {
id: string
materialId: string
materialCode: string
materialName: string
category?: string
batchId?: string
stockInNo?: string
stockInDate?: string
catalogNo?: string
batchNo?: string
manufacturer?: string
unitPrice?: number | null
amount?: number | null
changeType: string
changeQty: number
usageUnit?: string
stockBefore?: number
stockAfter: number
receiver?: string
purpose?: string
useTime?: string
sourceType: string
remark: string
createBy: string
createByName?: string
createTime: string
}
export function fetchMaterialUsageList(params?: {
page?: number
pageSize?: number
materialId?: string
changeType?: string
startTime?: string
endTime?: string
keyword?: string
stockInNo?: string
category?: string
}) {
return request.get<PageList<MaterialUsage>>({
url: '/web/admin/material-usages',
params
})
}