分支自 SuZhouGuanHong/TaiYuanTaiZhong

dengjunjie
2024-05-30 01a80700ea03a332785fb8cbd16aecaf7cce2ccb
´úÂë¹ÜÀí/WMS/WMS_Server/WIDESEA_WMS/ToMes/agvTransferList.cs
@@ -54,8 +54,8 @@
                    return content.Error($"无此车轮{sn}SN号,请核查库存记录!");
                }
                var station = stationinfoRepository.Find(x => x.stationCode == inventory.stationCode).FirstOrDefault();
                if (!station.enable) return content.Error($"库位{station.stationCode}未启用,请核实!");
                if (agvtaskRepository.Find(x => x.agv_fromaddress == station.stationCode).Any())
                //if (!station.enable) return content.Error($"库位{station.stationCode}未启用,请核实!");
                if (agvtaskRepository.Find(x => x.agv_fromaddress == station.stationCode || x.agv_toaddress == station.stationCode).Any())
                    return content.Error($"库位{station.stationCode}存在AGV任务,请核实!");
                List<detail> list = new List<detail>(); //车轮信息
                foreach (var item in station.bindSN.Split(","))
@@ -90,7 +90,7 @@
                        agv_fromaddress = station.stationCode,
                        agv_id = Guid.NewGuid(),
                        agv_tasknum = IdenxManager.GetTaskNo("KH-", "WMS"),
                        agv_grade = 1,
                        agv_grade = 0,
                        agv_createtime = DateTime.Now,
                        agv_taskstate = "Queue",
                        agv_materielid = station.stationType,