using DS.Module.Core; using DS.WMS.Core.BaseInfo.Dtos; using DS.WMS.Core.WmsModule.Dtos; using DS.WMS.Core.WmsModule.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.WebApi.Controllers; /// /// 预约入库 /// public class WmsInPlanController : ApiController { private readonly IWmsInPlanService _invokeService; /// /// 构造函数 /// /// public WmsInPlanController(IWmsInPlanService invokeService) { _invokeService = invokeService; } /// /// 预约入库列表 /// /// /// [HttpPost] [Route("GetWmsInPlanList")] public DataResult> GetWmsInPlanList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 获取预约入库信息 /// /// /// [HttpGet] [Route("GetWmsInPlanInfo")] public DataResult GetWmsInPlanInfo([FromQuery]string id) { var res = _invokeService.GetWmsInPlanInfo(id); return res; } /// /// 维护预约入库信息 /// /// /// [HttpPost] [Route("EditWmsInPlanInfo")] public DataResult EditWmsInPlanInfo([FromBody] WmsInPlanInput model) { var res = _invokeService.EditWmsInPlanInfo(model); return res; } /// /// 审批 /// /// /// [HttpPost] [Route("AuditWmsInPlan")] public DataResult AuditWmsInPlan([FromBody] CommonAuditInput model) { var res = _invokeService.AuditWmsInPlan(model); return res; } /// /// /// /// /// [HttpGet] [Route("GetWmsInPlanGoodsList")] public DataResult GetWmsInPlanGoodsList([FromQuery]string id) { var res = _invokeService.GetWmsInPlanGoodsList(id); return res; } /// /// 获取费率信息 /// /// /// [HttpGet] [Route("GetWmsInPlanFeeRateList")] public DataResult GetWmsInPlanFeeRateList([FromQuery]string id) { var res = _invokeService.GetWmsInPlanFeeRateList(id); return res; } /// /// 加载协议客户费率 /// /// /// [HttpGet] [Route("LoadWmsFeeRate")] public DataResult LoadWmsFeeRate([FromQuery]string id) { var res = _invokeService.LoadWmsFeeRate(id); return res; } /// /// 保存计划费率 /// /// /// [HttpPost] [Route("SaveWmsInPlanFeeRate")] public DataResult SaveWmsInPlanFeeRate([FromBody] WmsInPlanFeeRateInput model) { var res = _invokeService.SaveWmsInPlanFeeRate(model); return res; } }