|
|
@@ -1086,6 +1086,8 @@ export const freightApi = {
|
|
|
export interface InventoryRecord {
|
|
|
id: string
|
|
|
productId: string
|
|
|
+ brandId?: string
|
|
|
+ brandName?: string
|
|
|
productNo: string
|
|
|
productName: string
|
|
|
model?: string
|
|
|
@@ -1100,6 +1102,8 @@ export interface InventoryRecord {
|
|
|
export interface InventoryTransaction {
|
|
|
id: string
|
|
|
productId: string
|
|
|
+ brandId?: string
|
|
|
+ brandName?: string
|
|
|
productName: string
|
|
|
transactionType: string
|
|
|
planId?: string
|
|
|
@@ -1114,6 +1118,8 @@ export interface InventoryTransaction {
|
|
|
export interface InventoryWarning {
|
|
|
id: string
|
|
|
productId: string
|
|
|
+ brandId?: string
|
|
|
+ brandName?: string
|
|
|
productName: string
|
|
|
warningType: string
|
|
|
currentQty: number
|
|
|
@@ -1167,8 +1173,13 @@ export const inventoryApi = {
|
|
|
request.get<InventoryWarning[]>('/transport/inventory/warnings', { params: { status } }),
|
|
|
updateWarning: (id: string, data: { status: string; resolveRemark?: string }) =>
|
|
|
request.put<InventoryWarning>(`/transport/inventory/warnings/${id}`, data),
|
|
|
- setWarningThreshold: (data: { productId: string; lowStockWarning?: number; highStockWarning?: number }) =>
|
|
|
- request.post('/transport/inventory/warning-threshold', data),
|
|
|
+ setWarningThreshold: (data: {
|
|
|
+ productId: string
|
|
|
+ brandId?: string
|
|
|
+ brandName?: string
|
|
|
+ lowStockWarning?: number
|
|
|
+ highStockWarning?: number
|
|
|
+ }) => request.post('/transport/inventory/warning-threshold', data),
|
|
|
documentReminders: (status?: string) =>
|
|
|
request.get<DocumentReminder[]>('/transport/inventory/document-reminders', { params: { status } }),
|
|
|
documentReminderStats: () =>
|