|
|
|
@ -951,13 +951,13 @@ public class PageController { |
|
|
|
List<RoleAndDepository> depositoryAndRole = roleService.findDepositoryAndRole(userToken.getId()); |
|
|
|
|
|
|
|
List<Integer> depositoryIdList = new ArrayList<>(); |
|
|
|
for (Depository depository:depositoryByAdminorg |
|
|
|
for (Depository depository : depositoryByAdminorg |
|
|
|
) { |
|
|
|
depositoryIdList.add(depository.getId()); |
|
|
|
} |
|
|
|
for (RoleAndDepository rad:depositoryAndRole |
|
|
|
for (RoleAndDepository rad : depositoryAndRole |
|
|
|
) { |
|
|
|
if(!depositoryIdList.contains(rad.getDepositoryId())){ |
|
|
|
if (!depositoryIdList.contains(rad.getDepositoryId())) { |
|
|
|
depositoryIdList.add(rad.getDepositoryId()); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1001,19 +1001,19 @@ public class PageController { |
|
|
|
List<RoleAndDepository> depositoryAndRole = roleService.findDepositoryAndRole(userToken.getId()); |
|
|
|
|
|
|
|
List<Integer> depositoryIdList = new ArrayList<>(); |
|
|
|
for (Depository depository:depositoryByAdminorg |
|
|
|
for (Depository depository : depositoryByAdminorg |
|
|
|
) { |
|
|
|
depositoryIdList.add(depository.getId()); |
|
|
|
} |
|
|
|
for (RoleAndDepository rad:depositoryAndRole |
|
|
|
for (RoleAndDepository rad : depositoryAndRole |
|
|
|
) { |
|
|
|
if(!depositoryIdList.contains(rad.getDepositoryId())){ |
|
|
|
if (!depositoryIdList.contains(rad.getDepositoryId())) { |
|
|
|
depositoryIdList.add(rad.getDepositoryId()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 获取已经出库的记录数据
|
|
|
|
Map<String, Object> mapForOut = depositoryRecordService.CalculateAllApplicationOutCount("已出库",depositoryIdList); |
|
|
|
Map<String, Object> mapForOut = depositoryRecordService.CalculateAllApplicationOutCount("已出库", depositoryIdList); |
|
|
|
// 转出物料数量
|
|
|
|
mv.addObject("OutCount", mapForOut.get("count")); |
|
|
|
// 获取数量比值
|
|
|
|
@ -1024,7 +1024,7 @@ public class PageController { |
|
|
|
mv.addObject("outPriceRadio", mapForOut.get("radioForPrice")); |
|
|
|
|
|
|
|
// 获取要出库的记录数据
|
|
|
|
Map<String, Object> mapForTrueOut = depositoryRecordService.CalculateAllApplicationOutCount("",depositoryIdList); |
|
|
|
Map<String, Object> mapForTrueOut = depositoryRecordService.CalculateAllApplicationOutCount("", depositoryIdList); |
|
|
|
// 转出物料金额
|
|
|
|
mv.addObject("allOutCount", mapForTrueOut.get("count")); |
|
|
|
// 获取数量比值
|
|
|
|
@ -1501,10 +1501,10 @@ public class PageController { |
|
|
|
price = bg.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); |
|
|
|
recordMinP.setPrice(price); |
|
|
|
} |
|
|
|
mv.addObject("display","none"); |
|
|
|
mv.addObject("display", "none"); |
|
|
|
if (recordMinP.getTransferId() != null) { |
|
|
|
// 如果是转移订单
|
|
|
|
mv.addObject("display","table-row"); |
|
|
|
mv.addObject("display", "table-row"); |
|
|
|
// 获取订单详情
|
|
|
|
TransferRecord transferRecord = depositoryRecordService.findTransferRecordById(recordMin.getTransferId()); |
|
|
|
Place place = placeService.findPlaceById(transferRecord.getToPlaceId()); |
|
|
|
@ -2469,9 +2469,11 @@ public class PageController { |
|
|
|
for (SplitInfo splitInfo : |
|
|
|
splitInfoByMid) { |
|
|
|
SplitInventory splitInventory = splitUnitService.findSplitInventoryByIidAndSid(placeAndMaterial.getId(), splitInfo.getId()); |
|
|
|
if (splitInventory != null) { |
|
|
|
splitInventory.setSplitInfo(splitInfo); |
|
|
|
splitInventoryByIid.add(splitInventory); |
|
|
|
} |
|
|
|
} |
|
|
|
mv.addObject("record", placeAndMaterial); |
|
|
|
mv.addObject("inventory", inventoryById); |
|
|
|
mv.addObject("splitInventoryList", splitInventoryByIid); |
|
|
|
|