16 lines
1.0 KiB
TypeScript
16 lines
1.0 KiB
TypeScript
import { apiRequest, apiBlobRequest } from '@/api/http'
|
|
|
|
export interface PickupProgress {
|
|
status: string; tripNo: string | null; vehiclePlate: string | null; driverName: string | null; driverPhone: string | null
|
|
plannedDepartureAt: string | null; actualPackages: number | null; pickedAt: string | null; arrivedAt: string | null; remark: string | null
|
|
evidence: { fileId: string; fileName: string }[]
|
|
}
|
|
/** 客户范围由统一会话确定,不允许调用方传入其他客户。 */
|
|
export function getTransferPickupProgress(transferNo: string) {
|
|
return apiRequest<PickupProgress | null>({ method: 'GET', url: `/merchant/v1/last-leg/warehouse-transfers/${encodeURIComponent(transferNo)}/pickup-progress` })
|
|
}
|
|
/** 只下载本票已经确认的凭证。 */
|
|
export function downloadTransferPickupEvidence(transferNo: string, fileId: string) {
|
|
return apiBlobRequest({ method: 'GET', url: `/merchant/v1/last-leg/warehouse-transfers/${encodeURIComponent(transferNo)}/pickup-evidence/${encodeURIComponent(fileId)}` })
|
|
}
|