|
|
|
@ -1461,14 +1461,16 @@ public class DistributionStockupAppController extends BladeController {
|
|
|
|
|
String audioValue = DictBizCache.getValue(DictBizConstant.PDA_AUDIO, PdaAudioLingoStatus.saomiaochenggong.getValue()); |
|
|
|
|
|
|
|
|
|
//进行备货库位上架
|
|
|
|
|
JSONObject jsonObject = new JSONObject(); |
|
|
|
|
jsonObject.put("warehouseId", myCurrentWarehouse.getId()); |
|
|
|
|
jsonObject.put("code",packetBarCode); |
|
|
|
|
// jsonObject.put("stockUpAllocationId", stockupDTO.getStockupAllocationId());
|
|
|
|
|
jsonObject.put("type", 2); |
|
|
|
|
jsonObject.put("num", 1); |
|
|
|
|
//TODO
|
|
|
|
|
warehouseUpdownStockUpAreaClient.upStockUpShelf(jsonObject); |
|
|
|
|
if (!Func.isEmpty(stockupDTO.getStockupAllocationId())){ |
|
|
|
|
JSONObject jsonObject = new JSONObject(); |
|
|
|
|
jsonObject.put("warehouseId", myCurrentWarehouse.getId()); |
|
|
|
|
jsonObject.put("code",packetBarCode); |
|
|
|
|
jsonObject.put("stockUpAllocationId", stockupDTO.getStockupAllocationId()); |
|
|
|
|
jsonObject.put("type", 2); |
|
|
|
|
jsonObject.put("num", 1); |
|
|
|
|
warehouseUpdownStockUpAreaClient.upStockUpShelf(jsonObject); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//扫码成功
|
|
|
|
|
return Resp.scanSuccess(PdaAudioLingoStatus.saomiaochenggong.getName(), audioValue); |
|
|
|
|
case 2: |
|
|
|
@ -1534,7 +1536,7 @@ public class DistributionStockupAppController extends BladeController {
|
|
|
|
|
String packetBarCode = stockupDTO.getPacketBarCode();//包件码
|
|
|
|
|
Long stockupId = stockupDTO.getStockupId();//备货任务ID
|
|
|
|
|
Long reservationId = stockupDTO.getReservationId();//预约单id
|
|
|
|
|
Long stockUpAllocationId = stockupDTO.getStockupAllocationId();//备货库位ID
|
|
|
|
|
// Long stockUpAllocationId = stockupDTO.getStockupAllocationId();//备货库位ID
|
|
|
|
|
if (Objects.isNull(myCurrentWarehouse)) { |
|
|
|
|
log.warn("##################stockupScan: 未选择仓库,订单自编号为空"); |
|
|
|
|
return R.fail(403,"未授权!!"); |
|
|
|
@ -1555,10 +1557,10 @@ public class DistributionStockupAppController extends BladeController {
|
|
|
|
|
log.warn("##################stockupScan: 包件扫码,预约单id为空"); |
|
|
|
|
return R.fail("包件扫码:预约单id不能为空"); |
|
|
|
|
} |
|
|
|
|
if (Objects.isNull(stockUpAllocationId)) { |
|
|
|
|
log.warn("##################stockupScan: 备货库位不存在,stockUpAllocationId:{}",stockUpAllocationId); |
|
|
|
|
return Resp.scanFail("请扫描备货库位","请扫描备货库位"); |
|
|
|
|
} |
|
|
|
|
// if (Objects.isNull(stockUpAllocationId)) {
|
|
|
|
|
// log.warn("##################stockupScan: 备货库位不存在,stockUpAllocationId:{}",stockUpAllocationId);
|
|
|
|
|
// return Resp.scanFail("请扫描备货库位","请扫描备货库位");
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
Integer integer = distributionStockupService.selectPackage(stockupDTO); |
|
|
|
|
switch (integer) { |
|
|
|
@ -1654,14 +1656,16 @@ public class DistributionStockupAppController extends BladeController {
|
|
|
|
|
}); |
|
|
|
|
//查询是否货位数据是否该下架
|
|
|
|
|
|
|
|
|
|
JSONObject jsonObject = new JSONObject(); |
|
|
|
|
jsonObject.put("warehouseId", myCurrentWarehouse.getId()); |
|
|
|
|
jsonObject.put("code",packetBarCode); |
|
|
|
|
jsonObject.put("stockUpAllocationId", stockupDTO.getStockupAllocationId()); |
|
|
|
|
jsonObject.put("type", 1); |
|
|
|
|
jsonObject.put("num", 1); |
|
|
|
|
//进行了备货库位的选择才进行备货库位的上架
|
|
|
|
|
warehouseUpdownStockUpAreaClient.upStockUpShelf(jsonObject); |
|
|
|
|
if (!Func.isEmpty(stockupDTO.getStockupAllocationId())){ |
|
|
|
|
JSONObject jsonObject = new JSONObject(); |
|
|
|
|
jsonObject.put("warehouseId", myCurrentWarehouse.getId()); |
|
|
|
|
jsonObject.put("code",packetBarCode); |
|
|
|
|
jsonObject.put("stockUpAllocationId", stockupDTO.getStockupAllocationId()); |
|
|
|
|
jsonObject.put("type", 1); |
|
|
|
|
jsonObject.put("num", 1); |
|
|
|
|
//进行了备货库位的选择才进行备货库位的上架
|
|
|
|
|
warehouseUpdownStockUpAreaClient.upStockUpShelf(jsonObject); |
|
|
|
|
} |
|
|
|
|
//修改包件备货状态
|
|
|
|
|
DistributionParcelListEntity parcelListEntity = new DistributionParcelListEntity(); |
|
|
|
|
parcelListEntity.setId(entity.getParcelListId()); |
|
|
|
|