2026-08-28 10:03:42 +08:00
|
|
|
import { overseasRequest } from './overseas.js'
|
|
|
|
|
|
2026-09-04 13:59:16 +08:00
|
|
|
const BASE = '/pda/v1/last-leg/pallet-operations'
|
2026-09-17 13:36:08 +08:00
|
|
|
export const findRelabelSources = (relabelNo) => overseasRequest('POST', `${BASE}/relabel-sources`, { relabelNo })
|
|
|
|
|
export const createRelabelPallet = (payload) => overseasRequest('POST', `${BASE}/relabel-pallet-label`, payload)
|
|
|
|
|
export const bindRelabelPallet = (payload) => overseasRequest('POST', `${BASE}/relabel-disassemble`, payload)
|
2026-10-14 13:53:24 +08:00
|
|
|
export const listRelabelPalletMeasurements = (relabelNo) => overseasRequest('POST', `${BASE}/relabel-pallet-measurements`, { relabelNo })
|
|
|
|
|
export const measureRelabelPallet = (payload) => overseasRequest('POST', `${BASE}/relabel-pallet-measure`, payload)
|
2026-08-28 10:03:42 +08:00
|
|
|
|
|
|
|
|
export function resolvePallet(code) {
|
|
|
|
|
return overseasRequest('POST', `${BASE}/pallets/resolve`, { code: String(code || '').trim() })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function assemblePallet(payload) {
|
|
|
|
|
return overseasRequest('POST', `${BASE}/assemble`, payload)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function disassemblePallet(payload) {
|
|
|
|
|
return overseasRequest('POST', `${BASE}/disassemble`, payload)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function swapPallet(payload) {
|
|
|
|
|
return overseasRequest('POST', `${BASE}/swap`, payload)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function unbindPallet(payload) {
|
|
|
|
|
return overseasRequest('POST', `${BASE}/unbind`, payload)
|
|
|
|
|
}
|