You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
159 lines
4.2 KiB
C#
159 lines
4.2 KiB
C#
using DS.Module.Core;
|
|
using DS.WMS.Core.FeeModule.Dtos;
|
|
using DS.WMS.Core.FeeModule.Interface;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace DS.WMS.WebApi.Controllers;
|
|
|
|
/// <summary>
|
|
/// 仓储费月结账单
|
|
/// </summary>
|
|
public class WmsStorageBillController : ApiController
|
|
{
|
|
private readonly IWmsStorageBillService _invokeService;
|
|
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="invokeService"></param>
|
|
public WmsStorageBillController(IWmsStorageBillService invokeService)
|
|
{
|
|
_invokeService = invokeService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("GetWmsStorageBillList")]
|
|
public DataResult<List<WmsStorageBillListPageModel>> GetWmsStorageBillList([FromBody] PageRequest request)
|
|
{
|
|
var res = _invokeService.GetListByPage(request);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 编辑
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("EditWmsStorageBill")]
|
|
public DataResult EditWmsStorageBill([FromBody] WmsStorageBillInput model)
|
|
{
|
|
var res = _invokeService.EditWmsStorageBill(model);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 获取信息
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetWmsStorageBillInfo")]
|
|
public DataResult<WmsStorageBillInfoViewModel> GetWmsStorageBillInfo([FromQuery] string id)
|
|
{
|
|
var res = _invokeService.GetWmsStorageBillInfo(id);
|
|
return res;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetWmsStorageBillDetailList")]
|
|
public DataResult GetWmsStorageBillDetailList([FromQuery] string id)
|
|
{
|
|
var res = _invokeService.GetWmsStorageBillDetailList(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 获取引入数据
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("GetWmsPayInfoList")]
|
|
public DataResult<List<WmsPayInfoListPageModel>> GetWmsPayInfoList([FromBody] PageRequest request)
|
|
{
|
|
var res = _invokeService.GetWmsPayInfoList(request);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 引入账单
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("ImportWmsPayInfo")]
|
|
public DataResult ImportWmsPayInfo([FromBody]WmsPayInfoImportInput model)
|
|
{
|
|
var res = _invokeService.ImportWmsPayInfo(model);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 删除账单
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("DelWmsStorageBill")]
|
|
public DataResult DelWmsStorageBill([FromQuery] string id)
|
|
{
|
|
var res = _invokeService.DelWmsStorageBill(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 获取费用日历
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetWmsFeeCalendarList")]
|
|
public DataResult GetWmsFeeCalendarList([FromQuery] string id)
|
|
{
|
|
var res = _invokeService.GetWmsFeeCalendarList(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 计算仓储费用
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("MakeWmsFee")]
|
|
public DataResult MakeWmsFee([FromQuery] string id)
|
|
{
|
|
var res = _invokeService.MakeWmsFee(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 审核
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("AuditWmsStorageBill")]
|
|
public DataResult AuditWmsStorageBill([FromQuery] string id)
|
|
{
|
|
var res = _invokeService.AuditWmsStorageBill(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 取消审核
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("CancelAuditWmsStorageBill")]
|
|
public DataResult CancelAuditWmsStorageBill([FromQuery] string id)
|
|
{
|
|
var res = _invokeService.CancelAuditWmsStorageBill(id);
|
|
return res;
|
|
}
|
|
} |