|
|
|
@ -31,6 +31,7 @@ public class WmsPdaApiController extends BaseController {
|
|
|
|
private final IWmsInventoryService wmsInventoryService;
|
|
|
|
private final IWmsInventoryService wmsInventoryService;
|
|
|
|
private final IWmsMoveOrderService wmsMoveOrderService;
|
|
|
|
private final IWmsMoveOrderService wmsMoveOrderService;
|
|
|
|
private final IWmsAllocateOrderDetailService wmsAllocateOrderDetailService;
|
|
|
|
private final IWmsAllocateOrderDetailService wmsAllocateOrderDetailService;
|
|
|
|
|
|
|
|
private final IWmsAllocateTaskService wmsAllocateTaskService;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 原材料退库-现场扫描
|
|
|
|
* 原材料退库-现场扫描
|
|
|
|
@ -155,8 +156,9 @@ public class WmsPdaApiController extends BaseController {
|
|
|
|
if (orderType.equals("5")) {
|
|
|
|
if (orderType.equals("5")) {
|
|
|
|
wmsOutstockDetailVoList = apiService.outSelectByOrderCode(orderCode);
|
|
|
|
wmsOutstockDetailVoList = apiService.outSelectByOrderCode(orderCode);
|
|
|
|
wmsOutstockDetailVoList.forEach(item -> {
|
|
|
|
wmsOutstockDetailVoList.forEach(item -> {
|
|
|
|
WmsInventoryVo inventory = wmsInventoryService.selectOrderBeachCode(item.getMaterialId());
|
|
|
|
List<WmsInventoryVo> inventoryVoList = wmsInventoryService.selectOrderBeachCode(item.getMaterialId());
|
|
|
|
if (inventory != null) {
|
|
|
|
if (inventoryVoList != null) {
|
|
|
|
|
|
|
|
WmsInventoryVo inventory = inventoryVoList.get(0);
|
|
|
|
item.setLocationCode(inventory.getLocationCode());
|
|
|
|
item.setLocationCode(inventory.getLocationCode());
|
|
|
|
item.setBatchCode(inventory.getBatchCode());
|
|
|
|
item.setBatchCode(inventory.getBatchCode());
|
|
|
|
item.setInventoryQty(inventory.getInventoryQty());
|
|
|
|
item.setInventoryQty(inventory.getInventoryQty());
|
|
|
|
@ -169,7 +171,8 @@ public class WmsPdaApiController extends BaseController {
|
|
|
|
wmsOutstockDetailVoList = new ArrayList<>(list.size());
|
|
|
|
wmsOutstockDetailVoList = new ArrayList<>(list.size());
|
|
|
|
|
|
|
|
|
|
|
|
list.forEach(item -> {
|
|
|
|
list.forEach(item -> {
|
|
|
|
WmsInventoryVo inventory = wmsInventoryService.selectOrderBeachCode(item.getMaterialId());
|
|
|
|
List<WmsInventoryVo> inventoryList = wmsInventoryService.selectOrderBeachCode(item.getMaterialId());
|
|
|
|
|
|
|
|
WmsInventoryVo inventory = inventoryList.get(0);
|
|
|
|
WmsOutstockDetailVo vo = new WmsOutstockDetailVo();
|
|
|
|
WmsOutstockDetailVo vo = new WmsOutstockDetailVo();
|
|
|
|
vo.setOutstockCode(item.getAllocateCode());
|
|
|
|
vo.setOutstockCode(item.getAllocateCode());
|
|
|
|
vo.setLocationCode(inventory.getLocationCode());
|
|
|
|
vo.setLocationCode(inventory.getLocationCode());
|
|
|
|
@ -303,7 +306,6 @@ public class WmsPdaApiController extends BaseController {
|
|
|
|
return R.ok("查询成功", tyreInfo);
|
|
|
|
return R.ok("查询成功", tyreInfo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 成品跟载具绑定
|
|
|
|
* 成品跟载具绑定
|
|
|
|
*
|
|
|
|
*
|
|
|
|
@ -398,7 +400,6 @@ public class WmsPdaApiController extends BaseController {
|
|
|
|
return R.ok(wmsHppStorageDetailVo);
|
|
|
|
return R.ok(wmsHppStorageDetailVo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/semi/submitOutInfo")
|
|
|
|
@PostMapping("/semi/submitOutInfo")
|
|
|
|
public R<Void> semiSubmitOutInfo(@RequestBody WmsHppStorageDetailVo vo) {
|
|
|
|
public R<Void> semiSubmitOutInfo(@RequestBody WmsHppStorageDetailVo vo) {
|
|
|
|
Boolean result = apiService.semiSubmitOutInfo(vo);
|
|
|
|
Boolean result = apiService.semiSubmitOutInfo(vo);
|
|
|
|
@ -518,4 +519,18 @@ public class WmsPdaApiController extends BaseController {
|
|
|
|
return list == null ? R.fail() : R.ok(list);
|
|
|
|
return list == null ? R.fail() : R.ok(list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//调拨入库提交
|
|
|
|
|
|
|
|
@PostMapping("/allocate/SelectCode")
|
|
|
|
|
|
|
|
private R<WmsAllocateTaskVo> allocateSelectCode(String code) {
|
|
|
|
|
|
|
|
List<WmsAllocateTaskVo> list = wmsAllocateTaskService.allocateSelectCode(code);
|
|
|
|
|
|
|
|
return list == null ? R.fail() : R.ok(list.get(0));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/allocate/inSubmit")
|
|
|
|
|
|
|
|
private R<Void> allocateinSubmit(@RequestBody WmsAllocateTaskVo vo) {
|
|
|
|
|
|
|
|
// List<WmsAllocateTaskVo> list = wmsAllocateTaskService.allocateSelectCode(code);
|
|
|
|
|
|
|
|
// return list == null ? R.fail() : R.ok(list.get(0));
|
|
|
|
|
|
|
|
return R.ok();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|