zhanghonglin
6 天以前 10775e2b00cee12fb4b405e18a507c629990051a
ÏîÄ¿´úÂë/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs
@@ -1357,6 +1357,11 @@
                //{
                //    throw new Exception($"整形机天车放板信号为false");
                //}
                var location = _locationRepository.QueryFirst(v => v.LocationCode == wei);
                if (location.LocationType != (int)LocationTypeEnum.Flat)
                {
                    return content.OK("5");
                }
                //查询当前任务池中是否存在出库任务,出库任务只能存在一条
                var oldtask = _dt_taskRepositiry.QueryFirst(v => v.TaskType == (int)TaskOutboundTypeEnum.Outbound);
                if (oldtask != null)
@@ -1454,11 +1459,15 @@
            //{
            //    throw new Exception($"规整机剔除架子可放板或剔除上料模式信号为false");
            //}
            //查询当前任务池中是否存在出库任务,出库任务只能存在一条
            var oldtask = _dt_taskRepositiry.QueryFirst(v => v.TaskType == (int)TaskOutboundTypeEnum.Outbound);
            var isout = _outStockRepository.QueryFirst(v => v.Id == 1);
            if (isout.isout == 0)
            {
                var oldtask = _dt_taskRepositiry.QueryFirst(v => v.TaskType == (int)TaskOutboundTypeEnum.Outbound);
                var location = _locationRepository.QueryFirst(v => v.LocationCode == wei);
                if(location.LocationType != (int)LocationTypeEnum.Cube)
                {
                    return content.OK("5");
                }
                if (oldtask != null)
                {
                    throw new Exception($"当前任务池中已存在一条出库任务");
@@ -1517,6 +1526,11 @@
            var isout = _outStockRepository.QueryFirst(v => v.Id == 1);
            if (isout.isout == 0)
            {
                var location = _locationRepository.QueryFirst(v => v.LocationCode == wei);
                if (location.LocationType != (int)LocationTypeEnum.Cube)
                {
                    return content.OK("5");
                }
                //判断库存是否有货
                //查询货位
                Dt_LocationInfo huo = _LocationInfoRepository.QueryFirst(v => v.LocationCode == wei);