添加库位监控

库存 库位 添加zone权限管控
This commit is contained in:
zhougf committed 2025-05-13 17:26:39 +08:00
1 parent b005422b01
commit e90e0db019
43 files changed
+536 -479

No files matched your search

@@ -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));
}
}
}