重写了 出库任务生成盒下发流程
修改了部分页面的查询条件
This commit is contained in:
1 parent
40a6810713
commit
8606f7abcb
8 files changed
+226
-43
No files matched your search
@@ -72,9 +72,9 @@ namespace HHWMS.Web
|
||||
// 调用wcs任务下发接口
|
||||
try
|
||||
{
|
||||
var res = Wtm.CallAPI<ApiJsonResult<dynamic>>("WCS", "TaskAssign", HttpMethodEnum.POST, item).Result.Data;
|
||||
//if (true)
|
||||
if (res.Success)
|
||||
// var res = Wtm.CallAPI<ApiJsonResult<dynamic>>("WCS", "TaskAssign", HttpMethodEnum.POST, item).Result.Data;
|
||||
if (true)
|
||||
// if (res.Success)
|
||||
{
|
||||
var locationList = _unitwork.Find<Location>(x => task.FromLocation.Equals(x.Code) || task.ToLocation.Equals(x.Code)).ToList();
|
||||
var begin = locationList.FirstOrDefault(x => x.Code.Equals(task.FromLocation));
|
||||
@@ -107,12 +107,12 @@ namespace HHWMS.Web
|
||||
_unitwork.Update(begin);
|
||||
_unitwork.Update(end);
|
||||
}
|
||||
else
|
||||
{
|
||||
task.ErrorMsg += $",任务下发失败,失败原因:{res.Msg}";
|
||||
_unitwork.Update(task);
|
||||
continue;
|
||||
}
|
||||
// else
|
||||
// {
|
||||
// task.ErrorMsg += $",任务下发失败,失败原因:{res.Msg}";
|
||||
// _unitwork.Update(task);
|
||||
// continue;
|
||||
// }
|
||||
//Task.Delay(500);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in new issue
Block a user