| | |
| | | import type { PageParam, PageResult } from '../../../../../packages/effects/request/src'; |
| | | import type { PageParam, PageResult } from '@vben/request'; |
| | | |
| | | import { requestClient } from '#/api/request'; |
| | | |
| | |
| | | params, |
| | | }); |
| | | } |
| | | |
| | | /** PDA 扫码盘点 */ |
| | | export function scanStockTaking(data: { |
| | | taskId: number; // 盘点任务编号 |
| | | scanCode: string; // 追溯码/袋码/托盘码/批次号 |
| | | takingQuantity: number; // 盘点数量 |
| | | remark?: string; // 备注 |
| | | }) { |
| | | return requestClient.post<number>('/mes/wm/stocktaking-task/scan', data); |
| | | } |
| | | |
| | | /** 处理盘点差异(盘盈入库/盘亏出库,调整库存) */ |
| | | export function processStockTakingDifference(id: number) { |
| | | return requestClient.post<boolean>( |
| | | '/mes/wm/stocktaking-task/process-difference', |
| | | null, |
| | | { params: { id } }, |
| | | ); |
| | | } |