| | |
| | | * |
| | | * @param id 编号 |
| | | */ |
| | | @Deprecated |
| | | void finishItemReceipt(Long id); |
| | | |
| | | /** |
| | | * 确认入库(简化流程):核对数量后一步完成入库 |
| | | * |
| | | * 允许从草稿、旧流程的待上架(非审批中)、待执行入库 直接完成: |
| | | * 逐行补齐批次与上架明细,按所选仓库/库区/库位生成库存事务,并把单据置为已完成。 |
| | | * |
| | | * @param id 采购入库单编号 |
| | | * @param warehouseId 入库仓库编号 |
| | | * @param locationId 入库库区编号 |
| | | * @param areaId 入库库位编号 |
| | | */ |
| | | void confirmItemReceipt(Long id, Long warehouseId, Long locationId, Long areaId); |
| | | |
| | | /** |
| | | * 取消采购入库单(任意非已完成/已取消状态 → 已取消) |
| | |
| | | return convertMap(getItemReceiptList(ids), MesWmItemReceiptDO::getId); |
| | | } |
| | | |
| | | /** |
| | | * 根据到货通知单生成采购入库单 |
| | | * |
| | | * @param arrivalNoticeId 到货通知单编号 |
| | | * @return 生成的采购入库单编号 |
| | | */ |
| | | Long generateItemReceiptFromArrivalNotice(Long arrivalNoticeId); |
| | | |
| | | /** |
| | | * 提交采购入库单审批 |
| | | * |
| | | * @param id 入库单编号 |
| | | * @param processDefinitionKey 流程定义 Key |
| | | */ |
| | | void submitItemReceiptApproval(Long id, String processDefinitionKey); |
| | | |
| | | /** |
| | | * 更新采购入库单审批状态(由 BPM Listener 回调) |
| | | * |
| | | * @param id 入库单编号 |
| | | * @param bpmResult BPM 审批结果 |
| | | */ |
| | | void updateItemReceiptAuditStatus(Long id, Integer bpmResult); |
| | | |
| | | } |