This commit is contained in:
zlwu committed 2026-07-01 18:52:26 +08:00
1 parent 7c838cfb2d
commit 8e70047f4c
161 files changed
+16659 -10436

No files matched your search

+7
View File
@@ -575,3 +575,10 @@ export function fetchAttachmentDownloadUrl(data: { fileUrl: string; fileName?: s
data
})
}
export function fetchAttachmentPreviewUrl(data: { fileUrl: string; fileName?: string }) {
return request.post<{ previewUrl: string }>({
url: '/web/admin/attachment/preview-url',
data
})
}
+16 -1
View File
@@ -622,6 +622,12 @@ export interface UnsettledPlanItem {
transportCompany?: string
freightAmount: number
archiveTime?: string
transportId: string
transportNo?: string
driverName?: string
transportMedium?: string
startPoint?: string
endPoint?: string
}
export interface UnsettledPlanQuery {
@@ -740,6 +746,15 @@ export interface FreightSettlementDisburseBody {
remark?: string
}
export interface FreightSettlementUpdateBody {
invoiceNo?: string
invoiceDate?: string
invoiceAmount?: number
invoiceAttachmentUrls?: string
remark?: string
transportIds?: string[]
}
export const freightApi = {
listUnsettledPlans: (params?: UnsettledPlanQuery) =>
request.get<UnsettledPlanListResponse>('/transport/freight/unsettled-plans', { params }),
@@ -750,7 +765,7 @@ export const freightApi = {
get: (id: string) => request.get<FreightSettlement>(`/transport/freight/${id}`),
create: (data: { planIds?: string[]; transportIds?: string[] }) =>
request.post<FreightSettlement>('/transport/freight/', data),
update: (id: string, data: Partial<FreightSettlement>) =>
update: (id: string, data: FreightSettlementUpdateBody) =>
request.put<FreightSettlement>(`/transport/freight/${id}`, data),
cancel: (id: string) => request.post<FreightSettlement>(`/transport/freight/${id}/cancel`),
delete: (id: string) => request.delete(`/transport/freight/${id}`),