提交
This commit is contained in:
1 parent
31be9bfd95
commit
843e13bce3
722 files changed
+288067
-110680
No files matched your search
@@ -332,6 +332,7 @@ export interface PlanProduct {
|
||||
isToxic: number
|
||||
purchaseCertUrl?: string
|
||||
transportCertUrl?: string
|
||||
legalUseCertUrl?: string
|
||||
inboundEstimateQty?: number
|
||||
inboundQty?: number
|
||||
inboundPrice?: number
|
||||
@@ -524,7 +525,12 @@ export const planApi = {
|
||||
update: (id: string, data: PlanUpdatePayload) => request.put<Plan>(`/transport/plan/${id}`, data),
|
||||
updateProductCerts: (
|
||||
id: string,
|
||||
products: Array<{ id: string; purchaseCertUrl?: string; transportCertUrl?: string }>
|
||||
products: Array<{
|
||||
id: string
|
||||
purchaseCertUrl?: string
|
||||
transportCertUrl?: string
|
||||
legalUseCertUrl?: string
|
||||
}>
|
||||
) => request.patch<Plan>(`/transport/plan/${id}/product-certs`, { products }),
|
||||
setHazardCertReady: (id: string, ready: boolean) =>
|
||||
request.patch<Plan>(`/transport/plan/${id}/hazard-cert-ready`, { ready }),
|
||||
@@ -538,7 +544,17 @@ export const planApi = {
|
||||
getInboundSlipTemplate: (id: string) =>
|
||||
request.get<string>(`/transport/plan/${id}/inbound-slip-template`),
|
||||
saveInboundSlipTemplate: (id: string, slipTemplateContent: string) =>
|
||||
request.put(`/transport/plan/${id}/inbound-slip-template`, { slipTemplateContent })
|
||||
request.put(`/transport/plan/${id}/inbound-slip-template`, { slipTemplateContent }),
|
||||
getDeliverySlipTemplate: (id: string) =>
|
||||
request.get<string>(`/transport/plan/${id}/delivery-slip-template`),
|
||||
saveDeliverySlipTemplate: (id: string, slipTemplateContent: string) =>
|
||||
request.put(`/transport/plan/${id}/delivery-slip-template`, { slipTemplateContent }),
|
||||
getSubpackSlipTemplate: (id: string) =>
|
||||
request.get<string>(`/transport/plan/${id}/subpack-slip-template`),
|
||||
saveSubpackSlipTemplate: (id: string, slipTemplateContent: string) =>
|
||||
request.put(`/transport/plan/${id}/subpack-slip-template`, { slipTemplateContent }),
|
||||
ensureSubpackSlipNo: (id: string) =>
|
||||
request.post<string>(`/transport/plan/${id}/subpack-slip-no`)
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
@@ -916,6 +932,10 @@ export interface DocumentReminder {
|
||||
createTime: string
|
||||
}
|
||||
|
||||
export interface DocumentReminderStats {
|
||||
expiredPendingCount: number
|
||||
}
|
||||
|
||||
export interface InventoryLedgerQuery {
|
||||
productName?: string
|
||||
page?: number
|
||||
@@ -942,10 +962,23 @@ export const inventoryApi = {
|
||||
request.post('/transport/inventory/warning-threshold', data),
|
||||
documentReminders: (status?: string) =>
|
||||
request.get<DocumentReminder[]>('/transport/inventory/document-reminders', { params: { status } }),
|
||||
documentReminderStats: () =>
|
||||
request.get<DocumentReminderStats>('/transport/inventory/document-reminders/stats'),
|
||||
updateDocumentReminder: (id: string, data: { status: string; remark?: string }) =>
|
||||
request.put<DocumentReminder>(`/transport/inventory/document-reminders/${id}`, data)
|
||||
}
|
||||
|
||||
export interface PlMenuBadgeStats {
|
||||
counts: Record<string, number>
|
||||
}
|
||||
|
||||
export const menuBadgeApi = {
|
||||
stats: (codes?: string[]) =>
|
||||
request.get<PlMenuBadgeStats>('/transport/menu-badges/stats', {
|
||||
params: codes?.length ? { codes: codes.join(',') } : undefined
|
||||
})
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
// ETC/加油充值 API
|
||||
// =============================================================================
|
||||
|
||||
Reference in new issue
Block a user