This commit is contained in:
2026-09-15 15:13:15 +08:00
parent 7edea222d8
commit 6d5cc03741
4 changed files with 166 additions and 2 deletions
@@ -66,7 +66,7 @@ async function poll(action, predicate, attempts = 45, intervalMs = 1_000) {
return { result, attempts }
}
async function saveReceiptAndComplete(context, delivery, customerId, index) {
export async function saveReceiptAndComplete(context, delivery, customerId, index) {
const deliveryNo = id(delivery.deliveryNo)
const documentsPath = query(`${LASTLEG_BASE}/delivery-orders/${encodeURIComponent(deliveryNo)}/documents`, { customerId })
const before = await platform(context, 'GET', `读取第${index + 1}张派送单资料版本`, documentsPath)
@@ -180,7 +180,7 @@ function fixture(context) {
return { dispatch, receiving }
}
async function pickAll(context, token, dispatchNo) {
export async function pickAll(context, token, dispatchNo) {
let detail = await pda(context, token, 'GET', 'PDA读取本轮排车拣货任务',
`${PDA_DISPATCH_BASE}/${encodeURIComponent(dispatchNo)}`)
const items = Array.isArray(detail.data?.items) ? detail.data.items : []