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