using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using WIDESEA_Core; using WIDESEA_Core.BaseController; using WIDESEA_ISquareCabinServices; using WIDESEA_Model.Models; using static WIDESEA_DTO.SquareCabin.OrderDto; namespace WIDESEA_WMSServer.Controllers { [Route("api/DeliveryOrder")] [ApiController] public class DeliveryOrderController : ApiBaseController { public DeliveryOrderController(IDeliveryOrderServices service) : base(service) { } /// /// 完成出库单 /// /// /// [HttpPost, HttpGet, Route("FinishOutOrder"),AllowAnonymous] public WebResponseContent FinishOutOrder(int key) { return Service.FinishOutOrder(key); } /// /// 创建盘点任务 /// /// /// [HttpPost, HttpGet, Route("CreateCheckOrder")] public WebResponseContent CreateCheckOrder([FromBody] int[] keys) { return Service.CreateCheckOrder(keys); } /// 查询盘点单信息 /// /// [HttpPost, HttpGet, Route("GetCheckOrders")] public WebResponseContent GetCheckOrders([FromBody] SaveModel saveModel) { return Service.GetCheckOrders(saveModel); } /// 查询出库单信息 /// /// [HttpPost, HttpGet, Route("GetDeliveryOrders")] public WebResponseContent GetDeliveryOrders([FromBody] SaveModel saveModel) { return Service.GetDeliveryOrders(saveModel); } /// 查询出库/盘点单详情 /// /// [HttpPost, HttpGet, Route("GetDeliveryOrderDetail")] public WebResponseContent GetDeliveryOrderDetail(int pageNo, string orderNo, bool isPick) { return Service.GetDeliveryOrderDetail(pageNo, orderNo, isPick); } /// /// 完成盘点任务 /// /// /// [HttpPost, HttpGet, Route("CheckFinish")] public WebResponseContent CheckFinish([FromBody] SaveModel saveModel) { return Service.CheckFinish(saveModel); } /// /// 完成出库任务 /// /// /// [HttpPost, HttpGet, Route("OutFinish")] public WebResponseContent OutFinish([FromBody] SaveModel saveModel) { return Service.OutFinish(saveModel); } /// /// 查找未完成盘点/出库任务 /// /// /// [HttpPost, HttpGet, Route("GetCheckOutTasks")] public WebResponseContent GetCheckOutTasks([FromBody] SaveModel saveModel) { return Service.GetCheckOutTasks(saveModel); } /// /// 盘点出库接口 /// /// /// [HttpPost, Route("InventoryGood"), AllowAnonymous] public WebResponseContent InventoryGood(string batchNo, string goodsNo) { return Service.InventoryGood(batchNo, goodsNo); } /// /// 出库测试 /// /// /// [HttpPost, Route("CreateOutboundOrder"), AllowAnonymous] public WebResponseContent CreateOutboundOrder([FromBody]UpstramOutOrderInfo outorder) { return Service.CreateOutboundOrder(outorder); } } }