| | |
| | | import cn.iocoder.yudao.module.mes.controller.admin.qc.oqc.vo.MesQcOqcSaveReqVO; |
| | | import cn.iocoder.yudao.module.mes.dal.dataobject.qc.defectrecord.MesQcDefectRecordDO; |
| | | import cn.iocoder.yudao.module.mes.dal.dataobject.qc.oqc.MesQcOqcDO; |
| | | import cn.iocoder.yudao.module.mes.dal.dataobject.wm.productsales.MesWmProductSalesLineDO; |
| | | import jakarta.validation.Valid; |
| | | |
| | | import java.util.List; |
| | |
| | | /** |
| | | * MES 出货检验单(OQC) Service 接口 |
| | | * |
| | | * @author 芋道源码 |
| | | * @author 超级管理员 |
| | | */ |
| | | public interface MesQcOqcService { |
| | | |
| | |
| | | * @param id 编号 |
| | | */ |
| | | void finishOqc(Long id); |
| | | void retestOqc(cn.iocoder.yudao.module.mes.controller.admin.qc.oqc.vo.MesQcOqcRetestReqVO reqVO); |
| | | void salesApprove(Long id, boolean approved, String opinion); |
| | | void companyApprove(Long id, boolean approved, String opinion); |
| | | List<cn.iocoder.yudao.module.mes.dal.dataobject.qc.oqc.MesQcOqcActionDO> getActions(Long id); |
| | | |
| | | /** |
| | | * 删除出货检验单 |
| | |
| | | */ |
| | | void recalculateDefectStats(Long oqcId, List<MesQcDefectRecordDO> records); |
| | | |
| | | /** |
| | | * 根据销售出库单明细自动创建 OQC 检验单 |
| | | * |
| | | * @param salesId 销售出库单 ID |
| | | * @param line 销售出库单明细 |
| | | * @param salesCode 销售出库单编码 |
| | | * @param clientId 客户 ID |
| | | * @return OQC 检验单 ID |
| | | */ |
| | | Long createOqcFromProductSales(Long salesId, MesWmProductSalesLineDO line, String salesCode, Long clientId); |
| | | |
| | | } |