diff --git a/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs b/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs index 7efe7018..89b1b690 100644 --- a/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs @@ -765,10 +765,11 @@ namespace Tnb.ProductionMgr { OrganizeRelationEntity organizeRelationEntity = await db.Queryable() .Where(x => x.ObjectId == input.eqp_id && x.ObjectType == "Eqp").FirstAsync(); - if (organizeRelationEntity == null || organizeRelationEntity.OrganizeId == "") - { - throw Oops.Bah("该设备没绑定工位"); - } + //2024-11-14 日张宇说去掉设备没绑定工位限制条件 + //if (organizeRelationEntity == null || organizeRelationEntity.OrganizeId == "") + //{ + // throw Oops.Bah("该设备没绑定工位"); + //} moTask.workstation_id = organizeRelationEntity?.OrganizeId ?? ""; }