This commit is contained in:
2026-10-09 15:25:36 +08:00
parent 648b0c858d
commit 2d68431199
8 changed files with 306 additions and 2 deletions
+20
View File
@@ -0,0 +1,20 @@
import { overseasRequest } from './overseas.js'
const BASE = '/pda/v1/last-leg/return-inventory/counting'
export function getCurrentReturnCountTask() {
return overseasRequest('GET', `${BASE}/current`)
}
export function beginReturnCountTask(receiptNo) {
return overseasRequest('POST', `${BASE}/receipts/${encodeURIComponent(receiptNo)}/begin`)
}
export function scanReturnCountTasks(code) {
return overseasRequest('GET', `${BASE}/scan/${encodeURIComponent(String(code).trim())}`)
}
export function listReturnCountTasks({ page = 1, size = 10, keyword = '' } = {}) {
return overseasRequest('GET', `${BASE}/tasks?page=${page}&size=${size}&keyword=${encodeURIComponent(keyword.trim())}`)
}
export function scanReturnCountCarton(mark) {
return overseasRequest('GET', `${BASE}/cartons/${encodeURIComponent(String(mark).trim())}`)
}
export function confirmReturnCount(receiptNo, request) {
return overseasRequest('POST', `${BASE}/receipts/${encodeURIComponent(receiptNo)}`, request)
}