fix: open dispatch BOL as PDF

This commit is contained in:
2026-09-11 10:09:14 +08:00
parent b7b9835bf9
commit d92a883f8a
6 changed files with 35 additions and 195 deletions
@@ -145,6 +145,13 @@ export async function getDispatch(dispatchNo: string) {
return unwrapApiResponse(response)
}
export async function getDispatchBolPdf(dispatchNo: string) {
return overseasHttp.get<Blob, Blob>(
`/platform/v1/last-leg/dispatches/${encodeURIComponent(dispatchNo)}/prints/bol`,
{ responseType: 'blob' },
)
}
export async function updateDispatch(dispatchNo: string, payload: UpdateDispatchPayload) {
const response = await overseasHttp.put<ApiEnvelope<DispatchSummaryDto>, ApiEnvelope<DispatchSummaryDto>>(
`/platform/v1/last-leg/dispatches/${encodeURIComponent(dispatchNo)}`, payload,