| | |
| | | clientCode?: string; // 客户编码 |
| | | clientName?: string; // 客户名称 |
| | | salesOrderCode?: string; // 销售订单编号 |
| | | saleOrderId?: number; // 销售订单ID |
| | | salesDate?: number; // 出库日期 |
| | | contactName?: string; // 收货人 |
| | | contactTelephone?: string; // 联系方式 |
| | |
| | | shippingNumber?: string; // 运输单号 |
| | | status?: number; // 单据状态 |
| | | remark?: string; // 备注 |
| | | stockState?: number; // 库存状态 |
| | | createTime?: Date; // 创建时间 |
| | | } |
| | | |
| | | export interface ProductSalesScanRequest { |
| | | salesId: number; |
| | | scanContent: string; |
| | | quantity?: number; |
| | | } |
| | | |
| | | export interface ProductSalesScanResponse { |
| | | scanType?: 'BAG' | 'PALLET' | string; |
| | | codeId?: number; |
| | | scanContent?: string; |
| | | itemId?: number; |
| | | itemCode?: string; |
| | | itemName?: string; |
| | | batchId?: number; |
| | | batchCode?: string; |
| | | materialStockId?: number; |
| | | availableQuantity?: number; |
| | | scanQuantity?: number; |
| | | outboundQuantity?: number; |
| | | alreadyScanned?: boolean; |
| | | detailId?: number; |
| | | warehouseId?: number; |
| | | locationId?: number; |
| | | areaId?: number; |
| | | palletExpanded?: boolean; |
| | | bagCount?: number; |
| | | inboundBagCount?: number; |
| | | message?: string; |
| | | } |
| | | } |
| | | |
| | |
| | | return requestClient.put(`/mes/wm/product-sales/submit?id=${id}`); |
| | | } |
| | | |
| | | /** 扫码拣货 */ |
| | | export function scanProductSales( |
| | | data: MesWmProductSalesApi.ProductSalesScanRequest, |
| | | ) { |
| | | return requestClient.post<MesWmProductSalesApi.ProductSalesScanResponse>( |
| | | '/mes/wm/product-sales/scan', |
| | | data, |
| | | ); |
| | | } |
| | | |
| | | /** 执行拣货 */ |
| | | export function stockProductSales(id: number) { |
| | | return requestClient.put(`/mes/wm/product-sales/stock?id=${id}`); |