优化
This commit is contained in:
@@ -4,9 +4,10 @@ export interface ProcurementWorkflowReceipt { id: string; quantity: number; file
|
||||
export interface ProcurementOutbound { id: string; outboundNo: string; quantity: number; trackingNo: string; status: string; fileIds: string[]; createdAt: string; completedAt: string | null }
|
||||
export interface ProcurementWorkflow {
|
||||
orderNo: string; version: number; status: string; receivedQuantity: number; stockQuantity: number; reservedQuantity: number; availableQuantity: number
|
||||
rejectionReason: string | null; photosNeedUpdate: boolean
|
||||
receipts: ProcurementWorkflowReceipt[]; outbounds: ProcurementOutbound[]
|
||||
}
|
||||
export interface WorkflowCommand { version: number; idempotencyKey: string; quantity?: number; trackingNo?: string; fileIds?: string[] }
|
||||
export interface WorkflowCommand { version: number; idempotencyKey: string; receiptId?: string; quantity?: number; trackingNo?: string; fileIds?: string[] }
|
||||
const base = '/platform/v1/last-leg/overseas-procurements'
|
||||
export async function getProcurementWorkflow(orderNo: string, customerId: string) {
|
||||
return unwrapApiResponse(await http.get<ApiEnvelope<ProcurementWorkflow>, ApiEnvelope<ProcurementWorkflow>>(`${base}/${encodeURIComponent(orderNo)}/workflow`, { params: { customerId } }))
|
||||
|
||||
Reference in New Issue
Block a user