| | |
| | | salesId: number; |
| | | scanContent: string; |
| | | quantity?: number; |
| | | scanType?: 'BAG' | 'PALLET' | 'BATCH'; |
| | | bagIds?: number[]; |
| | | } |
| | | |
| | | export interface PickingBag { |
| | | id: number; |
| | | code: string; |
| | | businessCode?: string; |
| | | palletId?: number; |
| | | selectable: boolean; |
| | | unavailableReason?: string; |
| | | } |
| | | |
| | | export interface ProductSalesScanResponse { |
| | |
| | | bagCount?: number; |
| | | inboundBagCount?: number; |
| | | message?: string; |
| | | bags?: PickingBag[]; |
| | | selectedBagIds?: number[]; |
| | | } |
| | | } |
| | | |
| | | /** 查询销售出库单分页 */ |
| | | export function getProductSalesPage(params: PageParam) { |
| | | export function getProductSalesPage(params: PageParam & { code?: string; status?: number }) { |
| | | return requestClient.get<PageResult<MesWmProductSalesApi.ProductSales>>( |
| | | '/mes/wm/product-sales/page', |
| | | { params }, |
| | |
| | | ); |
| | | } |
| | | |
| | | export function previewProductSalesScan(code: string, scanType?: string, salesId?: number) { |
| | | return requestClient.get<MesWmProductSalesApi.ProductSalesScanResponse>('/mes/wm/product-sales/scan-preview', { params: { code, scanType, salesId } }); |
| | | } |
| | | |
| | | /** 执行拣货 */ |
| | | export function stockProductSales(id: number) { |
| | | return requestClient.put(`/mes/wm/product-sales/stock?id=${id}`); |