|
@@ -304,6 +304,12 @@ public class OutStoreFormServiceImpl extends BaseServiceImpl<OutStoreFormMapper,
|
|
model.setUserInfo(userInfo);
|
|
model.setUserInfo(userInfo);
|
|
// 出库单详情
|
|
// 出库单详情
|
|
List<OutStoreDetailDTO> detailList = model.getDetailList();
|
|
List<OutStoreDetailDTO> detailList = model.getDetailList();
|
|
|
|
+ for (OutStoreDetailDTO detailDTO:detailList){
|
|
|
|
+ detailDTO.setProjectNo(project.getParentNo());
|
|
|
|
+ detailDTO.setProjectName(project.getParentName());
|
|
|
|
+ detailDTO.setProjectSecondNo(project.getNo());
|
|
|
|
+ detailDTO.setProjectSecondName(project.getName());
|
|
|
|
+ }
|
|
List<String> storeIds = detailList.stream().map(OutStoreDetailDTO::getStoreId).distinct().collect(Collectors.toList());
|
|
List<String> storeIds = detailList.stream().map(OutStoreDetailDTO::getStoreId).distinct().collect(Collectors.toList());
|
|
if (CollectionUtils.isEmpty(storeIds)) {
|
|
if (CollectionUtils.isEmpty(storeIds)) {
|
|
throw new BusinessException("请选择仓库备件");
|
|
throw new BusinessException("请选择仓库备件");
|