|
|
|
@ -252,23 +252,6 @@ public class MesInputDefectRecordService implements IMesInputDefectRecordService
|
|
|
|
|
MesPartInspection partInspection = null;
|
|
|
|
|
//返工单返修完成,需可疑品移正常库
|
|
|
|
|
|
|
|
|
|
if (model.isTransferFlg() && model.getSourceType() == MesExtEnumUtil.PART_INSPECTION_SOURCE_TYPE.SINGLE.getValue()) {
|
|
|
|
|
//电子化检验
|
|
|
|
|
String target = configService.getCfgValue(org, "LGORT");
|
|
|
|
|
|
|
|
|
|
DdlPackBean ddlPackBean = DdlPackBean.getDdlPackBean(org);
|
|
|
|
|
DdlPreparedPack.getStringEqualPack(model.getPartNo(), "partNo", ddlPackBean);
|
|
|
|
|
|
|
|
|
|
MesProductVersion version = productVersionRepository.getByProperty(ddlPackBean);
|
|
|
|
|
if (version != null) {
|
|
|
|
|
target = version.getReceiveInventoryPoint();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MesMove move = createMove(model, getDestLocateNo(model, org), target, org, null == produceSn ? model.getWorkCenterCode() : produceSn.getWorkCenterCode());
|
|
|
|
|
moveRepository.save(move);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//判断首次合格还是 多次检验最终为合格品
|
|
|
|
|
//若返修单返修完成,则会生成一个新的检验单并合格
|
|
|
|
|
//若检验单为空,则生成新的单据并合格
|
|
|
|
|