仓库管理-库位信息:初始化
This commit is contained in:
@@ -1,83 +0,0 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using ZR.Model.MES.wms;
|
||||
using ZR.Model.MES.wms.POJO.DTO;
|
||||
using ZR.Model.MES.wms.POJO.query;
|
||||
|
||||
namespace ZR.Admin.WebApi.Controllers.mes.wms
|
||||
{
|
||||
/// <summary>
|
||||
/// 货区接口列表
|
||||
/// </summary>
|
||||
[Route("mes/wms/area")]
|
||||
public class AreaController : BaseController
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询货区列表
|
||||
/// </summary>
|
||||
/// <param name="query">查询条件</param>
|
||||
/// <param name="page">分页条件</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("list")]
|
||||
public IActionResult List(AreaQuery query, Pageable page)
|
||||
{
|
||||
return ToResponse(new ApiResult(200, "success", null));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 导出货区列表
|
||||
/// </summary>
|
||||
/// <param name="query">查询条件</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("export")]
|
||||
public IActionResult Export(AreaQuery query)
|
||||
{
|
||||
return ToResponse(new ApiResult(200, "success", null));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取货区详细信息
|
||||
/// </summary>
|
||||
/// <param name="id">货区id</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("getInfo")]
|
||||
public IActionResult GetInfo(long id)
|
||||
{
|
||||
return ToResponse(new ApiResult(200, "success", null));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 新增货区
|
||||
/// </summary>
|
||||
/// <param name="area">新增数据</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("add")]
|
||||
public IActionResult Add(WmsArea area)
|
||||
{
|
||||
return ToResponse(new ApiResult(200, "success", null));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改货区
|
||||
/// </summary>
|
||||
/// <param name="area">修改数据</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("edit")]
|
||||
public IActionResult Edit(WmsArea area)
|
||||
{
|
||||
return ToResponse(new ApiResult(200, "success", null));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除货区
|
||||
/// </summary>
|
||||
/// <param name="ids">删除id列表</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("remove")]
|
||||
public IActionResult Remove(long[] ids)
|
||||
{
|
||||
return ToResponse(new ApiResult(200, "success", null));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,83 +0,0 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using ZR.Model.MES.wms;
|
||||
using ZR.Model.MES.wms.POJO.DTO;
|
||||
using ZR.Model.MES.wms.POJO.query;
|
||||
|
||||
namespace ZR.Admin.WebApi.Controllers.mes.wms
|
||||
{
|
||||
/// <summary>
|
||||
/// 货架接口列表
|
||||
/// </summary>
|
||||
[Route("mes/wms/rack")]
|
||||
public class RackController : BaseController
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询货架列表
|
||||
/// </summary>
|
||||
/// <param name="query">查询条件</param>
|
||||
/// <param name="page">分页条件</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("list")]
|
||||
public IActionResult List(AreaQuery query, Pageable page)
|
||||
{
|
||||
return ToResponse(new ApiResult(200, "success", null));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 导出货架列表
|
||||
/// </summary>
|
||||
/// <param name="query">查询条件</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("export")]
|
||||
public IActionResult Export(AreaQuery query)
|
||||
{
|
||||
return ToResponse(new ApiResult(200, "success", null));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取货架详细信息
|
||||
/// </summary>
|
||||
/// <param name="id">货区id</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("getInfo")]
|
||||
public IActionResult GetInfo(long id)
|
||||
{
|
||||
return ToResponse(new ApiResult(200, "success", null));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 新增货架
|
||||
/// </summary>
|
||||
/// <param name="area">新增数据</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("add")]
|
||||
public IActionResult Add(WmsArea area)
|
||||
{
|
||||
return ToResponse(new ApiResult(200, "success", null));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改货架
|
||||
/// </summary>
|
||||
/// <param name="area">修改数据</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("edit")]
|
||||
public IActionResult Edit(WmsArea area)
|
||||
{
|
||||
return ToResponse(new ApiResult(200, "success", null));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除货架
|
||||
/// </summary>
|
||||
/// <param name="ids">删除数据</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("remove")]
|
||||
public IActionResult Remove(long[] ids)
|
||||
{
|
||||
return ToResponse(new ApiResult(200, "success", null));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using Infrastructure.Extensions;
|
||||
using JinianNet.JNTemplate;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using ZR.Model.MES.qu;
|
||||
using ZR.Model.MES.wms;
|
||||
using ZR.Service.mes.wms.IService;
|
||||
|
||||
namespace ZR.Admin.WebApi.Controllers.mes.wms
|
||||
{
|
||||
[Route("/mes/wm/storagelocation")]
|
||||
public class WMlocationInfoController : BaseController
|
||||
{
|
||||
|
||||
private readonly IWMlocationInfoService wm_locationInfoService;
|
||||
public WMlocationInfoController(IWMlocationInfoService wm_locationInfoService)
|
||||
{
|
||||
this.wm_locationInfoService = wm_locationInfoService;
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询仓库库位信息
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet("production_warehouse_info")]
|
||||
public IActionResult Queryproduction_warehouse_info(string shelf = "", int layer = 0,int pageNum=0,int pageSize=0)
|
||||
{
|
||||
(List<WmInfo>, int) data = wm_locationInfoService.Getwminfo_product(shelf, layer, pageNum, pageSize);
|
||||
return ToResponse(new ApiResult(200, "success", data));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user