| | |
| | | package cn.iocoder.yudao.module.mes.service.wm.itemreceipt; |
| | | |
| | | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| | | import cn.iocoder.yudao.module.mes.controller.admin.wm.itemreceipt.vo.MesWmItemReceiptImportExcelVO; |
| | | import cn.iocoder.yudao.module.mes.controller.admin.wm.itemreceipt.vo.MesWmItemReceiptImportRespVO; |
| | | import cn.iocoder.yudao.module.mes.controller.admin.wm.itemreceipt.vo.MesWmItemReceiptPageReqVO; |
| | | import cn.iocoder.yudao.module.mes.controller.admin.wm.itemreceipt.vo.MesWmItemReceiptSaveReqVO; |
| | | import cn.iocoder.yudao.module.mes.dal.dataobject.wm.itemreceipt.MesWmItemReceiptDO; |
| | |
| | | PageResult<MesWmItemReceiptDO> getItemReceiptPage(MesWmItemReceiptPageReqVO pageReqVO); |
| | | |
| | | /** |
| | | * 提交采购入库单审批(草稿 → 待上架) |
| | | * |
| | | * 审核人由「系统管理 - 审批配置」按业务类型统一配置(业务编码 item_receipt_approve), |
| | | * 提交时无需指定;未启用审批或未配置有效审核人时抛出业务异常。 |
| | | * 提交采购入库单(草稿 → 待上架) |
| | | * |
| | | * @param id 编号 |
| | | */ |
| | | void submitItemReceipt(Long id); |
| | | |
| | | /** |
| | | * 执行上架(待上架 → 待入库) |
| | | * 执行上架(待上架 → 待执行入库) |
| | | * |
| | | * 校验每行上架明细数量之和等于行入库数量后推进单据状态。 |
| | | * |
| | | * @param id 编号 |
| | | */ |
| | |
| | | * @return 采购入库单 |
| | | */ |
| | | MesWmItemReceiptDO validateItemReceiptEditable(Long id); |
| | | |
| | | /** |
| | | * 校验采购入库单存在且行数据可编辑(仅草稿) |
| | | * |
| | | * @param id 编号 |
| | | * @return 采购入库单 |
| | | */ |
| | | MesWmItemReceiptDO validateItemReceiptLineEditable(Long id); |
| | | |
| | | /** |
| | | * 查询指定供应商的采购入库单数量 |
| | |
| | | */ |
| | | void auditItemReceipt(Long id, Boolean pass, String reviewRemark); |
| | | |
| | | /** |
| | | * 导入采购入库单 |
| | | * |
| | | * @param importList 导入数据 |
| | | * @param updateSupport 是否支持更新 |
| | | * @return 导入结果 |
| | | */ |
| | | MesWmItemReceiptImportRespVO importItemReceiptList(List<MesWmItemReceiptImportExcelVO> importList, boolean updateSupport); |
| | | |
| | | } |