| | |
| | | var order = await orderManager.GetByCodeAsync(prodOrderNo); |
| | | if (order != null) |
| | | { |
| | | throw new UserFriendlyException($"生产工单[{prodOrderNo}]已存在"); |
| | | //throw new UserFriendlyException($"生产工单[{prodOrderNo}]已存在"); |
| | | continue; |
| | | } |
| | | |
| | | OrderModel orderModelForCut = new OrderModel() |
| | |
| | | } |
| | | |
| | | // 验证状态 |
| | | //if (callMaterialOrder.CallMaterialStatus != Domain.Shared.Enums.CallMaterialStatusEnum.未执行) |
| | | //{ |
| | | // throw new UserFriendlyException($"原料标识为 '{callMaterialOrder.DataIdentifier}' 的叫料记录状态为 '{callMaterialOrder.CallMaterialStatus}',不允许叫料"); |
| | | //} |
| | | if (callMaterialOrder.CallMaterialStatus != Domain.Shared.Enums.CallMaterialStatusEnum.未执行) |
| | | { |
| | | throw new UserFriendlyException($"原料标识为 '{callMaterialOrder.DataIdentifier}' 的叫料记录状态为 '{callMaterialOrder.CallMaterialStatus}',不允许叫料"); |
| | | } |
| | | |
| | | // 更新数据 |
| | | callMaterialOrder.WmsRetResult = "成功"; |