抛光仓库功能
This commit is contained in:
@@ -104,27 +104,6 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 抛光手动入库
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost("doWmPolishWarehousing")]
|
||||
[ActionPermissionFilter(Permission = "business:wmpolishinventory:add")]
|
||||
[Log(Title = "抛光手动入库", BusinessType = BusinessType.INSERT)]
|
||||
public IActionResult DoWmPolishWarehousing([FromBody] WmPolishInventoryDto parm)
|
||||
{
|
||||
try
|
||||
{
|
||||
var modal = parm.Adapt<WmPolishInventory>().ToCreate(HttpContext);
|
||||
var response = _WmPolishInventoryService.DoWmPolishWarehousing(modal);
|
||||
return ToResponse(new ApiResult(200, "手动入库成功", response));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, "手动入库异常:" + e.Message, e.Message));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 物料下拉菜单查看
|
||||
/// </summary>
|
||||
@@ -142,5 +121,68 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
return ToResponse(new ApiResult(500, "获取物料下拉菜单数据失败:" + e.Message, null));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 抛光手动入库
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost("doWmPolishWarehousing")]
|
||||
[ActionPermissionFilter(Permission = "business:wmpolishinventory:edit")]
|
||||
[Log(Title = "抛光手动入库", BusinessType = BusinessType.UPDATE)]
|
||||
public IActionResult DoWmPolishWarehousing([FromBody] WmPolishInventoryDto parm)
|
||||
{
|
||||
try
|
||||
{
|
||||
var modal = parm.Adapt<WmPolishInventory>().ToCreate(HttpContext);
|
||||
var response = _WmPolishInventoryService.DoWmPolishWarehousing(modal);
|
||||
return ToResponse(new ApiResult(200, "手动入库成功", response));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, "手动入库异常:" + e.Message, e.Message));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 抛光手动出库
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost("doWmPolishRetrieval")]
|
||||
[ActionPermissionFilter(Permission = "business:wmpolishinventory:edit")]
|
||||
[Log(Title = "抛光手动出库", BusinessType = BusinessType.UPDATE)]
|
||||
public IActionResult DoWmPolishRetrieval([FromBody] WmPolishInventoryDto parm)
|
||||
{
|
||||
try
|
||||
{
|
||||
var modal = parm.Adapt<WmPolishInventory>().ToCreate(HttpContext);
|
||||
var response = _WmPolishInventoryService.DoWmPolishRetrieval(modal);
|
||||
return ToResponse(new ApiResult(200, "手动出库成功", response));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, "手动出库异常:" + e.Message, e.Message));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 抛光仓库盘点
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost("doWmPolishStocktaking")]
|
||||
[ActionPermissionFilter(Permission = "business:wmpolishinventory:edit")]
|
||||
[Log(Title = "抛光仓库盘点", BusinessType = BusinessType.INSERT)]
|
||||
public IActionResult DoWmPolishStocktaking([FromBody] WmPolishInventoryDto parm)
|
||||
{
|
||||
try
|
||||
{
|
||||
var modal = parm.Adapt<WmPolishInventory>().ToCreate(HttpContext);
|
||||
var response = _WmPolishInventoryService.DoWmPolishStocktaking(modal);
|
||||
return ToResponse(new ApiResult(200, "盘点成功", response));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return ToResponse(new ApiResult(500, "盘点异常:" + e.Message, e.Message));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user