This commit is contained in:
2026-10-15 15:45:16 +08:00
parent 2ade6bfa3c
commit 092690791d
10 changed files with 348 additions and 16 deletions
@@ -35,11 +35,21 @@ export interface WarehouseTransferItemDto {
id: string
skuCode: string
productNameZh: string
quantity?: number | string | null
packageCount: number
shippingMark?: string | null
}
export interface WarehouseTransferCartonDto {
transferItemId?: string | null
transferPalletId?: string | null
length?: number | string | null
width?: number | string | null
height?: number | string | null
weight?: number | string | null
quantity?: number | string | null
countedAt?: string | null
discrepancyReason?: string | null
cartonMark?: string | null
customerCartonMark?: string | null
cartonIndex: number
@@ -47,6 +57,19 @@ export interface WarehouseTransferCartonDto {
status: string
}
export interface WarehouseTransferCartonLabelDto {
transferNo: string
cartons: WarehouseTransferCartonDto[]
printableHtml: string
}
export async function getWarehouseTransferCartonLabel(customerId: string, transferNo: string) {
const response = await http.get<ApiEnvelope<WarehouseTransferCartonLabelDto>, ApiEnvelope<WarehouseTransferCartonLabelDto>>(
`/platform/v1/last-leg/warehouse-transfers/${encodeURIComponent(transferNo)}/carton-label`, { params: { customerId } },
)
return unwrapApiResponse(response)
}
export interface WarehouseTransferRelabelBindingDto {
operationType: string
customerCartonMark: string
@@ -61,6 +84,7 @@ export interface WarehouseTransferRelabelBindingDto {
export interface WarehouseTransferPalletDto {
id: string
sequenceNo: number
warehouseLocationCode?: string | null
palletNo?: string | null
cartonCount: number
grossWeightKg: number