This commit is contained in:
2026-10-16 16:52:43 +08:00
parent fbee53c9de
commit ce7f6cee02
8 changed files with 196 additions and 7 deletions
@@ -70,6 +70,10 @@ export interface RelabelSummaryDto {
labelRequirement?: string | null
totalFileId?: string | null
totalFileName?: string | null
cartonTotalFileId?: string | null
cartonTotalFileName?: string | null
skuTotalFileId?: string | null
skuTotalFileName?: string | null
totalFileUrl?: string | null
chargeAmount?: number | string | null
chargeCurrency?: string | null
@@ -270,3 +274,9 @@ export async function downloadRelabelCompletionPhoto(relabelNo: string, fileId:
{ responseType: 'blob' },
)
}
/** 通过平台授权入口读取贴标资料或面单。 */
export async function downloadRelabelDocument(relabelNo: string, fileId: string, scope: string, itemId?: string) {
const base = '/platform/v1/last-leg/relabel-applications/' + encodeURIComponent(relabelNo)
return http.get<Blob, Blob>(scope === 'SHIPPING' ? base + '/shipping-label/' + encodeURIComponent(fileId) + '/download' : base + '/files/' + encodeURIComponent(fileId) + '/download', { params: scope === 'SHIPPING' ? undefined : { scope, itemId }, responseType: 'blob' })
}
@@ -227,3 +227,11 @@ export async function reviewWarehouseTransfer(
)
return normalizeTransferDetail(unwrapApiResponse(response))
}
/** 平台在指定客户范围内追加整单预报箱数。 */
export async function increaseWarehouseTransferForecast(customerId: string, transferNo: string, payload: { expectedPackageCount: number; packageCount: number }) {
const response = await http.post<ApiEnvelope<WarehouseTransferDetailDto>, ApiEnvelope<WarehouseTransferDetailDto>>(
'/platform/v1/last-leg/warehouse-transfers/' + encodeURIComponent(transferNo) + '/increase-forecast-cartons', payload, { params: { customerId } },
)
return unwrapApiResponse(response)
}