feat(库存报表): 新增出入库报表功能及变动箱数字段
添加成品库出入库报表功能,包括入库报表和出库报表的查询接口 在WmGoodsRecord模型中新增ChangePackage字段记录变动箱数 修复Job_Blank.cs中多余的return null语句
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using ZR.Admin.WebApi.Extensions;
|
||||
using ZR.Model.MES.mm;
|
||||
using ZR.Model.MES.mm.Dto;
|
||||
using ZR.Service.mes.mm.IService;
|
||||
|
||||
namespace ZR.Admin.WebApi.Controllers.mes.mm
|
||||
{
|
||||
/// <summary>
|
||||
/// 生产投料
|
||||
/// </summary>
|
||||
[Route("mes/mm/mmInventoryReport")]
|
||||
|
||||
public class MmInventoryReportController : BaseController
|
||||
{
|
||||
|
||||
readonly IMmInventoryReportService mmInventoryReportService;
|
||||
|
||||
public MmInventoryReportController(IMmInventoryReportService mmInventoryReportService)
|
||||
{
|
||||
this.mmInventoryReportService = mmInventoryReportService;
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 成品库,入库清单
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost("GetInventoryReportByPage")]
|
||||
public IActionResult GetInventoryReportByPage([FromBody] WmGoodsRecordReportQueryDto query)
|
||||
{
|
||||
try
|
||||
{
|
||||
var response = mmInventoryReportService.GetInventoryReportByPage(query);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using ZR.Admin.WebApi.Extensions;
|
||||
using ZR.Model.MES.mm;
|
||||
using ZR.Model.MES.mm.Dto;
|
||||
using ZR.Service.mes.mm.IService;
|
||||
|
||||
namespace ZR.Admin.WebApi.Controllers.mes.mm
|
||||
{
|
||||
/// <summary>
|
||||
/// 生产投料
|
||||
/// </summary>
|
||||
[Route("mes/mm/mmOutboundReport")]
|
||||
|
||||
public class MmOutboundReportController : BaseController
|
||||
{
|
||||
|
||||
readonly IMmOutboundReportService mmOutboundReportService;
|
||||
|
||||
public MmOutboundReportController(IMmOutboundReportService mmOutboundReportService)
|
||||
{
|
||||
this.mmOutboundReportService = mmOutboundReportService;
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 成品库,入库清单
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost("GetOutboundReportByPage")]
|
||||
public IActionResult GetOutboundReportByPage([FromBody] WmGoodsRecordReportQueryDto query)
|
||||
{
|
||||
try
|
||||
{
|
||||
var response = mmOutboundReportService.GetOutboundReportByPage(query);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user