| | |
| | | void cancelWorkOrder(Long id); |
| | | |
| | | /** |
| | | * 提交工单审批 |
| | | * |
| | | * @param id 编号 |
| | | * @param userId 用户编号 |
| | | */ |
| | | void submitWorkOrder(Long id, Long userId); |
| | | |
| | | /** |
| | | * 更新工单的审批状态 |
| | | * |
| | | * @param id 编号 |
| | | * @param bpmResult BPM 审批结果 |
| | | */ |
| | | void updateWorkOrderAuditStatus(Long id, Integer bpmResult); |
| | | |
| | | /** |
| | | * 累加工单的已生产数量 |
| | | * |
| | | * @param id 工单编号 |
| | |
| | | void updateProducedQuantity(Long id, BigDecimal incrQuantityProduced); |
| | | |
| | | /** |
| | | * 累加工单的已排产数量 |
| | | * |
| | | * @param id 工单编号 |
| | | * @param incrQuantityScheduled 本次排产数量增量 |
| | | */ |
| | | void updateScheduledQuantity(Long id, BigDecimal incrQuantityScheduled); |
| | | |
| | | /** |
| | | * 校验排产数量不超过工单数量 |
| | | * |
| | | * @param id 工单编号 |
| | | * @param scheduleQuantity 本次排产数量 |
| | | */ |
| | | void validateScheduleQuantity(Long id, BigDecimal scheduleQuantity); |
| | | |
| | | /** |
| | | * 检查并自动完成工单 |
| | | * |
| | | * @param id 工单编号 |
| | | * @return true=已自动完成, false=未满足条件 |
| | | */ |
| | | boolean checkAndAutoFinishWorkOrder(Long id); |
| | | |
| | | /** |
| | | * 根据供应商 ID 统计工单数量 |
| | | * |
| | | * @param vendorId 供应商 ID |
| | |
| | | */ |
| | | Long getWorkOrderCountByVendorId(Long vendorId); |
| | | |
| | | /** |
| | | * 获得工单进度详情(含工序进度和任务列表) |
| | | * |
| | | * @param id 工单编号 |
| | | * @return 工单进度详情 |
| | | */ |
| | | cn.iocoder.yudao.module.mes.controller.admin.pro.workorder.vo.MesProWorkOrderProgressRespVO getWorkOrderProgress(Long id); |
| | | |
| | | } |