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' })
}