This commit is contained in:
zlwu committed 2026-08-22 09:08:05 +08:00
1 parent 833544def3
commit 16be6fa22d
204 files changed
+455089 -46491

No files matched your search

+3
View File
@@ -104,6 +104,9 @@ export const inventoryApi = {
list(params?: InventoryListParams) {
return dbRequest.get<InventoryRecord[]>('/inventory', { params, timeout: 60000 })
},
export(data: Record<string, any>) {
return dbRequest.post<Blob>('/inventory/export', data, { responseType: 'blob' })
},
get(id: string) {
return dbRequest.get<InventoryRecord>(`/inventory/${id}`)
},
+3
View File
@@ -131,6 +131,9 @@ export const planApi = {
list(params?: PlanListParams) {
return dbRequest.get<Plan[]>('/plans', { params })
},
export(data: Record<string, any>) {
return dbRequest.post<Blob>('/plans/export', data, { responseType: 'blob' })
},
get(id: string) {
return dbRequest.get<Plan>(`/plans/${id}`)
},
+3
View File
@@ -104,6 +104,9 @@ export const weighingApi = {
list(params?: WeighingListParams) {
return dbRequest.get<WeighingRecord[]>('/weighing', { params })
},
export(data: Record<string, any>) {
return dbRequest.post<Blob>('/weighing/export', data, { responseType: 'blob' })
},
get(id: string) {
return dbRequest.get<WeighingRecord>(`/weighing/${id}`)
},