| | |
| | | { |
| | | // 查询任务 |
| | | var task = await QueryTaskByPalletCode(input.PalletCode); |
| | | if (task != null) |
| | | if (task != null && (task.TaskState == (int)TaskInStatusEnum.InNew || task.TaskState == (int)TaskOutStatusEnum.OutNew)) |
| | | { |
| | | return CreateAndReturnWMSTaskDTO(task); |
| | | } |
| | | if(task != null && (task.TaskState != (int)TaskInStatusEnum.InNew || task.TaskState != (int)TaskOutStatusEnum.OutNew)) |
| | | { |
| | | return content.Error($"托盘{input.PalletCode}存在任务"); |
| | | } |
| | | |
| | | // 查询库存信息(这里后续要完善质检回库逻辑) |
| | |
| | | // return await HandleErrorCells(input, area, serialNosError); |
| | | //} |
| | | #endregion |
| | | |
| | | var boxing = CreateBoxingInfo(result, input.PalletCode); |
| | | if (boxing == null) return content.Error("组盘失败"); |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | _boxingInfoRepository.DeleteData(boxing); |
| | | _boxingInfoRepository.Db.DeleteNav<DtBoxingInfo>(x => x.Id == boxing.Id) |
| | | .Include(x => x.BoxingInfoDetails) |
| | | .ExecuteCommandAsync(); |
| | | return new DtBoxingInfo |
| | | { |
| | | PalletCode = palletCode, |