|
|
@ -33,6 +33,7 @@ import com.gaotao.modules.trans.service.TransNoControlService; |
|
|
import com.gaotao.modules.handlingunit.service.HandlingUnitService; |
|
|
import com.gaotao.modules.handlingunit.service.HandlingUnitService; |
|
|
import com.gaotao.modules.trans.service.ValidateInventoryPartInStockService; |
|
|
import com.gaotao.modules.trans.service.ValidateInventoryPartInStockService; |
|
|
import com.gaotao.modules.warehouse.service.InventoryStockService; |
|
|
import com.gaotao.modules.warehouse.service.InventoryStockService; |
|
|
|
|
|
import com.gaotao.modules.warehouse.service.WmsAvailabilityControlIdService; |
|
|
import io.jsonwebtoken.lang.Maps; |
|
|
import io.jsonwebtoken.lang.Maps; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@ -70,7 +71,8 @@ public class ProductionIssueServiceImpl implements ProductionIssueService { |
|
|
private ValidateInventoryPartInStockService validateInventoryPartInStockService; |
|
|
private ValidateInventoryPartInStockService validateInventoryPartInStockService; |
|
|
@Autowired |
|
|
@Autowired |
|
|
private CountModeChecker countModeChecker; |
|
|
private CountModeChecker countModeChecker; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private WmsAvailabilityControlIdService wmsAvailabilityControlIdService; |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public IPage<SOIssueNotifyHeader> getIssureNotifyByNo(SOIssueNotifyHeaderData data) { |
|
|
public IPage<SOIssueNotifyHeader> getIssureNotifyByNo(SOIssueNotifyHeaderData data) { |
|
|
@ -482,6 +484,9 @@ public class ProductionIssueServiceImpl implements ProductionIssueService { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public MaterialLabelInfo scanMaterialLabel(String labelCode, String site, String partNo) { |
|
|
public MaterialLabelInfo scanMaterialLabel(String labelCode, String site, String partNo) { |
|
|
|
|
|
if(!wmsAvailabilityControlIdService.checkPartOperationAllowed(site,labelCode,"part_order_issue_control")){ |
|
|
|
|
|
throw new RuntimeException("本标签的 availability control id 不允许发料!"); |
|
|
|
|
|
} |
|
|
HandlingUnit label = productionIssueMapper.scanMaterialLabel(labelCode, site,partNo); |
|
|
HandlingUnit label = productionIssueMapper.scanMaterialLabel(labelCode, site,partNo); |
|
|
|
|
|
|
|
|
if(label!=null){ |
|
|
if(label!=null){ |
|
|
@ -502,6 +507,9 @@ public class ProductionIssueServiceImpl implements ProductionIssueService { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public MaterialLabelInfo scanMaterialLabelNoPartNo(String labelCode, String site) { |
|
|
public MaterialLabelInfo scanMaterialLabelNoPartNo(String labelCode, String site) { |
|
|
|
|
|
if(!wmsAvailabilityControlIdService.checkPartOperationAllowed(site,labelCode,"part_order_issue_control")){ |
|
|
|
|
|
throw new RuntimeException("本标签的 availability control id 不允许发料!"); |
|
|
|
|
|
} |
|
|
HandlingUnit label = productionIssueMapper.scanMaterialLabelNoPartNo(labelCode, site); |
|
|
HandlingUnit label = productionIssueMapper.scanMaterialLabelNoPartNo(labelCode, site); |
|
|
|
|
|
|
|
|
if(label!=null){ |
|
|
if(label!=null){ |
|
|
|