容器出库

库位禁用
演示逻辑修改 task station=1的出库任务需要自动下发入库任务和AGv任务
This commit is contained in:
zhougf committed 2024-05-29 17:09:03 +08:00
1 parent a6168a75bf
commit a3e91357ee
10 files changed
+166 -33

No files matched your search

+14 -18
View File
@@ -149,30 +149,26 @@ namespace HHWMS.Web
_unitWork.BatchDelete<Inventory>(inventoryList2);
}
// 创建入库任务
if (inventoryList2.Count == 0)
// 如果是出库页面创建的任务,则创建入库任务并联动AGV
if (task.Station == "1")
{
new ReceiptInController(_unitWork, Wtm).TaskIn(task.ContainerCode, false, false);
// 下发AGV到出库口的任务
// 如果对接 执行下方任务,否则不执行
var interfaceAgv = _unitWork.FindSingle<SysCount>(x => x.Prefix == "interfaceAGV")?.Value;
if (interfaceAgv == 1)
var agv_task_id = Wtm.ConfigInfo.AppSettings.FirstOrDefault(x => x.Key == "OutIn").Value;
var postAgv = new
{
task_id = agv_task_id,
};
var agv_task_id = Wtm.ConfigInfo.AppSettings.FirstOrDefault(x => x.Key == "OutIn").Value;
var postAgv = new
{
task_id = agv_task_id,
};
var res = Wtm.CallAPI<ShipOutController.agvResult>("ACS", "task_mould_do",
HttpMethodEnum.POST, postAgv);
// if (res.Result.Data.ack == 0)
// {
//
// }
}
var res = Wtm.CallAPI<ShipOutController.agvResult>("ACS", "task_mould_do",
HttpMethodEnum.POST, postAgv);
// if (res.Result.Data.ack == 0)
// {
//
// }
}
break;