|
|
|
@ -528,6 +528,9 @@ public class MesInputDefectRecordService implements IMesInputDefectRecordService
|
|
|
|
|
if (version != null) {
|
|
|
|
|
srcNo = version.getReceiveInventoryPoint();
|
|
|
|
|
}
|
|
|
|
|
if (!headModel) {
|
|
|
|
|
srcNo = mesPartModels.get(0).getLocateNo();
|
|
|
|
|
}
|
|
|
|
|
String destLocateNo = getDestLocateNo(model, model.getOrganizeCode());
|
|
|
|
|
if(!Objects.equals(srcNo, destLocateNo)) {
|
|
|
|
|
throw new ImppBusiException(String.format("【%s】该条码需要完成质检,再重新录入电子化检验", model.getSn()));
|
|
|
|
|