入库检验
This commit is contained in:
@@ -0,0 +1,111 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using ZR.Model.Dto;
|
||||
using ZR.Service.Business.IBusinessService;
|
||||
using ZR.Admin.WebApi.Extensions;
|
||||
using ZR.Admin.WebApi.Filters;
|
||||
using ZR.Service.mes.wms.IService;
|
||||
using ZR.Model.MES.wms.Dto;
|
||||
using ZR.Model.MES.wms;
|
||||
|
||||
//创建时间:2024-04-17
|
||||
namespace ZR.Admin.WebApi.Controllers
|
||||
{
|
||||
/// <summary>
|
||||
/// 成品入库检验
|
||||
/// </summary>
|
||||
[Verify]
|
||||
[Route("/mes/wm/WmFgentryInspect")]
|
||||
public class WmFgentryInspectController : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
/// 成品入库检验接口
|
||||
/// </summary>
|
||||
private readonly IWmFgentryInspectService _WmFgentryInspectService;
|
||||
|
||||
public WmFgentryInspectController(IWmFgentryInspectService WmFgentryInspectService)
|
||||
{
|
||||
_WmFgentryInspectService = WmFgentryInspectService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询成品入库检验列表
|
||||
/// </summary>
|
||||
/// <param name="parm"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("list")]
|
||||
[ActionPermissionFilter(Permission = "wmsManagement:wmfgentryinspect:list")]
|
||||
public IActionResult QueryWmFgentryInspect([FromQuery] WmFgentryInspectQueryDto parm)
|
||||
{
|
||||
var response = _WmFgentryInspectService.GetList(parm);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询成品入库检验详情
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("{Id}")]
|
||||
[ActionPermissionFilter(Permission = "wmsManagement:wmfgentryinspect:query")]
|
||||
public IActionResult GetWmFgentryInspect(int Id)
|
||||
{
|
||||
var response = _WmFgentryInspectService.GetInfo(Id);
|
||||
|
||||
var info = response.Adapt<WmFgentryInspect>();
|
||||
return SUCCESS(info);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加成品入库检验
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[ActionPermissionFilter(Permission = "wmsManagement:wmfgentryinspect:add")]
|
||||
[Log(Title = "成品入库检验", BusinessType = BusinessType.INSERT)]
|
||||
public IActionResult AddWmFgentryInspect([FromBody] WmFgentryInspectDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<WmFgentryInspect>().ToCreate(HttpContext);
|
||||
|
||||
var response = _WmFgentryInspectService.AddWmFgentryInspect(modal);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新成品入库检验
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPut]
|
||||
[ActionPermissionFilter(Permission = "wmsManagement:wmfgentryinspect:edit")]
|
||||
[Log(Title = "成品入库检验", BusinessType = BusinessType.UPDATE)]
|
||||
public IActionResult UpdateWmFgentryInspect([FromBody] WmFgentryInspectDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<WmFgentryInspect>().ToUpdate(HttpContext);
|
||||
var response = _WmFgentryInspectService.UpdateWmFgentryInspect(modal);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除成品入库检验
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpDelete("{ids}")]
|
||||
[ActionPermissionFilter(Permission = "wmsManagement:wmfgentryinspect:delete")]
|
||||
[Log(Title = "成品入库检验", BusinessType = BusinessType.DELETE)]
|
||||
public IActionResult DeleteWmFgentryInspect(string ids)
|
||||
{
|
||||
int[] idsArr = Tools.SpitIntArrary(ids);
|
||||
if (idsArr.Length <= 0) { return ToResponse(ApiResult.Error($"删除失败Id 不能为空")); }
|
||||
|
||||
var response = _WmFgentryInspectService.Delete(idsArr);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
ZR.Admin.WebApi/wwwroot/wmmaterial/202404171646022024年报销.xlsx
Normal file
BIN
ZR.Admin.WebApi/wwwroot/wmmaterial/202404171646022024年报销.xlsx
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
ZR.Admin.WebApi/wwwroot/wmmaterial/202404171657562024年报销.xlsx
Normal file
BIN
ZR.Admin.WebApi/wwwroot/wmmaterial/202404171657562024年报销.xlsx
Normal file
Binary file not shown.
Binary file not shown.
BIN
ZR.Admin.WebApi/wwwroot/wmmaterial/202404171702522024年报销.xlsx
Normal file
BIN
ZR.Admin.WebApi/wwwroot/wmmaterial/202404171702522024年报销.xlsx
Normal file
Binary file not shown.
BIN
ZR.Admin.WebApi/wwwroot/wmmaterial/202404171704052024年报销.xlsx
Normal file
BIN
ZR.Admin.WebApi/wwwroot/wmmaterial/202404171704052024年报销.xlsx
Normal file
Binary file not shown.
Reference in New Issue
Block a user