1.BUG修复 任务信息显示都为起点
2.界面优化 3.RCS回调限制优化
This commit is contained in:
@ -26,7 +26,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="content-item" style="font-weight: 600;color: firebrick;">
|
<view class="content-item" style="font-weight: 600;color: firebrick;">
|
||||||
<text>终点:</text>
|
<text>终点:</text>
|
||||||
<text>{{item.startLocationCode}}</text>
|
<text>{{item.endLocationCode}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="content-combined">
|
<view class="content-combined">
|
||||||
<view class="content-item" style="font-weight: 600;color: violet;">
|
<view class="content-item" style="font-weight: 600;color: violet;">
|
||||||
|
@ -163,7 +163,7 @@
|
|||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
width: 650rpx;
|
width: 650rpx;
|
||||||
max-height: 600rpx;
|
height: 600rpx;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
@ -472,7 +472,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.scroll-view {
|
.scroll-view {
|
||||||
height: 75vh;
|
height: 81vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.popup-content {
|
.popup-content {
|
||||||
|
@ -5519,7 +5519,7 @@ if (uni.restoreGlobal) {
|
|||||||
vue.createElementVNode(
|
vue.createElementVNode(
|
||||||
"text",
|
"text",
|
||||||
null,
|
null,
|
||||||
vue.toDisplayString($props.item.startLocationCode),
|
vue.toDisplayString($props.item.endLocationCode),
|
||||||
1
|
1
|
||||||
/* TEXT */
|
/* TEXT */
|
||||||
)
|
)
|
||||||
|
@ -84,6 +84,10 @@ namespace WCS.DAL.DbModels
|
|||||||
[SugarColumn(ColumnName = "destination_location_code", Length = 64, IsNullable = false, ColumnDescription = "当前位置编码")]
|
[SugarColumn(ColumnName = "destination_location_code", Length = 64, IsNullable = false, ColumnDescription = "当前位置编码")]
|
||||||
public string DestinationLocaiotnCode { get; set; } = string.Empty;
|
public string DestinationLocaiotnCode { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
|
||||||
|
[SugarColumn(ColumnName = "current_task_code", Length = 100, IsNullable = true, ColumnDescription = "当前执行的任务码")]
|
||||||
|
public string CurrentTaskCode { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 货架运输状态
|
/// 货架运输状态
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -75,6 +75,7 @@ namespace WCS.BLL.Manager
|
|||||||
shelf.DestinationLocationId = 0;
|
shelf.DestinationLocationId = 0;
|
||||||
shelf.DestinationLocaiotnCode = string.Empty;
|
shelf.DestinationLocaiotnCode = string.Empty;
|
||||||
shelf.TransStatus = TransStatusEnum.静止;
|
shelf.TransStatus = TransStatusEnum.静止;
|
||||||
|
shelf.CurrentTaskCode = string.Empty;
|
||||||
DbHelp.db.Updateable(shelf).ExecuteCommand();
|
DbHelp.db.Updateable(shelf).ExecuteCommand();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -105,6 +105,7 @@ namespace WCS.BLL.Services.Service
|
|||||||
{
|
{
|
||||||
//更新货架位置信息
|
//更新货架位置信息
|
||||||
shelf.TransStatus = TransStatusEnum.运输中;
|
shelf.TransStatus = TransStatusEnum.运输中;
|
||||||
|
shelf.CurrentTaskCode = response.data;
|
||||||
shelf.DestinationLocationId = endLocation.Id;
|
shelf.DestinationLocationId = endLocation.Id;
|
||||||
shelf.DestinationLocaiotnCode = endLocation.LocationCode;
|
shelf.DestinationLocaiotnCode = endLocation.LocationCode;
|
||||||
DbHelp.db.Updateable(shelf).ExecuteCommand();
|
DbHelp.db.Updateable(shelf).ExecuteCommand();
|
||||||
@ -201,6 +202,7 @@ namespace WCS.BLL.Services.Service
|
|||||||
.LeftJoin<ShelfInfo>((li,si) => (li.Id == si.CurrentLocationId && si.TransStatus == TransStatusEnum.静止) || (li.Id == si.DestinationLocationId && si.TransStatus == TransStatusEnum.运输中))
|
.LeftJoin<ShelfInfo>((li,si) => (li.Id == si.CurrentLocationId && si.TransStatus == TransStatusEnum.静止) || (li.Id == si.DestinationLocationId && si.TransStatus == TransStatusEnum.运输中))
|
||||||
.Where((li, si) => li.LocationAreaId == request.SendBackLocationAreaId)
|
.Where((li, si) => li.LocationAreaId == request.SendBackLocationAreaId)
|
||||||
.Where((li, si) => li.IsEnable == true)
|
.Where((li, si) => li.IsEnable == true)
|
||||||
|
.Where((li, si) => li.Id != shelf.CurrentLocationId)
|
||||||
.Select((li, si) => li)
|
.Select((li, si) => li)
|
||||||
.FirstAsync();
|
.FirstAsync();
|
||||||
if (endLocation == null)
|
if (endLocation == null)
|
||||||
@ -218,6 +220,7 @@ namespace WCS.BLL.Services.Service
|
|||||||
{
|
{
|
||||||
//更新货架位置信息
|
//更新货架位置信息
|
||||||
shelf.TransStatus = TransStatusEnum.运输中;
|
shelf.TransStatus = TransStatusEnum.运输中;
|
||||||
|
shelf.CurrentTaskCode = response.data;
|
||||||
shelf.DestinationLocationId = endLocation.Id;
|
shelf.DestinationLocationId = endLocation.Id;
|
||||||
shelf.DestinationLocaiotnCode = endLocation.LocationCode;
|
shelf.DestinationLocaiotnCode = endLocation.LocationCode;
|
||||||
DbHelp.db.Updateable(shelf).ExecuteCommand();
|
DbHelp.db.Updateable(shelf).ExecuteCommand();
|
||||||
@ -375,6 +378,7 @@ namespace WCS.BLL.Services.Service
|
|||||||
{
|
{
|
||||||
//更新货架位置信息
|
//更新货架位置信息
|
||||||
shelf.TransStatus = TransStatusEnum.运输中;
|
shelf.TransStatus = TransStatusEnum.运输中;
|
||||||
|
shelf.CurrentTaskCode = response.data;
|
||||||
shelf.DestinationLocationId = endLocation.Id;
|
shelf.DestinationLocationId = endLocation.Id;
|
||||||
shelf.DestinationLocaiotnCode = endLocation.LocationCode;
|
shelf.DestinationLocaiotnCode = endLocation.LocationCode;
|
||||||
DbHelp.db.Updateable(shelf).ExecuteCommand();
|
DbHelp.db.Updateable(shelf).ExecuteCommand();
|
||||||
|
@ -156,6 +156,7 @@ namespace WCS.BLL.Services.Service
|
|||||||
shelfInfo.CurrentLocationId = locationInfo.Id;
|
shelfInfo.CurrentLocationId = locationInfo.Id;
|
||||||
shelfInfo.DestinationLocationId = 0;
|
shelfInfo.DestinationLocationId = 0;
|
||||||
shelfInfo.DestinationLocaiotnCode = string.Empty;
|
shelfInfo.DestinationLocaiotnCode = string.Empty;
|
||||||
|
shelfInfo.CurrentTaskCode = string.Empty;
|
||||||
shelfInfo.TransStatus = TransStatusEnum.静止;
|
shelfInfo.TransStatus = TransStatusEnum.静止;
|
||||||
DbHelp.db.Updateable(shelfInfo).ExecuteCommand();
|
DbHelp.db.Updateable(shelfInfo).ExecuteCommand();
|
||||||
|
|
||||||
@ -224,6 +225,7 @@ namespace WCS.BLL.Services.Service
|
|||||||
shelfInfo.CurrentLocaiotnCode = string.Empty;
|
shelfInfo.CurrentLocaiotnCode = string.Empty;
|
||||||
shelfInfo.DestinationLocationId = 0;
|
shelfInfo.DestinationLocationId = 0;
|
||||||
shelfInfo.DestinationLocaiotnCode = string.Empty;
|
shelfInfo.DestinationLocaiotnCode = string.Empty;
|
||||||
|
shelfInfo.CurrentTaskCode = string.Empty;
|
||||||
shelfInfo.TransStatus = TransStatusEnum.静止;
|
shelfInfo.TransStatus = TransStatusEnum.静止;
|
||||||
DbHelp.db.Updateable(shelfInfo).ExecuteCommand();
|
DbHelp.db.Updateable(shelfInfo).ExecuteCommand();
|
||||||
|
|
||||||
|
@ -47,6 +47,7 @@ namespace WCS.WebApi.Controllers
|
|||||||
.FirstAsync();
|
.FirstAsync();
|
||||||
if (task == null)
|
if (task == null)
|
||||||
{
|
{
|
||||||
|
Logs.Write("不是我们系统发出的任务!!!!");
|
||||||
return new
|
return new
|
||||||
{
|
{
|
||||||
Code = 0,
|
Code = 0,
|
||||||
@ -54,18 +55,41 @@ namespace WCS.WebApi.Controllers
|
|||||||
reqCode = "123",
|
reqCode = "123",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
//if (task.TaskStatus == TaskStatusEnum.已结束)
|
||||||
|
//{
|
||||||
|
// return new
|
||||||
|
// {
|
||||||
|
// Code = 0,
|
||||||
|
// Message = "成功",
|
||||||
|
// reqCode = "123",
|
||||||
|
// };
|
||||||
|
//}
|
||||||
|
//RCS先调用结束再调用出库时会遇到先更新为对应位置 然后又将对应位置更新为0的情况 所以加运输中状态限制
|
||||||
|
|
||||||
//判断并更新数据
|
//判断并更新数据
|
||||||
var shelf = await DbHelp.db.Queryable<ShelfInfo>().Where(t => t.ShelfCode == request.podCode || t.ShelfCode == task.ShelfCode)
|
var shelf = await DbHelp.db.Queryable<ShelfInfo>().Where(t => t.ShelfCode == request.podCode || t.ShelfCode == task.ShelfCode)
|
||||||
.FirstAsync();
|
.FirstAsync();
|
||||||
if (shelf != null && request.method == "outbin")
|
//调用的接口不是当前货架正在执行的任务
|
||||||
|
if (task.TaskCode != shelf.CurrentTaskCode)
|
||||||
{
|
{
|
||||||
|
Logs.Write($"AGV回调的任务[{task.TaskCode}],货架当前任务为【{shelf.CurrentTaskCode}】,不是同一个任务 不进行货架状态更新!");
|
||||||
|
return new
|
||||||
|
{
|
||||||
|
Code = 0,
|
||||||
|
Message = "成功",
|
||||||
|
reqCode = "123",
|
||||||
|
};
|
||||||
|
}
|
||||||
|
Logs.Write($"AGV回调的任务[{task.TaskCode}],{request.method}!");
|
||||||
|
if (shelf != null && request.method == "outbin" && shelf.TransStatus == TransStatusEnum.运输中)
|
||||||
|
{
|
||||||
|
|
||||||
shelf.CurrentLocationId = 0;
|
shelf.CurrentLocationId = 0;
|
||||||
shelf.CurrentLocaiotnCode = string.Empty;
|
shelf.CurrentLocaiotnCode = string.Empty;
|
||||||
DbHelp.db.Updateable(shelf).ExecuteCommand();
|
DbHelp.db.Updateable(shelf).ExecuteCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (shelf != null && request.method == "end")
|
if (shelf != null && request.method == "end" && shelf.TransStatus == TransStatusEnum.运输中)
|
||||||
{
|
{
|
||||||
task.TaskStatus = TaskStatusEnum.已结束;
|
task.TaskStatus = TaskStatusEnum.已结束;
|
||||||
DbHelp.db.Updateable(task).ExecuteCommand();
|
DbHelp.db.Updateable(task).ExecuteCommand();
|
||||||
@ -75,6 +99,7 @@ namespace WCS.WebApi.Controllers
|
|||||||
shelf.DestinationLocationId = 0;
|
shelf.DestinationLocationId = 0;
|
||||||
shelf.DestinationLocaiotnCode = string.Empty;
|
shelf.DestinationLocaiotnCode = string.Empty;
|
||||||
shelf.TransStatus = TransStatusEnum.静止;
|
shelf.TransStatus = TransStatusEnum.静止;
|
||||||
|
shelf.CurrentTaskCode = string.Empty;
|
||||||
DbHelp.db.Updateable(shelf).ExecuteCommand();
|
DbHelp.db.Updateable(shelf).ExecuteCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -370,6 +370,7 @@ namespace WCS.WebApi.Controllers
|
|||||||
{
|
{
|
||||||
//更新货架位置信息
|
//更新货架位置信息
|
||||||
shelfInfo.TransStatus = TransStatusEnum.运输中;
|
shelfInfo.TransStatus = TransStatusEnum.运输中;
|
||||||
|
shelfInfo.CurrentTaskCode = response.data;
|
||||||
shelfInfo.DestinationLocationId = endLocation.Id;
|
shelfInfo.DestinationLocationId = endLocation.Id;
|
||||||
shelfInfo.DestinationLocaiotnCode = endLocation.LocationCode;
|
shelfInfo.DestinationLocaiotnCode = endLocation.LocationCode;
|
||||||
DbHelp.db.Updateable(shelfInfo).ExecuteCommand();
|
DbHelp.db.Updateable(shelfInfo).ExecuteCommand();
|
||||||
|
@ -394,6 +394,7 @@ namespace WCS.WebApi.Controllers
|
|||||||
{
|
{
|
||||||
//更新货架位置信息
|
//更新货架位置信息
|
||||||
shelfInfo.TransStatus = TransStatusEnum.运输中;
|
shelfInfo.TransStatus = TransStatusEnum.运输中;
|
||||||
|
shelfInfo.CurrentTaskCode = response.data;
|
||||||
shelfInfo.DestinationLocationId = endLocation.Id;
|
shelfInfo.DestinationLocationId = endLocation.Id;
|
||||||
shelfInfo.DestinationLocaiotnCode = endLocation.LocationCode;
|
shelfInfo.DestinationLocaiotnCode = endLocation.LocationCode;
|
||||||
DbHelp.db.Updateable(shelfInfo).ExecuteCommand();
|
DbHelp.db.Updateable(shelfInfo).ExecuteCommand();
|
||||||
|
Reference in New Issue
Block a user