feat(pl): add Excel export for freight unsettled plans and settlement tabs

Support filtered and selected export across freight settlement board panels.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-08-21 18:17:10 +08:00
1 parent 8f1f08b284
commit b1f734dbb0
9 files changed
+303 -2

No files matched your search

+4
View File
@@ -1179,10 +1179,14 @@ export interface FreightSettlementUpdateBody {
export const freightApi = {
listUnsettledPlans: (params?: UnsettledPlanQuery) =>
request.get<UnsettledPlanListResponse>('/transport/freight/unsettled-plans', { params }),
exportUnsettledPlans: (data: Record<string, any>) =>
request.post('/transport/freight/unsettled-plans/export', data, { responseType: 'blob' }),
getByTransport: (transportId: string) =>
request.get<FreightSettlementBrief | null>(`/transport/freight/by-transport/${transportId}`),
list: (params?: FreightSettlementQuery) =>
request.get<FreightSettlementListResponse>('/transport/freight/', { params }),
export: (data: Record<string, any>) =>
request.post('/transport/freight/export', data, { responseType: 'blob' }),
get: (id: string) => request.get<FreightSettlement>(`/transport/freight/${id}`),
create: (data: { planIds?: string[]; transportIds?: string[] }) =>
request.post<FreightSettlement>('/transport/freight/', data),