提交
This commit is contained in:
1 parent
7c838cfb2d
commit
8e70047f4c
161 files changed
+16659
-10436
No files matched your search
@@ -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
|
||||
})
|
||||
}
|
||||
@@ -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}`),
|
||||
|
||||
Reference in new issue
Block a user