fix:永丰售后修复BUG,
1,物料库存获取不到ERP:重新调整触发查询逻辑 2,工序变更导致物料无法出库:配置旧工序 3,测试出库订单ERP推送,任务下发
This commit is contained in:
1 parent
b2a9a38f38
commit
c76e7bb681
69 files changed
+5510
-157
No files matched your search
@@ -0,0 +1,358 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text.Json;
|
||||
using System.Threading.Tasks;
|
||||
using HHWMS.Web.Models;
|
||||
using HHWMS.Web.Models.Agv;
|
||||
using HHWMS.Web.Services.Agv;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
using WalkingTec.Mvvm.Mvc;
|
||||
|
||||
namespace HHWMS.Web.Controllers
|
||||
{
|
||||
/// <summary>
|
||||
/// AGV 平库任务手动下发页(方案 9.1 页面路径)
|
||||
/// 页面参数与 Receive 接单接口保持一致,共用 AgvTaskService.CreateTaskAsync 同一套创建逻辑
|
||||
/// </summary>
|
||||
[Area("agv")]
|
||||
[ActionDescription("AGV任务")]
|
||||
public partial class AgvTaskController : BaseController
|
||||
{
|
||||
private readonly IUnitWork _unitWork;
|
||||
private readonly AgvTaskService _taskService;
|
||||
|
||||
public AgvTaskController(IUnitWork unitWork, AgvTaskService taskService)
|
||||
{
|
||||
_unitWork = unitWork;
|
||||
_taskService = taskService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 任务号请求参数(下发/取消/重试完成共用)
|
||||
/// 普通 Controller 的简单类型参数不会从 JSON body 绑定,必须用 [FromBody] 对象接收
|
||||
/// </summary>
|
||||
public class TaskNoRequest
|
||||
{
|
||||
public string TaskNo { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 任务列表 + 手动下发页(WTM 标准 searchpanel + grid,风格与场景配置页统一)
|
||||
/// </summary>
|
||||
[ActionDescription("Sys.Search")]
|
||||
public ActionResult Index()
|
||||
{
|
||||
var vm = Wtm.CreateVM<AgvTaskListVM>();
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// WTM grid 数据源(多条件查询,由 AgvTaskListVM 统一处理)
|
||||
/// </summary>
|
||||
[ActionDescription("Sys.Search")]
|
||||
[HttpPost]
|
||||
public string Search(AgvTaskSearcher searcher)
|
||||
{
|
||||
var vm = Wtm.CreateVM<AgvTaskListVM>(passInit: true);
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
vm.Searcher = searcher;
|
||||
return vm.GetJson(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
return vm.GetError();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 手动下发表单页(Dialog 内 Vue 渲染,提交走下方 POST Create)
|
||||
/// 必须传入 AgvTaskListVM 类型 model,与 Create.cshtml 的 @model 保持一致,
|
||||
/// 否则 WTM 无参 PartialView() 会注入 BaseVM 导致视图类型不匹配异常
|
||||
/// 场景选项由服务端直接查库(AgvTaskSceneConfig)注入页面,前端不再依赖异步接口加载
|
||||
/// </summary>
|
||||
[ActionDescription("Sys.Create")]
|
||||
public ActionResult Create()
|
||||
{
|
||||
var vm = Wtm.CreateVM<AgvTaskListVM>();
|
||||
// 与 GetScenes 同一套查库逻辑:直接读取场景配置表全量数据
|
||||
var scenes = DC.Set<AgvTaskSceneConfig>()
|
||||
.AsNoTracking()
|
||||
.OrderBy(x => x.AgvTaskType)
|
||||
.Select(x => new { value = x.SourceTaskType, label = string.IsNullOrWhiteSpace(x.SceneName) ? x.SourceTaskType : x.SceneName })
|
||||
.ToList();
|
||||
ViewBag.ScenesJson = JsonSerializer.Serialize(scenes);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 场景配置下拉(公开访问,绕过模块权限校验)
|
||||
/// 展示 AgvTaskSceneConfig.SceneName,内部传 SourceTaskType
|
||||
/// </summary>
|
||||
[HttpPost]
|
||||
[Public]
|
||||
public IActionResult GetScenes()
|
||||
{
|
||||
// 走原生 SQL 直捞,绕过 UnitWork 可能的数据权限过滤
|
||||
var sql = @"SELECT * FROM AgvTaskSceneConfig ORDER BY AgvTaskType";
|
||||
var scenes = DC.Set<AgvTaskSceneConfig>()
|
||||
.FromSqlRaw(sql)
|
||||
.AsNoTracking()
|
||||
.ToList()
|
||||
.Select(x => new
|
||||
{
|
||||
value = x.SourceTaskType,
|
||||
label = string.IsNullOrWhiteSpace(x.SceneName) ? x.SourceTaskType : x.SceneName
|
||||
})
|
||||
.ToList();
|
||||
return Json(new { Code = 200, Data = scenes });
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// AGV 点位下拉(起点/终点强制校验,Type=P 且未停用)
|
||||
/// </summary>
|
||||
[HttpPost]
|
||||
public IActionResult GetPoints()
|
||||
{
|
||||
var points = _unitWork.Find<Location>(x => x.Type == LocationTypeEnum.P && !x.IsStop).ToList();
|
||||
var zoneIds = points.Where(p => p.ZoneId != 0).Select(p => p.ZoneId).Distinct().ToList();
|
||||
var zoneFloors = zoneIds.Count > 0
|
||||
? _unitWork.Find<LocationZone>(z => zoneIds.Contains(z.ID))
|
||||
.ToDictionary(z => z.ID, z => z.Floor)
|
||||
: new Dictionary<int, int?>();
|
||||
var data = points.OrderBy(p => p.Code)
|
||||
.Select(p => new
|
||||
{
|
||||
value = p.Code,
|
||||
label = p.Code,
|
||||
floor = zoneFloors.TryGetValue(p.ZoneId, out var f) ? f : (int?)null
|
||||
})
|
||||
.ToList();
|
||||
return Json(new { Code = 200, Data = data });
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 物料搜索(SKU 非强制,带明细则需本地存在/ERP补建)
|
||||
/// </summary>
|
||||
[HttpPost]
|
||||
public IActionResult GetMaterials(string keyword)
|
||||
{
|
||||
var query = _unitWork.Find<Material>(m => string.IsNullOrWhiteSpace(keyword)
|
||||
|| m.MaterialCode.Contains(keyword)
|
||||
|| m.MaterialName.Contains(keyword));
|
||||
var materials = query.OrderBy(m => m.MaterialCode)
|
||||
.Take(15)
|
||||
.Select(m => new
|
||||
{
|
||||
MaterialCode = m.MaterialCode,
|
||||
MaterialName = m.MaterialName,
|
||||
MaterialSpec = m.MaterialSpec,
|
||||
MaterialUnit = m.MaterialUnit
|
||||
})
|
||||
.ToList();
|
||||
return Json(new { Code = 200, Data = materials });
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 手动下发创建:参数与 Receive 接单接口一致(起点/终点/任务场景必填,容器/明细可选)
|
||||
/// </summary>
|
||||
[HttpPost]
|
||||
public async Task<IActionResult> Create([FromBody] AgvReceiveRequest request)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (request == null)
|
||||
{
|
||||
return Json(new { Code = 400, Msg = "请求体为空" });
|
||||
}
|
||||
var task = await _taskService.CreateTaskAsync(request);
|
||||
return Json(new { Code = 200, Msg = $"任务[{task.TaskNo}]创建成功" });
|
||||
}
|
||||
catch (AgvBizException ex)
|
||||
{
|
||||
return Json(new { Code = 400, Msg = ex.Message });
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return Json(new { Code = 500, Msg = $"创建失败: {ex.Message}" });
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 任务列表查询参数(多条件:任务号/起终点/容器/来源模糊,状态精确)
|
||||
/// </summary>
|
||||
public class GetTasksRequest
|
||||
{
|
||||
public string TaskNo { get; set; }
|
||||
public string FromLocation { get; set; }
|
||||
public string ToLocation { get; set; }
|
||||
public string ContainerCode { get; set; }
|
||||
public string SourceSystem { get; set; }
|
||||
public int? AgvStatus { get; set; }
|
||||
/// <summary>页码(从 1 开始,默认 1)</summary>
|
||||
public int Page { get; set; }
|
||||
/// <summary>每页条数(默认 10)</summary>
|
||||
public int Size { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 任务列表(多条件模糊查询 + 分页,供原生表格页面直调)
|
||||
/// </summary>
|
||||
[HttpPost]
|
||||
public IActionResult GetTasks([FromBody] GetTasksRequest request)
|
||||
{
|
||||
var page = request != null && request.Page > 0 ? request.Page : 1;
|
||||
var size = request != null && request.Size > 0 ? request.Size : 10;
|
||||
var query = _unitWork.Find<AgvTask>(x => x.CreateTime != null);
|
||||
if (request != null)
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(request.TaskNo))
|
||||
{
|
||||
query = query.Where(x => x.TaskNo.Contains(request.TaskNo.Trim()));
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(request.FromLocation))
|
||||
{
|
||||
query = query.Where(x => x.FromLocation.Contains(request.FromLocation.Trim()));
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(request.ToLocation))
|
||||
{
|
||||
query = query.Where(x => x.ToLocation.Contains(request.ToLocation.Trim()));
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(request.ContainerCode))
|
||||
{
|
||||
query = query.Where(x => x.ContainerCode.Contains(request.ContainerCode.Trim()));
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(request.SourceSystem))
|
||||
{
|
||||
query = query.Where(x => x.SourceSystem == request.SourceSystem.Trim());
|
||||
}
|
||||
if (request.AgvStatus.HasValue)
|
||||
{
|
||||
query = query.Where(x => (int)x.AgvStatus == request.AgvStatus.Value);
|
||||
}
|
||||
}
|
||||
var total = query.Count();
|
||||
var tasks = query
|
||||
.OrderByDescending(x => x.CreateTime)
|
||||
.Skip((page - 1) * size)
|
||||
.Take(size)
|
||||
.Select(x => new
|
||||
{
|
||||
TaskNo = x.TaskNo,
|
||||
// 输出数字状态(0/5/10/90/95/99/100),前端按数字映射中文并判断按钮可用性
|
||||
AgvStatus = x.AgvStatus == null ? 0 : (int)x.AgvStatus,
|
||||
// 状态中文名(枚举成员名即中文:新建/已下发/...),前端直接展示,零解析成本
|
||||
AgvStatusName = x.AgvStatus.ToString(),
|
||||
// 任务场景名:按 AgvTaskType 关联场景配置表(未配置则留空)
|
||||
SceneName = x.AgvTaskType == null ? "" :
|
||||
DC.Set<AgvTaskSceneConfig>()
|
||||
.Where(c => c.AgvTaskType == x.AgvTaskType)
|
||||
.Select(c => c.SceneName)
|
||||
.FirstOrDefault() ?? "",
|
||||
FromLocation = x.FromLocation,
|
||||
ToLocation = x.ToLocation,
|
||||
ContainerCode = x.ContainerCode,
|
||||
SourceSystem = x.SourceSystem,
|
||||
ErrorMsg = x.ErrorMsg,
|
||||
CreateTime = x.CreateTime
|
||||
})
|
||||
.ToList();
|
||||
return Json(new { Code = 200, Data = new { List = tasks, Total = total, Page = page, Size = size } });
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 来源系统下拉(已有任务的 SourceSystem 去重列表)
|
||||
/// </summary>
|
||||
[HttpPost]
|
||||
public IActionResult GetSourceSystems()
|
||||
{
|
||||
var list = _unitWork.Find<AgvTask>(x => x.SourceSystem != null && x.SourceSystem != "")
|
||||
.Select(x => x.SourceSystem)
|
||||
.Distinct()
|
||||
.ToList();
|
||||
return Json(new { Code = 200, Data = list });
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 下发任务(仅新建/异常可下发)
|
||||
/// </summary>
|
||||
[HttpPost]
|
||||
public async Task<IActionResult> Dispatch([FromBody] TaskNoRequest request)
|
||||
{
|
||||
var taskNo = request?.TaskNo;
|
||||
if (string.IsNullOrWhiteSpace(taskNo))
|
||||
{
|
||||
return Json(new { Code = 400, Msg = "任务号不能为空" });
|
||||
}
|
||||
try
|
||||
{
|
||||
await _taskService.DispatchTaskAsync(taskNo);
|
||||
return Json(new { Code = 200, Msg = $"任务[{taskNo}]已下发" });
|
||||
}
|
||||
catch (AgvBizException ex)
|
||||
{
|
||||
return Json(new { Code = 400, Msg = ex.Message });
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return Json(new { Code = 500, Msg = $"下发失败: {ex.Message}" });
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 取消任务(仅新建/已下发/执行中可取消)
|
||||
/// </summary>
|
||||
[HttpPost]
|
||||
public async Task<IActionResult> Cancel([FromBody] TaskNoRequest request)
|
||||
{
|
||||
var taskNo = request?.TaskNo;
|
||||
if (string.IsNullOrWhiteSpace(taskNo))
|
||||
{
|
||||
return Json(new { Code = 400, Msg = "任务号不能为空" });
|
||||
}
|
||||
try
|
||||
{
|
||||
await _taskService.CancelTaskAsync(taskNo);
|
||||
return Json(new { Code = 200, Msg = $"任务[{taskNo}]已取消" });
|
||||
}
|
||||
catch (AgvBizException ex)
|
||||
{
|
||||
return Json(new { Code = 400, Msg = ex.Message });
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return Json(new { Code = 500, Msg = $"取消失败: {ex.Message}" });
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重试完成联动(仅完成联动失败(99)可重试)
|
||||
/// </summary>
|
||||
[HttpPost]
|
||||
public async Task<IActionResult> RetryFinish([FromBody] TaskNoRequest request)
|
||||
{
|
||||
var taskNo = request?.TaskNo;
|
||||
if (string.IsNullOrWhiteSpace(taskNo))
|
||||
{
|
||||
return Json(new { Code = 400, Msg = "任务号不能为空" });
|
||||
}
|
||||
try
|
||||
{
|
||||
await _taskService.RetryFinishLinkAsync(taskNo);
|
||||
return Json(new { Code = 200, Msg = $"任务[{taskNo}]联动重试成功" });
|
||||
}
|
||||
catch (AgvBizException ex)
|
||||
{
|
||||
return Json(new { Code = 400, Msg = ex.Message });
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return Json(new { Code = 500, Msg = $"联动重试失败: {ex.Message}" });
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
using WalkingTec.Mvvm.Mvc;
|
||||
|
||||
namespace HHWMS.Web.Controllers
|
||||
{
|
||||
/// <summary>
|
||||
/// AGV 任务日志页(只读:状态变更 + 报文留痕,来源 AgvTaskLog 表)
|
||||
/// </summary>
|
||||
[Area("agv")]
|
||||
[ActionDescription("AGV日志")]
|
||||
public partial class AgvTaskLogController : BaseController
|
||||
{
|
||||
#region Search
|
||||
|
||||
[ActionDescription("Sys.Search")]
|
||||
public ActionResult Index()
|
||||
{
|
||||
var vm = Wtm.CreateVM<AgvTaskLogListVM>();
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Search")]
|
||||
[HttpPost]
|
||||
public string Search(AgvTaskLogSearcher searcher)
|
||||
{
|
||||
var vm = Wtm.CreateVM<AgvTaskLogListVM>(passInit: true);
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
vm.Searcher = searcher;
|
||||
return vm.GetJson(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
return vm.GetError();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Search
|
||||
|
||||
#region Details
|
||||
|
||||
[ActionDescription("Sys.Details")]
|
||||
public ActionResult Details(string id)
|
||||
{
|
||||
var vm = Wtm.CreateVM<AgvTaskLogVM>(id);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
#endregion Details
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,151 @@
|
||||
using HHWMS.Web.Models.Agv;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
using WalkingTec.Mvvm.Mvc;
|
||||
|
||||
namespace HHWMS.Web.Controllers
|
||||
{
|
||||
/// <summary>
|
||||
/// AGV 任务场景配置管理页(映射上游任务类型 → AGV 场景,方案 5.6)
|
||||
/// </summary>
|
||||
[Area("agv")]
|
||||
[ActionDescription("AGV场景配置")]
|
||||
public partial class AgvTaskSceneConfigController : BaseController
|
||||
{
|
||||
#region Search
|
||||
|
||||
[ActionDescription("Sys.Search")]
|
||||
public ActionResult Index()
|
||||
{
|
||||
var vm = Wtm.CreateVM<AgvTaskSceneConfigListVM>();
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Search")]
|
||||
[HttpPost]
|
||||
public string Search(AgvTaskSceneConfigSearcher searcher)
|
||||
{
|
||||
var vm = Wtm.CreateVM<AgvTaskSceneConfigListVM>(passInit: true);
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
vm.Searcher = searcher;
|
||||
return vm.GetJson(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
return vm.GetError();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Search
|
||||
|
||||
#region Create
|
||||
|
||||
[ActionDescription("Sys.Create")]
|
||||
public ActionResult Create()
|
||||
{
|
||||
var vm = Wtm.CreateVM<AgvTaskSceneConfigVM>();
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.Create")]
|
||||
public ActionResult Create(AgvTaskSceneConfigVM vm)
|
||||
{
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
return PartialView(vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
vm.DoAdd();
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
vm.DoReInit();
|
||||
return PartialView(vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
return FFResult().CloseDialog().RefreshGrid();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Create
|
||||
|
||||
#region Edit
|
||||
|
||||
[ActionDescription("Sys.Edit")]
|
||||
public ActionResult Edit(string id)
|
||||
{
|
||||
var vm = Wtm.CreateVM<AgvTaskSceneConfigVM>(id);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Edit")]
|
||||
[HttpPost]
|
||||
[ValidateFormItemOnly]
|
||||
public ActionResult Edit(AgvTaskSceneConfigVM vm)
|
||||
{
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
return PartialView(vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
vm.DoEdit();
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
vm.DoReInit();
|
||||
return PartialView(vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
return FFResult().CloseDialog().RefreshGridRow(vm.Entity.ID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Edit
|
||||
|
||||
#region Delete
|
||||
|
||||
[ActionDescription("Sys.Delete")]
|
||||
public ActionResult Delete(string id)
|
||||
{
|
||||
var vm = Wtm.CreateVM<AgvTaskSceneConfigVM>(id);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Delete")]
|
||||
[HttpPost]
|
||||
public ActionResult Delete(string id, IFormCollection nouse)
|
||||
{
|
||||
var vm = Wtm.CreateVM<AgvTaskSceneConfigVM>(id);
|
||||
vm.DoDelete();
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
return PartialView(vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
return FFResult().CloseDialog().RefreshGrid();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Delete
|
||||
|
||||
#region Details
|
||||
|
||||
[ActionDescription("Sys.Details")]
|
||||
public ActionResult Details(string id)
|
||||
{
|
||||
var vm = Wtm.CreateVM<AgvTaskSceneConfigVM>(id);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
#endregion Details
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
using HHWMS.Web.Models.Agv;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
/// <summary>
|
||||
/// AGV 任务日志列表(只读:状态变更 + 报文留痕,来源 AgvTaskLog 表)
|
||||
/// </summary>
|
||||
public partial class AgvTaskLogListVM : BasePagedListVM<AgvTaskLog_View, AgvTaskLogSearcher>
|
||||
{
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeStandardAction("AgvTaskLog", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "agv", dialogWidth: 900),
|
||||
};
|
||||
}
|
||||
|
||||
protected override IEnumerable<IGridColumn<AgvTaskLog_View>> InitGridHeader()
|
||||
{
|
||||
return new List<GridColumn<AgvTaskLog_View>>
|
||||
{
|
||||
this.MakeGridHeader(x => x.TaskNo).SetWidth(170),
|
||||
this.MakeGridHeader(x => x.OrderId).SetWidth(170),
|
||||
this.MakeGridHeader(x => x.FromStatus).SetWidth(90),
|
||||
this.MakeGridHeader(x => x.ToStatus).SetWidth(90),
|
||||
this.MakeGridHeader(x => x.Event).SetWidth(110),
|
||||
this.MakeGridHeader(x => x.Direction).SetWidth(80),
|
||||
this.MakeGridHeader(x => x.EventTime).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.DurationMs).SetWidth(90),
|
||||
this.MakeGridHeader(x => x.Operator).SetWidth(90),
|
||||
this.MakeGridHeader(x => x.RequestJson).SetWidth(180),
|
||||
this.MakeGridHeader(x => x.ResponseJson).SetWidth(180),
|
||||
this.MakeGridHeader(x => x.Remark),
|
||||
this.MakeGridHeader(x => x.CreateTime).SetWidth(150),
|
||||
this.MakeGridHeaderAction(width: 100)
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<AgvTaskLog_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<AgvTaskLog>()
|
||||
.CheckContain(Searcher.TaskNo, x => x.TaskNo)
|
||||
.CheckEqual(Searcher.Direction, x => x.Direction)
|
||||
.CheckContain(Searcher.Event, x => x.Event)
|
||||
.CheckContain(Searcher.RequestJson, x => x.RequestJson)
|
||||
.CheckContain(Searcher.ResponseJson, x => x.ResponseJson)
|
||||
.Select(x => new AgvTaskLog_View
|
||||
{
|
||||
ID = x.ID,
|
||||
TaskNo = x.TaskNo,
|
||||
OrderId = x.OrderId,
|
||||
FromStatus = x.FromStatus,
|
||||
ToStatus = x.ToStatus,
|
||||
Event = x.Event,
|
||||
Direction = x.Direction,
|
||||
EventTime = x.EventTime,
|
||||
DurationMs = x.DurationMs,
|
||||
Operator = x.Operator,
|
||||
RequestJson = x.RequestJson,
|
||||
ResponseJson = x.ResponseJson,
|
||||
Remark = x.Remark,
|
||||
CreateTime = x.CreateTime
|
||||
})
|
||||
.OrderByDescending(x => x.CreateTime);
|
||||
return query;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 任务日志列表行视图
|
||||
/// </summary>
|
||||
public class AgvTaskLog_View : AgvTaskLog
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
/// <summary>
|
||||
/// AGV 任务日志搜索条件(只读日志页)
|
||||
/// </summary>
|
||||
public partial class AgvTaskLogSearcher : BaseSearcher
|
||||
{
|
||||
[Display(Name = "AGV.TaskNo")]
|
||||
public string TaskNo { get; set; }
|
||||
|
||||
[Display(Name = "AGV.Direction")]
|
||||
public string Direction { get; set; }
|
||||
|
||||
[Display(Name = "AGV.Event")]
|
||||
public string Event { get; set; }
|
||||
|
||||
/// <summary>请求体(模糊查询)</summary>
|
||||
[Display(Name = "AGV.RequestJson")]
|
||||
public string RequestJson { get; set; }
|
||||
|
||||
/// <summary>响应体(模糊查询)</summary>
|
||||
[Display(Name = "AGV.ResponseJson")]
|
||||
public string ResponseJson { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using HHWMS.Web.Models.Agv;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
/// <summary>
|
||||
/// AGV 任务日志详情(查看请求/响应报文)
|
||||
/// </summary>
|
||||
public partial class AgvTaskLogVM : BaseCRUDVM<AgvTaskLog>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
using HHWMS.Web.Models.Agv;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
/// <summary>
|
||||
/// AGV 任务场景配置列表(方案 5.6:映射上游任务类型 → AGV 场景)
|
||||
/// </summary>
|
||||
public partial class AgvTaskSceneConfigListVM : BasePagedListVM<AgvTaskSceneConfig_View, AgvTaskSceneConfigSearcher>
|
||||
{
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeStandardAction("AgvTaskSceneConfig", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"], "agv", dialogWidth: 800),
|
||||
this.MakeStandardAction("AgvTaskSceneConfig", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "agv", dialogWidth: 800),
|
||||
this.MakeStandardAction("AgvTaskSceneConfig", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "agv", dialogWidth: 800),
|
||||
this.MakeStandardAction("AgvTaskSceneConfig", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "agv", dialogWidth: 800),
|
||||
};
|
||||
}
|
||||
|
||||
protected override IEnumerable<IGridColumn<AgvTaskSceneConfig_View>> InitGridHeader()
|
||||
{
|
||||
return new List<GridColumn<AgvTaskSceneConfig_View>>
|
||||
{
|
||||
this.MakeGridHeader(x => x.SourceTaskType).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.AgvTaskType).SetWidth(130),
|
||||
this.MakeGridHeader(x => x.SceneId).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.SceneName).SetWidth(180),
|
||||
this.MakeGridHeader(x => x.BinTaskLoad).SetWidth(100),
|
||||
this.MakeGridHeader(x => x.BinTaskUnload).SetWidth(100),
|
||||
this.MakeGridHeader(x => x.Remark),
|
||||
this.MakeGridHeaderAction(width: 200)
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<AgvTaskSceneConfig_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<AgvTaskSceneConfig>()
|
||||
.CheckContain(Searcher.SourceTaskType, x => x.SourceTaskType)
|
||||
.CheckEqual(Searcher.AgvTaskType, x => x.AgvTaskType)
|
||||
.CheckContain(Searcher.SceneId, x => x.SceneId)
|
||||
.Select(x => new AgvTaskSceneConfig_View
|
||||
{
|
||||
ID = x.ID,
|
||||
SourceTaskType = x.SourceTaskType,
|
||||
AgvTaskType = x.AgvTaskType,
|
||||
SceneId = x.SceneId,
|
||||
SceneName = x.SceneName,
|
||||
BinTaskLoad = x.BinTaskLoad,
|
||||
BinTaskUnload = x.BinTaskUnload,
|
||||
Remark = x.Remark
|
||||
})
|
||||
.OrderByDescending(x => x.ID);
|
||||
return query;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 场景配置列表行视图
|
||||
/// </summary>
|
||||
public class AgvTaskSceneConfig_View : AgvTaskSceneConfig
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using HHWMS.Web.Models;
|
||||
using HHWMS.Web.Models.Agv;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
/// <summary>
|
||||
/// AGV 任务场景配置搜索条件
|
||||
/// </summary>
|
||||
public partial class AgvTaskSceneConfigSearcher : BaseSearcher
|
||||
{
|
||||
[Display(Name = "AGV.SourceTaskType")]
|
||||
public string SourceTaskType { get; set; }
|
||||
|
||||
[Display(Name = "AGV.AgvTaskType")]
|
||||
public AgvTaskTypeEnum? AgvTaskType { get; set; }
|
||||
|
||||
[Display(Name = "AGV.SceneId")]
|
||||
public string SceneId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using HHWMS.Web.Models.Agv;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
/// <summary>
|
||||
/// AGV 任务场景配置表单
|
||||
/// </summary>
|
||||
public partial class AgvTaskSceneConfigVM : BaseCRUDVM<AgvTaskSceneConfig>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
using HHWMS.Web.Models;
|
||||
using HHWMS.Web.Models.Agv;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
/// <summary>
|
||||
/// AGV 平库任务列表(WTM 标准 ListVM,供 wt:searchpanel + wt:grid 渲染,风格与场景配置/日志页统一)
|
||||
/// 操作列按任务状态渲染 下发/取消/重试完成 行内按钮,点击调用 Index 页全局 JS(axios 调后端接口后刷新 grid)
|
||||
/// </summary>
|
||||
public partial class AgvTaskListVM : BasePagedListVM<AgvTask_View, AgvTaskSearcher>
|
||||
{
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
// 工具栏「下发任务」按钮:Dialog 打开 Create 表单页(功能与原页面弹窗一致,仅行内显示关闭)
|
||||
this.MakeStandardAction("AgvTask", GridActionStandardTypesEnum.Create, "下发任务", "agv", dialogWidth: 800).SetShowInRow(false)
|
||||
};
|
||||
}
|
||||
|
||||
protected override IEnumerable<IGridColumn<AgvTask_View>> InitGridHeader()
|
||||
{
|
||||
return new List<GridColumn<AgvTask_View>>
|
||||
{
|
||||
this.MakeGridHeader(x => x.TaskNo).SetWidth(170),
|
||||
// 任务场景列:关联 AgvTaskSceneConfig 取场景名称,便于人工识别业务类型
|
||||
this.MakeGridHeader(x => x.SceneName).SetWidth(110),
|
||||
this.MakeGridHeader(x => x.AgvStatusName).SetWidth(100),
|
||||
this.MakeGridHeader(x => x.FromLocation).SetWidth(110),
|
||||
this.MakeGridHeader(x => x.ToLocation).SetWidth(110),
|
||||
this.MakeGridHeader(x => x.ContainerCode).SetWidth(160),
|
||||
this.MakeGridHeader(x => x.SourceSystem).SetWidth(100),
|
||||
this.MakeGridHeader(x => x.ErrorMsg).SetWidth(200),
|
||||
this.MakeGridHeader(x => x.CreateTime).SetWidth(160),
|
||||
// 操作列:按状态渲染文字链接(新建/异常→下发;新建/已下发/执行中→取消;完成联动失败→重试完成)
|
||||
// 还原为最初始的纯 <a> 文字链接(仅 href + onclick 两个属性),链接间隔 5px 由页面 CSS 控制
|
||||
this.MakeGridHeader(x => x.Operation).SetWidth(120).SetFormat((a, b) =>
|
||||
{
|
||||
var st = (int)(a.AgvStatus ?? 0);
|
||||
var btns = new List<string>();
|
||||
if (st == 0 || st == 90)
|
||||
{
|
||||
btns.Add($"<a href=\"javascript:void(0)\" onclick=\"agvDispatch('{a.TaskNo}')\">下发</a>");
|
||||
}
|
||||
if (st == 0 || st == 5 || st == 10)
|
||||
{
|
||||
btns.Add($"<a href=\"javascript:void(0)\" onclick=\"agvCancel('{a.TaskNo}')\">取消</a>");
|
||||
}
|
||||
if (st == 99)
|
||||
{
|
||||
btns.Add($"<a href=\"javascript:void(0)\" onclick=\"agvRetryFinish('{a.TaskNo}')\">重试完成</a>");
|
||||
}
|
||||
if (btns.Count == 0)
|
||||
{
|
||||
return "-";
|
||||
}
|
||||
return string.Join("", btns);
|
||||
})
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<AgvTask_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<AgvTask>()
|
||||
.CheckContain(Searcher.TaskNo, x => x.TaskNo)
|
||||
.CheckContain(Searcher.FromLocation, x => x.FromLocation)
|
||||
.CheckContain(Searcher.ToLocation, x => x.ToLocation)
|
||||
.CheckContain(Searcher.ContainerCode, x => x.ContainerCode)
|
||||
.CheckEqual(Searcher.SourceSystem, x => x.SourceSystem)
|
||||
.CheckEqual(Searcher.AgvStatus, x => x.AgvStatus)
|
||||
.Select(x => new AgvTask_View
|
||||
{
|
||||
ID = x.ID,
|
||||
TaskNo = x.TaskNo,
|
||||
AgvStatus = x.AgvStatus,
|
||||
// 状态中文名(枚举成员名即中文:新建/已下发/执行中/异常/取消/完成联动失败/完成)
|
||||
AgvStatusName = x.AgvStatus == null ? "" : x.AgvStatus.ToString(),
|
||||
// 任务场景名:按 AgvTaskType 关联场景配置表(AgvTask 仅存枚举,未配置则留空)
|
||||
SceneName = x.AgvTaskType == null ? "" :
|
||||
DC.Set<AgvTaskSceneConfig>()
|
||||
.Where(c => c.AgvTaskType == x.AgvTaskType)
|
||||
.Select(c => c.SceneName)
|
||||
.FirstOrDefault() ?? "",
|
||||
FromLocation = x.FromLocation,
|
||||
ToLocation = x.ToLocation,
|
||||
ContainerCode = x.ContainerCode,
|
||||
SourceSystem = x.SourceSystem,
|
||||
ErrorMsg = x.ErrorMsg,
|
||||
CreateTime = x.CreateTime
|
||||
})
|
||||
.OrderByDescending(x => x.CreateTime);
|
||||
return query;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// AGV 任务列表行视图(SceneName 任务场景名 + AgvStatusName 中文状态 + Operation 虚拟操作列)
|
||||
/// </summary>
|
||||
public class AgvTask_View : AgvTask
|
||||
{
|
||||
/// <summary>任务场景名(由 AgvTaskSceneConfig 按 AgvTaskType 映射)</summary>
|
||||
[Display(Name = "任务场景")]
|
||||
public string SceneName { get; set; }
|
||||
|
||||
/// <summary>状态中文名(新建/已下发/执行中/异常/取消/完成联动失败/完成)</summary>
|
||||
[Display(Name = "AGV.AgvStatus")]
|
||||
public string AgvStatusName { get; set; }
|
||||
|
||||
/// <summary>操作列(SetFormat 服务端渲染行内按钮)</summary>
|
||||
[Display(Name = "操作")]
|
||||
public string Operation { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using HHWMS.Web.Models;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
/// <summary>
|
||||
/// AGV 平库任务搜索条件(任务列表页:任务号/起终点/容器模糊,来源/状态精确)
|
||||
/// </summary>
|
||||
public partial class AgvTaskSearcher : BaseSearcher
|
||||
{
|
||||
/// <summary>来源系统下拉选项(WMS / THIRD_PARTY)</summary>
|
||||
public List<ComboSelectListItem> AllSourceSystems { get; set; }
|
||||
|
||||
[Display(Name = "AGV.TaskNo")]
|
||||
public string TaskNo { get; set; }
|
||||
|
||||
[Display(Name = "AGV.FromLocation")]
|
||||
public string FromLocation { get; set; }
|
||||
|
||||
[Display(Name = "AGV.ToLocation")]
|
||||
public string ToLocation { get; set; }
|
||||
|
||||
[Display(Name = "AGV.ContainerCode")]
|
||||
public string ContainerCode { get; set; }
|
||||
|
||||
[Display(Name = "AGV.SourceSystem")]
|
||||
public string SourceSystem { get; set; }
|
||||
|
||||
[Display(Name = "AGV.AgvStatus")]
|
||||
public AgvTaskStatusEnum? AgvStatus { get; set; }
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
// 来源系统固定枚举下拉
|
||||
AllSourceSystems = new List<ComboSelectListItem>
|
||||
{
|
||||
new ComboSelectListItem { Value = "WMS", Text = "WMS" },
|
||||
new ComboSelectListItem { Value = "THIRD_PARTY", Text = "THIRD_PARTY" }
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,225 @@
|
||||
@model HHWMS.Web.AgvTaskListVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
@* 手动下发 AGV 任务表单(由列表页 grid 工具栏「下发任务」按钮以 Dialog 打开) *@
|
||||
<style>
|
||||
/* 任务场景下拉:原生 select + Vue 渲染选项,规避 ArcoVue 组件渲染链路问题 */
|
||||
.agv-scene-select {
|
||||
width: 100%;
|
||||
height: 32px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid #e5e6eb;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
color: #4e5969;
|
||||
font-size: 14px;
|
||||
outline: none;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.agv-scene-select:focus {
|
||||
border-color: rgb(22, 93, 255);
|
||||
}
|
||||
</style>
|
||||
<div id="plapp">
|
||||
<div style="padding: 16px 20px;">
|
||||
<a-form :model="form" auto-label-width>
|
||||
<a-form-item label="任务场景" field="taskType" required>
|
||||
<select v-model="form.taskType" class="agv-scene-select">
|
||||
<option value="" disabled>请选择任务场景(必填)</option>
|
||||
<option v-for="item in sceneOptions" :key="item.value" :value="item.value">{{ item.label }}</option>
|
||||
</select>
|
||||
</a-form-item>
|
||||
<a-form-item label="起点库位" field="fromLocation" required>
|
||||
<a-input v-model="form.fromLocation" placeholder="手动输入起点库位编码(必填)" allow-clear />
|
||||
</a-form-item>
|
||||
<a-form-item label="终点库位" field="toLocation" required>
|
||||
<a-input v-model="form.toLocation" placeholder="手动输入终点库位编码(必填)" allow-clear />
|
||||
</a-form-item>
|
||||
<a-form-item label="容器号" field="containerCode">
|
||||
<a-input v-model="form.containerCode" placeholder="可不填,自动生成 LS 临时容器" allow-clear />
|
||||
</a-form-item>
|
||||
<a-form-item label="优先级" field="priority">
|
||||
<a-input-number v-model="form.priority" :min="0" placeholder="默认 0" style="width:100%" />
|
||||
</a-form-item>
|
||||
<a-form-item label="物料明细" field="details">
|
||||
<div v-if="form.details.length === 0" style="color:#86909c; margin-bottom:8px;">
|
||||
未添加物料,按空容器业务处理
|
||||
</div>
|
||||
<div v-else style="width:100%; margin-bottom:8px;">
|
||||
<!-- 表头 -->
|
||||
<div style="display:flex; background:#f7f8fa; border:1px solid #e5e6eb; border-radius:4px 4px 0 0; padding:6px 8px; font-weight:500; font-size:13px; color:#4e5969;">
|
||||
<span style="flex:2.2;">物料编码</span>
|
||||
<span style="flex:1; text-align:center;">数量</span>
|
||||
<span style="flex:1.4; text-align:center;">批次</span>
|
||||
<span style="width:56px; text-align:center;">操作</span>
|
||||
</div>
|
||||
<!-- 物料行:多个物料竖向排列 -->
|
||||
<div v-for="d in form.details" :key="d._key"
|
||||
style="display:flex; align-items:center; border:1px solid #e5e6eb; border-top:none; padding:4px 8px; background:#fff;">
|
||||
<div style="flex:2.2; padding-right:8px;">
|
||||
<a-auto-complete v-model="d.materialCode" :data="d.options" placeholder="编码/名称搜索"
|
||||
@@search="(kw) => handleMaterialSearch(kw, d)" style="width:100%" />
|
||||
</div>
|
||||
<div style="flex:1; padding-right:8px;">
|
||||
<a-input-number v-model="d.qty" :min="0" placeholder="数量" style="width:100%" />
|
||||
</div>
|
||||
<div style="flex:1.4; padding-right:8px;">
|
||||
<a-input v-model="d.batch" placeholder="批次" allow-clear />
|
||||
</div>
|
||||
<div style="width:56px; text-align:center;">
|
||||
<a-button type="text" status="danger" size="mini" @@click="removeDetail(d._key)">删除</a-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a-button type="outline" size="small" @@click="addMaterial">+ 添加物料</a-button>
|
||||
</a-form-item>
|
||||
<a-form-item>
|
||||
<a-space>
|
||||
<a-button type="primary" @@click="createTask" :loading="loading">创建任务</a-button>
|
||||
<a-button type="outline" @@click="resetForm">重置</a-button>
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// IIFE 包裹:弹窗 HTML 每次打开都会重新注入执行脚本,
|
||||
// 避免顶层 const 在当前文档重复声明报错导致第二次打开表单失效
|
||||
(function () {
|
||||
const { createApp, reactive, ref, onMounted } = Vue;
|
||||
const { Message } = ArcoVue;
|
||||
|
||||
const app = createApp({
|
||||
setup() {
|
||||
const loading = ref(false);
|
||||
// 场景选项由服务端 Create 时直接查库注入,前端无需异步加载,保证下拉必有选项
|
||||
const sceneOptions = ref(@Html.Raw(ViewBag.ScenesJson ?? "[]"));
|
||||
|
||||
const form = reactive({
|
||||
taskType: undefined,
|
||||
fromLocation: "",
|
||||
toLocation: "",
|
||||
containerCode: "",
|
||||
priority: 0,
|
||||
details: []
|
||||
});
|
||||
|
||||
// 关闭当前弹窗并刷新列表:同文档弹窗(layer type:1)用父页记录的层号关闭;兼容旧 iframe 模式兜底
|
||||
const closeAndRefresh = () => {
|
||||
try {
|
||||
if (window.agvCreateLayerIndex) {
|
||||
layer.close(window.agvCreateLayerIndex);
|
||||
window.agvCreateLayerIndex = 0;
|
||||
} else {
|
||||
var idx = parent.layer.getFrameIndex(window.name);
|
||||
if (idx) parent.layer.close(idx);
|
||||
}
|
||||
} catch (e) { /* 非 Dialog 环境忽略 */ }
|
||||
try {
|
||||
if (window.reloadAgvTask) { window.reloadAgvTask(); }
|
||||
else if (parent.reloadAgvTask) { parent.reloadAgvTask(); }
|
||||
} catch (e) { /* 父页不可达时忽略 */ }
|
||||
};
|
||||
|
||||
const loadScenes = async () => {
|
||||
// 场景已由服务端注入 sceneOptions,此处保留用于手动刷新兜底
|
||||
const { data } = await axios.post("/agv/AgvTask/GetScenes");
|
||||
if (data && data.Data && data.Data.length > 0)
|
||||
{
|
||||
sceneOptions.value = data.Data;
|
||||
}
|
||||
};
|
||||
|
||||
// 物料搜索(按行缓存选项,支持多行独立搜索)
|
||||
const handleMaterialSearch = async (keyword, row) => {
|
||||
if (!row) return;
|
||||
const { data } = await axios.post(`/agv/AgvTask/GetMaterials?keyword=${encodeURIComponent(keyword || "")}`);
|
||||
row.options = (data.Data || []).map(m => `${m.materialCode}(${m.materialName || ""})`);
|
||||
};
|
||||
|
||||
// 添加物料行(多个物料竖向表格,直接内嵌,无弹窗)
|
||||
const addMaterial = () => {
|
||||
form.details.push({
|
||||
_key: Date.now() + Math.random(),
|
||||
materialCode: "",
|
||||
qty: null,
|
||||
batch: "",
|
||||
options: [],
|
||||
erpDetailId: ""
|
||||
});
|
||||
};
|
||||
|
||||
const removeDetail = (key) => {
|
||||
const idx = form.details.findIndex(d => d._key === key);
|
||||
if (idx >= 0) form.details.splice(idx, 1);
|
||||
};
|
||||
|
||||
const createTask = async () => {
|
||||
if (!form.taskType) {
|
||||
Message.warning("任务场景为必填项");
|
||||
return;
|
||||
}
|
||||
if (!form.fromLocation || !form.fromLocation.trim()) {
|
||||
Message.warning("起点库位为必填项");
|
||||
return;
|
||||
}
|
||||
if (!form.toLocation || !form.toLocation.trim()) {
|
||||
Message.warning("终点库位为必填项");
|
||||
return;
|
||||
}
|
||||
if (form.fromLocation.trim() === form.toLocation.trim()) {
|
||||
Message.warning("起点与终点不能相同");
|
||||
return;
|
||||
}
|
||||
loading.value = true;
|
||||
try {
|
||||
// 过滤未填物料编码的空行,全空则按空容器业务处理
|
||||
const validDetails = form.details
|
||||
.filter(d => d.materialCode && d.materialCode.trim())
|
||||
.map(d => ({ MaterialCode: d.materialCode.trim(), Qty: d.qty || 0, Batch: d.batch || "", ErpDetailId: d.erpDetailId || "" }));
|
||||
const { data } = await axios.post("/agv/AgvTask/Create", {
|
||||
TaskType: form.taskType,
|
||||
FromLocation: form.fromLocation.trim(),
|
||||
ToLocation: form.toLocation.trim(),
|
||||
ContainerCode: form.containerCode || undefined,
|
||||
Priority: form.priority || 0,
|
||||
Details: validDetails.length > 0 ? validDetails : undefined
|
||||
});
|
||||
if (data.Code == 200) {
|
||||
// 提示显示在弹窗上层(父窗口 layer),iframe 内 ArcoVue Message 会被弹窗遮挡
|
||||
parent.layer.msg(data.Msg || "任务创建成功", { icon: 1, time: 1500 });
|
||||
closeAndRefresh();
|
||||
} else {
|
||||
parent.layer.msg(data.Msg || "操作失败", { icon: 2, time: 3000 });
|
||||
}
|
||||
} finally {
|
||||
loading.value = false;
|
||||
}
|
||||
};
|
||||
|
||||
const resetForm = () => {
|
||||
form.taskType = undefined;
|
||||
form.fromLocation = "";
|
||||
form.toLocation = "";
|
||||
form.containerCode = "";
|
||||
form.priority = 0;
|
||||
form.details = [];
|
||||
};
|
||||
|
||||
onMounted(async () => {
|
||||
try { await loadScenes(); }
|
||||
catch (e) { console.warn("loadScenes 失败", e); }
|
||||
});
|
||||
|
||||
return {
|
||||
form, loading, sceneOptions,
|
||||
createTask, resetForm,
|
||||
addMaterial, removeDetail, handleMaterialSearch
|
||||
};
|
||||
}
|
||||
});
|
||||
app.use(ArcoVue);
|
||||
app.mount("#plapp");
|
||||
})(); /* IIFE 结束 */
|
||||
</script>
|
||||
@@ -0,0 +1,225 @@
|
||||
@model HHWMS.Web.AgvTaskListVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
@* AGV 平库任务列表:原生 HTML 表格渲染,完全避开 WTM grid / layui table 渲染链路的异常问题
|
||||
查询、分页、行内 下发/取消/重试完成 均由本页 JS 直调后端接口实现 *@
|
||||
<div style="padding:10px;">
|
||||
<!-- 查询区 -->
|
||||
<div style="background:#fff; border-radius:4px; padding:12px 12px 2px; margin-bottom:10px; box-shadow:0 1px 2px rgba(0,0,0,.06);">
|
||||
<div style="display:flex; flex-wrap:wrap; gap:8px 18px; align-items:center;">
|
||||
<div><label style="margin-right:4px;">任务号</label><input id="q_taskNo" placeholder="模糊查询" class="agv-q-input" /></div>
|
||||
<div><label style="margin-right:4px;">起点</label><input id="q_from" placeholder="模糊查询" class="agv-q-input" /></div>
|
||||
<div><label style="margin-right:4px;">终点</label><input id="q_to" placeholder="模糊查询" class="agv-q-input" /></div>
|
||||
<div><label style="margin-right:4px;">容器号</label><input id="q_container" placeholder="模糊查询" class="agv-q-input" /></div>
|
||||
<div><label style="margin-right:4px;">来源系统</label><select id="q_source" class="agv-q-input"><option value="">全部</option></select></div>
|
||||
<div><label style="margin-right:4px;">状态</label><select id="q_status" class="agv-q-input"><option value="">全部</option></select></div>
|
||||
<div style="margin-bottom:10px;">
|
||||
<button type="button" class="layui-btn layui-btn-sm" onclick="agvSearch(1)"><i class="layui-icon"></i> 查询</button>
|
||||
<button type="button" class="layui-btn layui-btn-sm layui-btn-primary" onclick="agvReset()">重置</button>
|
||||
<button type="button" class="layui-btn layui-btn-sm layui-btn-normal" style="margin-left:10px;" onclick="agvOpenCreate()"><i class="layui-icon"></i> 下发任务</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 数据表格(原生 table,行内操作由 JS 直接生成,显示稳定可控) -->
|
||||
<table class="layui-table" style="margin:0;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:170px;">任务号</th>
|
||||
<th style="width:110px;">任务场景</th>
|
||||
<th style="width:90px;">状态</th>
|
||||
<th style="width:110px;">起点</th>
|
||||
<th style="width:110px;">终点</th>
|
||||
<th style="width:150px;">容器号</th>
|
||||
<th style="width:90px;">来源系统</th>
|
||||
<th style="width:180px;">错误信息</th>
|
||||
<th style="width:150px;">创建时间</th>
|
||||
<th style="width:120px;">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="agvTbody"><tr><td colspan="10" style="text-align:center; color:#999;">加载中...</td></tr></tbody>
|
||||
</table>
|
||||
|
||||
<!-- 分页 -->
|
||||
<div style="display:flex; justify-content:flex-end; align-items:center; gap:10px; padding:10px 2px; color:#666;">
|
||||
<span id="agvTotal">共 0 条</span>
|
||||
<span>每页</span>
|
||||
<select id="q_size" style="height:26px; padding:0 4px; border:1px solid #e5e6eb; border-radius:4px; outline:none;" onchange="agvSizeChange()">
|
||||
<option value="10" selected>10 条</option>
|
||||
<option value="20">20 条</option>
|
||||
<option value="50">50 条</option>
|
||||
<option value="100">100 条</option>
|
||||
</select>
|
||||
<button type="button" class="layui-btn layui-btn-xs layui-btn-primary" onclick="agvPageTurn(-1)">上一页</button>
|
||||
<span id="agvPageNo">第 1 页</span>
|
||||
<button type="button" class="layui-btn layui-btn-xs layui-btn-primary" onclick="agvPageTurn(1)">下一页</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.agv-q-input {
|
||||
height: 30px;
|
||||
padding: 0 8px;
|
||||
border: 1px solid #e5e6eb;
|
||||
border-radius: 4px;
|
||||
outline: none;
|
||||
font-size: 13px;
|
||||
width: 130px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.agv-q-input:focus { border-color: #16b777; }
|
||||
/* 操作列文字链接:纯文字可点击,间隔 5px */
|
||||
#agvTbody a { color: #01AAED; margin-right: 5px; }
|
||||
#agvTbody td { font-size: 13px; }
|
||||
</style>
|
||||
|
||||
<script>
|
||||
// 状态映射(与 AgvTaskStatusEnum 一致:成员名即中文)
|
||||
var agvStatusMap = { 0: "新建", 5: "已下发", 10: "执行中", 90: "异常", 95: "取消", 99: "完成联动失败", 100: "完成" };
|
||||
var agvPage = 1, agvSize = 10, agvTotal = 0;
|
||||
|
||||
// HTML 转义,防止数据中的特殊字符破坏表格结构
|
||||
function agvEsc(v) {
|
||||
return v == null ? "" : String(v).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
||||
}
|
||||
|
||||
// 加载任务列表(多条件 + 分页)
|
||||
function loadTasks() {
|
||||
var body = {
|
||||
TaskNo: $("#q_taskNo").val(), FromLocation: $("#q_from").val(), ToLocation: $("#q_to").val(),
|
||||
ContainerCode: $("#q_container").val(), SourceSystem: $("#q_source").val(),
|
||||
AgvStatus: $("#q_status").val() === "" ? null : parseInt($("#q_status").val()),
|
||||
Page: agvPage, Size: agvSize
|
||||
};
|
||||
$.ajax({
|
||||
type: "post", url: "/agv/AgvTask/GetTasks", dataType: "json",
|
||||
contentType: "application/json", data: JSON.stringify(body),
|
||||
success: function (json) {
|
||||
var data = json.Data || {};
|
||||
agvTotal = data.Total || 0;
|
||||
var list = data.List || [];
|
||||
if (list.length === 0) {
|
||||
$("#agvTbody").html('<tr><td colspan="10" style="text-align:center; color:#999;">暂无数据</td></tr>');
|
||||
} else {
|
||||
var rows = "";
|
||||
for (var i = 0; i < list.length; i++) {
|
||||
var t = list[i];
|
||||
rows += "<tr>"
|
||||
+ "<td>" + agvEsc(t.TaskNo) + "</td>"
|
||||
+ "<td>" + agvEsc(t.SceneName) + "</td>"
|
||||
+ "<td>" + agvEsc(t.AgvStatusName || agvStatusMap[t.AgvStatus] || "-") + "</td>"
|
||||
+ "<td>" + agvEsc(t.FromLocation) + "</td>"
|
||||
+ "<td>" + agvEsc(t.ToLocation) + "</td>"
|
||||
+ "<td>" + agvEsc(t.ContainerCode) + "</td>"
|
||||
+ "<td>" + agvEsc(t.SourceSystem) + "</td>"
|
||||
+ "<td>" + agvEsc(t.ErrorMsg) + "</td>"
|
||||
+ "<td>" + agvEsc((t.CreateTime || "").replace("T", " ").substring(0, 19)) + "</td>"
|
||||
+ "<td>" + agvOps(t.AgvStatus, t.TaskNo) + "</td>"
|
||||
+ "</tr>";
|
||||
}
|
||||
$("#agvTbody").html(rows);
|
||||
}
|
||||
$("#agvTotal").text("共 " + agvTotal + " 条");
|
||||
var maxPage = Math.max(1, Math.ceil(agvTotal / agvSize));
|
||||
$("#agvPageNo").text("第 " + agvPage + " / " + maxPage + " 页");
|
||||
},
|
||||
error: function () {
|
||||
$("#agvTbody").html('<tr><td colspan="10" style="text-align:center; color:#999;">请求失败,请检查服务是否正常</td></tr>');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 行内操作链接:新建/异常→下发;新建/已下发/执行中→取消;完成联动失败→重试完成
|
||||
function agvOps(st, taskNo) {
|
||||
var html = "";
|
||||
if (st == 0 || st == 90) {
|
||||
html += "<a href='javascript:void(0)' onclick=\"agvDispatch('" + agvEsc(taskNo) + "')\">下发</a>";
|
||||
}
|
||||
if (st == 0 || st == 5 || st == 10) {
|
||||
html += "<a href='javascript:void(0)' onclick=\"agvCancel('" + agvEsc(taskNo) + "')\">取消</a>";
|
||||
}
|
||||
if (st == 99) {
|
||||
html += "<a href='javascript:void(0)' onclick=\"agvRetryFinish('" + agvEsc(taskNo) + "')\">重试完成</a>";
|
||||
}
|
||||
return html == "" ? "-" : html;
|
||||
}
|
||||
|
||||
// 通用行操作:确认后 POST 指定接口,成功后刷新列表
|
||||
function agvPost(url, taskNo, confirmText, successMsg) {
|
||||
layer.confirm(confirmText + " [" + taskNo + "]?", { icon: 3, title: "提示" }, function (index) {
|
||||
layer.close(index);
|
||||
$.ajax({
|
||||
type: "post", dataType: "json", contentType: "application/json",
|
||||
data: JSON.stringify({ TaskNo: taskNo }), url: url,
|
||||
success: function (json) {
|
||||
if (json.Code == 200) {
|
||||
layer.msg(json.Msg || successMsg);
|
||||
loadTasks();
|
||||
} else {
|
||||
layer.alert(json.Msg || "操作失败");
|
||||
}
|
||||
},
|
||||
error: function () { layer.alert("请求失败,请检查服务是否正常"); }
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// 下发(仅新建/异常行显示,后端仍做状态校验兜底)
|
||||
function agvDispatch(taskNo) { agvPost("/agv/AgvTask/Dispatch", taskNo, "确定下发任务", "下发成功"); }
|
||||
// 取消(仅新建/已下发/执行中行显示)
|
||||
function agvCancel(taskNo) { agvPost("/agv/AgvTask/Cancel", taskNo, "确定取消任务", "取消成功"); }
|
||||
// 重试完成联动(仅完成联动失败行显示)
|
||||
function agvRetryFinish(taskNo) { agvPost("/agv/AgvTask/RetryFinish", taskNo, "确定重试完成联动", "重试成功"); }
|
||||
|
||||
// 查询(重置回第 1 页)
|
||||
function agvSearch(page) { agvPage = page || 1; loadTasks(); }
|
||||
// 切换每页条数:回到第 1 页重新加载
|
||||
function agvSizeChange() {
|
||||
agvSize = parseInt($("#q_size").val()) || 10;
|
||||
agvSearch(1);
|
||||
}
|
||||
// 翻页
|
||||
function agvPageTurn(step) {
|
||||
var maxPage = Math.max(1, Math.ceil(agvTotal / agvSize));
|
||||
var target = agvPage + step;
|
||||
if (target < 1 || target > maxPage) return;
|
||||
agvPage = target; loadTasks();
|
||||
}
|
||||
// 重置查询条件
|
||||
function agvReset() {
|
||||
$("#q_taskNo,#q_from,#q_to,#q_container").val("");
|
||||
$("#q_source,#q_status").val("");
|
||||
agvSearch(1);
|
||||
}
|
||||
|
||||
// 打开「下发任务」弹窗:与 WTM 弹窗机制一致(ajax 取 HTML 注入当前文档 type:1),
|
||||
// 当前文档已加载 Vue/ArcoVue/CSS,避免 iframe 内无脚本导致表单模板原样显示
|
||||
var agvCreateLayerIndex = 0;
|
||||
function agvOpenCreate() {
|
||||
$.ajax({
|
||||
type: "get", url: "/agv/AgvTask/Create", dataType: "html",
|
||||
success: function (html) {
|
||||
agvCreateLayerIndex = layer.open({
|
||||
type: 1, title: "下发任务", area: ["800px", "90%"], content: html
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 供 Create 弹窗关闭后刷新列表
|
||||
function reloadAgvTask() { loadTasks(); }
|
||||
|
||||
// 初始化:填充状态下拉 + 来源系统下拉 + 首次加载
|
||||
$(function () {
|
||||
var statusSel = $("#q_status");
|
||||
for (var k in agvStatusMap) { statusSel.append('<option value="' + k + '">' + agvStatusMap[k] + "</option>"); }
|
||||
$.ajax({
|
||||
type: "post", url: "/agv/AgvTask/GetSourceSystems", dataType: "json", contentType: "application/json", data: "{}",
|
||||
success: function (json) {
|
||||
var list = json.Data || [];
|
||||
for (var i = 0; i < list.length; i++) { $("#q_source").append('<option value="' + agvEsc(list[i]) + '">' + agvEsc(list[i]) + "</option>"); }
|
||||
}
|
||||
});
|
||||
loadTasks();
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,22 @@
|
||||
@model HHWMS.Web.AgvTaskLogVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Two">
|
||||
<wt:display field="Entity.TaskNo"/>
|
||||
<wt:display field="Entity.OrderId"/>
|
||||
<wt:display field="Entity.FromStatus"/>
|
||||
<wt:display field="Entity.ToStatus"/>
|
||||
<wt:display field="Entity.Event"/>
|
||||
<wt:display field="Entity.Direction"/>
|
||||
<wt:display field="Entity.EventTime"/>
|
||||
<wt:display field="Entity.DurationMs"/>
|
||||
<wt:display field="Entity.Operator"/>
|
||||
</wt:row>
|
||||
<wt:display field="Entity.Remark"/>
|
||||
<wt:display field="Entity.RequestJson"/>
|
||||
<wt:display field="Entity.ResponseJson"/>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,13 @@
|
||||
@model HHWMS.Web.AgvTaskLogListVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:searchpanel vm="@Model" reset-btn="true" grid-id="AgvTaskLog">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Three">
|
||||
<wt:textbox field="Searcher.TaskNo" />
|
||||
<wt:textbox field="Searcher.Direction" />
|
||||
<wt:textbox field="Searcher.Event" />
|
||||
<wt:textbox field="Searcher.RequestJson" />
|
||||
<wt:textbox field="Searcher.ResponseJson" />
|
||||
</wt:row>
|
||||
</wt:searchpanel>
|
||||
<wt:grid vm="@Model" id="AgvTaskLog" url="/agv/AgvTaskLog/Search" />
|
||||
@@ -0,0 +1,18 @@
|
||||
@model HHWMS.Web.AgvTaskSceneConfigVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Two">
|
||||
<wt:textbox field="Entity.SourceTaskType" />
|
||||
<wt:combobox field="Entity.AgvTaskType" />
|
||||
<wt:textbox field="Entity.SceneId" />
|
||||
<wt:textbox field="Entity.SceneName" />
|
||||
<wt:textbox field="Entity.BinTaskLoad" />
|
||||
<wt:textbox field="Entity.BinTaskUnload" />
|
||||
</wt:row>
|
||||
<wt:textbox field="Entity.Remark" />
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton />
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,20 @@
|
||||
@model HHWMS.Web.AgvTaskSceneConfigVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:quote>@Localizer["Sys.DeleteConfirm"]</wt:quote>
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Two">
|
||||
<wt:display field="Entity.SourceTaskType"/>
|
||||
<wt:display field="Entity.AgvTaskType"/>
|
||||
<wt:display field="Entity.SceneId"/>
|
||||
<wt:display field="Entity.SceneName"/>
|
||||
<wt:display field="Entity.BinTaskLoad"/>
|
||||
<wt:display field="Entity.BinTaskUnload"/>
|
||||
</wt:row>
|
||||
<wt:display field="Entity.Remark"/>
|
||||
<wt:hidden field="Entity.ID" />
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton theme=" ButtonThemeEnum.Warm" text="@Localizer["Sys.Delete"]"/>
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,17 @@
|
||||
@model HHWMS.Web.AgvTaskSceneConfigVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Two">
|
||||
<wt:display field="Entity.SourceTaskType"/>
|
||||
<wt:display field="Entity.AgvTaskType"/>
|
||||
<wt:display field="Entity.SceneId"/>
|
||||
<wt:display field="Entity.SceneName"/>
|
||||
<wt:display field="Entity.BinTaskLoad"/>
|
||||
<wt:display field="Entity.BinTaskUnload"/>
|
||||
</wt:row>
|
||||
<wt:display field="Entity.Remark"/>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,19 @@
|
||||
@model HHWMS.Web.AgvTaskSceneConfigVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Two">
|
||||
<wt:textbox field="Entity.SourceTaskType" />
|
||||
<wt:combobox field="Entity.AgvTaskType" />
|
||||
<wt:textbox field="Entity.SceneId" />
|
||||
<wt:textbox field="Entity.SceneName" />
|
||||
<wt:textbox field="Entity.BinTaskLoad" />
|
||||
<wt:textbox field="Entity.BinTaskUnload" />
|
||||
</wt:row>
|
||||
<wt:textbox field="Entity.Remark" />
|
||||
<wt:hidden field="Entity.ID" />
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton />
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,11 @@
|
||||
@model HHWMS.Web.AgvTaskSceneConfigListVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:searchpanel vm="@Model" reset-btn="true" grid-id="AgvTaskSceneConfig">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Three">
|
||||
<wt:textbox field="Searcher.SourceTaskType" />
|
||||
<wt:combobox field="Searcher.AgvTaskType" empty-text="@Localizer["Sys.All"]" />
|
||||
<wt:textbox field="Searcher.SceneId" />
|
||||
</wt:row>
|
||||
</wt:searchpanel>
|
||||
<wt:grid vm="@Model" id="AgvTaskSceneConfig" url="/agv/AgvTaskSceneConfig/Search" />
|
||||
Reference in new issue
Block a user