Files
pda-overseas-uniapp/src/api/exception-returns.js
T

8 lines
593 B
JavaScript
Raw Normal View History

2026-10-30 17:59:57 +08:00
import { overseasRequest, overseasUpload } from './overseas.js'
const base = '/pda/v1/last-leg/return-receipts/exceptions'
const path = (number) => `${base}/${encodeURIComponent(number)}`
export const listExceptionReturns = () => overseasRequest('GET', base)
export const startExceptionReturn = (number) => overseasRequest('POST', `${path(number)}/start`, {})
export const uploadExceptionReturnEvidence = (number, filePath) => overseasUpload(`${path(number)}/evidence`, filePath)
export const receiveExceptionReturn = (number, body) => overseasRequest('POST', `${path(number)}/receive`, body)