| | |
| | | void updatePurchaseOrderStatus(Long id, Integer status); |
| | | |
| | | /** |
| | | * 提交采购订单审批 |
| | | * |
| | | * @param id 编号 |
| | | * @param processDefinitionKey 流程定义 Key |
| | | * @param userId 用户编号 |
| | | */ |
| | | void submitPurchaseOrder(Long id, String processDefinitionKey, Long userId); |
| | | |
| | | /** |
| | | * 获取采购订单审批流程列表 |
| | | * |
| | | * @return 流程定义列表 |
| | | */ |
| | | List<Map<String, Object>> getPurchaseOrderApproveProcessDefinitionList(); |
| | | |
| | | /** |
| | | * 更新采购订单审批结果(BPM 回调) |
| | | * |
| | | * @param id 编号 |
| | | * @param bpmResult BPM 审批结果 |
| | | */ |
| | | void updatePurchaseOrderAuditStatus(Long id, Integer bpmResult); |
| | | |
| | | /** |
| | | * 更新采购订单的入库数量 |
| | | * |
| | | * @param id 编号 |
| | |
| | | */ |
| | | List<ErpPurchaseOrderDO> getPurchaseOrderList(List<Long> ids); |
| | | |
| | | /** |
| | | * 更新采购订单的入库状态 |
| | | * |
| | | * 根据明细入库数量自动计算订单状态: |
| | | * - 所有明细都完成入库 → 全部入库状态 |
| | | * - 部分明细完成入库 → 部分入库状态 |
| | | * - 无明细入库 → 未入库状态 |
| | | * |
| | | * @param orderId 订单编号 |
| | | */ |
| | | void updatePurchaseOrderInStatus(Long orderId); |
| | | |
| | | /** |
| | | * 确认收货 |
| | | * |
| | | * 生成到货通知单,状态为待入库 |
| | | * |
| | | * @param id 采购订单编号 |
| | | * @return 到货通知单编号 |
| | | */ |
| | | Long confirmReceipt(Long id); |
| | | |
| | | } |