提交
This commit is contained in:
1 parent
833544def3
commit
16be6fa22d
204 files changed
+455089
-46491
No files matched your search
@@ -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}`)
|
||||
},
|
||||
|
||||
@@ -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}`)
|
||||
},
|
||||
|
||||
@@ -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}`)
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user