优化
This commit is contained in:
@@ -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' })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user