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; /// /// 仓储费月结账单 /// public class WmsStorageBillController : ApiController { private readonly IWmsStorageBillService _invokeService; /// /// 构造函数 /// /// public WmsStorageBillController(IWmsStorageBillService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetWmsStorageBillList")] public DataResult> GetWmsStorageBillList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditWmsStorageBill")] public DataResult EditWmsStorageBill([FromBody] WmsStorageBillInput model) { var res = _invokeService.EditWmsStorageBill(model); return res; } /// /// 获取信息 /// /// /// [HttpGet] [Route("GetWmsStorageBillInfo")] public DataResult GetWmsStorageBillInfo([FromQuery] string id) { var res = _invokeService.GetWmsStorageBillInfo(id); return res; } /// /// /// /// /// [HttpGet] [Route("GetWmsStorageBillDetailList")] public DataResult GetWmsStorageBillDetailList([FromQuery] string id) { var res = _invokeService.GetWmsStorageBillDetailList(id); return res; } /// /// 获取引入数据 /// /// /// [HttpPost] [Route("GetWmsPayInfoList")] public DataResult> GetWmsPayInfoList([FromBody] PageRequest request) { var res = _invokeService.GetWmsPayInfoList(request); return res; } /// /// 引入账单 /// /// /// [HttpPost] [Route("ImportWmsPayInfo")] public DataResult ImportWmsPayInfo([FromBody]WmsPayInfoImportInput model) { var res = _invokeService.ImportWmsPayInfo(model); return res; } /// /// 删除账单 /// /// /// [HttpGet] [Route("DelWmsStorageBill")] public DataResult DelWmsStorageBill([FromQuery] string id) { var res = _invokeService.DelWmsStorageBill(id); return res; } /// /// 获取费用日历 /// /// /// [HttpGet] [Route("GetWmsFeeCalendarList")] public DataResult GetWmsFeeCalendarList([FromQuery] string id) { var res = _invokeService.GetWmsFeeCalendarList(id); return res; } /// /// 计算仓储费用 /// /// /// [HttpGet] [Route("MakeWmsFee")] public DataResult MakeWmsFee([FromQuery] string id) { var res = _invokeService.MakeWmsFee(id); return res; } /// /// 审核 /// /// /// [HttpGet] [Route("AuditWmsStorageBill")] public DataResult AuditWmsStorageBill([FromQuery] string id) { var res = _invokeService.AuditWmsStorageBill(id); return res; } /// /// 取消审核 /// /// /// [HttpGet] [Route("CancelAuditWmsStorageBill")] public DataResult CancelAuditWmsStorageBill([FromQuery] string id) { var res = _invokeService.CancelAuditWmsStorageBill(id); return res; } }