添加库位监控
库存 库位 添加zone权限管控
This commit is contained in:
1 parent
b005422b01
commit
e90e0db019
43 files changed
+536
-479
No files matched your search
@@ -260,7 +260,7 @@ namespace HHWMS.Web.Controllers
|
||||
locationList.Add(new Location
|
||||
{
|
||||
Code = $"{vm.Entity.Type}{vm.Entity.RoadWay.ToString().PadLeft(2, '0')}-{row.ToString().PadLeft(2, '0')}-{line.ToString().PadLeft(2, '0')}-{layer.ToString().PadLeft(2, '0')}",
|
||||
LocationZoneId = vm.Entity.LocationZoneId,
|
||||
ZoneId = vm.Entity.ZoneId,
|
||||
Type = vm.Entity.Type,
|
||||
RoadWay = vm.Entity.RoadWay,
|
||||
Row = row,
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.Collections.Generic;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Mvc;
|
||||
|
||||
namespace HHWMS.Web.Controllers
|
||||
{
|
||||
[Area("configs")]
|
||||
[ActionDescription("库位监控")]
|
||||
public partial class LocationMonitorController : BaseController
|
||||
{
|
||||
[ActionDescription("二维监控")]
|
||||
public IActionResult Index()
|
||||
{
|
||||
var vm = Wtm.CreateVM<LocationMonitor2DVM>();
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public IActionResult GetAreas()
|
||||
{
|
||||
var vm = Wtm.CreateVM<LocationMonitor2DVM>();
|
||||
return Json(vm.GetAreas());
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public IActionResult GetRows([FromQuery]int area)
|
||||
{
|
||||
var vm = Wtm.CreateVM<LocationMonitor2DVM>();
|
||||
return Json(vm.GetRows(area));
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public IActionResult GetLocationsByAreaAndRow([FromQuery]int area, short row)
|
||||
{
|
||||
var vm = Wtm.CreateVM<LocationMonitor2DVM>();
|
||||
return Json(vm.GetLocationsByAreaAndRow(area, row));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user