opt:调整换托组盘接口
This commit is contained in:
@@ -36,7 +36,6 @@ import org.nl.wms.pda_manage.outBound.dto.ContainerItemDto;
|
||||
import org.nl.wms.pda_manage.outBound.dto.LineSideDto;
|
||||
import org.nl.wms.pda_manage.util.PdaResponse;
|
||||
import org.nl.wms.pm_manage.demand.service.IPmDemandService;
|
||||
import org.nl.wms.pm_manage.demand.service.dao.PmDemand;
|
||||
import org.nl.wms.sch_manage.enums.StatusEnum;
|
||||
import org.nl.wms.sch_manage.enums.TaskEnum;
|
||||
import org.nl.wms.sch_manage.service.ISchBasePointService;
|
||||
@@ -782,18 +781,21 @@ public class PdaIosOutServiceImpl implements PdaIosOutService {
|
||||
if (StringUtils.isEmpty(code)){
|
||||
throw new BadRequestException("请求条码内容为空");
|
||||
}
|
||||
List<PmDemand> demandList = pmDemandService.list(new LambdaQueryWrapper<PmDemand>()
|
||||
.ne(PmDemand::getIs_deleted, 1)
|
||||
.eq(PmDemand::getLk_container, code));
|
||||
List<ContainerItemDto> dtos = new ArrayList<>();
|
||||
for (PmDemand pmDemand : demandList) {
|
||||
if(code.startsWith("E5")){
|
||||
//TODO 获取中鼎组盘信息
|
||||
}else{
|
||||
List<GroupPlate> groupPlateList = iMdPbGroupplateService.list(new LambdaQueryWrapper<GroupPlate>()
|
||||
.eq(GroupPlate::getStoragevehicle_code, code)
|
||||
.eq(GroupPlate::getStatus, GROUP_PLATE_STATUS.code("入库")));
|
||||
for (GroupPlate groupPlate : groupPlateList) {
|
||||
MdMeMaterialbase material = iMdMeMaterialbaseService.getByCode(groupPlate.getMaterial_code());
|
||||
ContainerItemDto containerItemDto = new ContainerItemDto();
|
||||
containerItemDto.setMaterial_name(pmDemand.getSku_name());
|
||||
containerItemDto.setMaterial_code(pmDemand.getSku_code());
|
||||
containerItemDto.setLoad_port(pmDemand.getTarget_area());
|
||||
containerItemDto.setQty(pmDemand.getQty());
|
||||
containerItemDto.setMaterial_name(material.getMaterial_name());
|
||||
containerItemDto.setMaterial_code(groupPlate.getMaterial_code());
|
||||
dtos.add(containerItemDto);
|
||||
}
|
||||
}
|
||||
return dtos;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ public class PdaIosOutController {
|
||||
}
|
||||
|
||||
@GetMapping("/getContainerItem")
|
||||
@Log("根据容器编号获取立库托盘物料信息")
|
||||
@Log("根据容器编号获取托盘物料信息")
|
||||
public ResponseEntity getContainerItemByCode(String code){
|
||||
List<ContainerItemDto> list = pdaIosOutService.getContainerItemByCode(code);
|
||||
return ResponseData.build(list, HttpStatus.OK);
|
||||
|
||||
@@ -442,7 +442,7 @@ export default {
|
||||
const assQty = dtl.assign_qty || ''
|
||||
const vehicle_type = dtl.vehicle_type || ''
|
||||
const source_load_port = dtl.source_load_port || ''
|
||||
const qrText = orderNo + '#' + itemNo + '#' + skuCode + '#' + skuName + '##' + qty + '#' + source_load_port + '#'
|
||||
const qrText = orderNo + '#' + vehicle_type + '#' + skuCode + '#' + skuName + '##' + qty + '#' + source_load_port + '#'
|
||||
const imgSrc = await QRCode.toDataURL(qrText, {
|
||||
width: 300
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user