|
|
|
@ -23,9 +23,11 @@ import org.springblade.core.tool.utils.Func; |
|
|
|
import org.springblade.wms.pojo.dto.StRequisitionDTO; |
|
|
|
import org.springblade.wms.pojo.dto.StRequisitionDTO; |
|
|
|
import org.springblade.wms.pojo.entity.StRequisition; |
|
|
|
import org.springblade.wms.pojo.entity.StRequisition; |
|
|
|
import org.springblade.wms.pojo.entity.StStorageLocation; |
|
|
|
import org.springblade.wms.pojo.entity.StStorageLocation; |
|
|
|
|
|
|
|
import org.springblade.wms.pojo.entity.StStorehouse; |
|
|
|
import org.springblade.wms.pojo.vo.StRequisitionVO; |
|
|
|
import org.springblade.wms.pojo.vo.StRequisitionVO; |
|
|
|
import org.springblade.wms.service.IStRequisitionService; |
|
|
|
import org.springblade.wms.service.IStRequisitionService; |
|
|
|
import org.springblade.wms.service.IStStorageLocationService; |
|
|
|
import org.springblade.wms.service.IStStorageLocationService; |
|
|
|
|
|
|
|
import org.springblade.wms.service.IStStorehouseService; |
|
|
|
import org.springblade.wms.wrapper.StRequisitionWrapper; |
|
|
|
import org.springblade.wms.wrapper.StRequisitionWrapper; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
|
|
@ -49,6 +51,7 @@ public class StRequisitionController extends BladeController { |
|
|
|
|
|
|
|
|
|
|
|
private final IStRequisitionService stRequisitionService; |
|
|
|
private final IStRequisitionService stRequisitionService; |
|
|
|
private final IStStorageLocationService stStorageLocationService; |
|
|
|
private final IStStorageLocationService stStorageLocationService; |
|
|
|
|
|
|
|
private final IStStorehouseService stStorehouseService; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 领料单打印 详情 |
|
|
|
* 领料单打印 详情 |
|
|
|
@ -109,6 +112,12 @@ public class StRequisitionController extends BladeController { |
|
|
|
pages.getRecords().forEach(vo -> { |
|
|
|
pages.getRecords().forEach(vo -> { |
|
|
|
vo.setPushQuantity(Double.valueOf(vo.getInvysqty())); // pushQuantity = 申请数量
|
|
|
|
vo.setPushQuantity(Double.valueOf(vo.getInvysqty())); // pushQuantity = 申请数量
|
|
|
|
StStorageLocation loc = stStorageLocationService.findByGoodsCode(vo.getPrtno()); |
|
|
|
StStorageLocation loc = stStorageLocationService.findByGoodsCode(vo.getPrtno()); |
|
|
|
|
|
|
|
if (loc != null) { |
|
|
|
|
|
|
|
StStorehouse storehouse = stStorehouseService.getById(loc.getShId()); |
|
|
|
|
|
|
|
if (storehouse != null) { |
|
|
|
|
|
|
|
loc.setShName(storehouse.getShName()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
vo.setPushHouse(loc); // pushHouse = 库位对象
|
|
|
|
vo.setPushHouse(loc); // pushHouse = 库位对象
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|