using Microsoft.AspNetCore.Mvc; using WmsMobileServe.ApiClient.Mes.Dto; using WmsMobileServe.ApiServe.Mobile.Dto; using WmsMobileServe.ApiServe.Mobile.Service; using WmsMobileServe.ApiServe.Mobile.Vo; using WmsMobileServe.DataBase.Base.Po; namespace WmsMobileServe.ApiServe.Mobile.Controllers; // 入库专用 API [Route("api/mobile/stockIn")] [ApiController] public class StockInController(StockInService stockInService) : ControllerBase { /// /// 接口测试 /// /// [HttpGet("test")] public string ApiTest() => "OK"; /************************************* 单机入库流程相关 ********************************************/ /// /// 空箱入库接口 /// /// /// [HttpPost("emptyVehicleIn")] public MobileApiResponse EmptyVehicleIn([FromBody] EmptyVehicleInReq request) => stockInService.EmptyVehicleIn(request); /// /// 码盘入库 ---- 单机直接解析条码生成入库任务 /// /// [HttpPost("bindingVehicleIn")] public MobileApiResponse BindingVehicleIn([FromBody] BindingVehicleInRequest request) => stockInService.BindingVehicleIn(request); /************************************* EBS入库相关 **********************************************/ /// /// 获取EBS码盘信息 ---- EBS 任务表内的 所有 信息 /// /// [HttpGet("getCuxData")] public MobileApiResponse> GetCuxData() => stockInService.GetCuxData(); /// /// EBS 入库拉取 EBS 入库任务表内的信息 /// /// /// [HttpPost("getCanUseGoods")] public MobileApiResponse GetCanUseGoods([FromBody] GetCanUseGoodsRequest request) => stockInService.GetCanUseGoods(request); /************************************* MES入库相关 *************************************************/ /// /// 传入箱号获取箱号详细信息 /// /// /// [HttpGet("getGoodsDetail")] public MobileApiResponse GetGoodsDetail([FromQuery] string? boxNo) => stockInService.GetGoodsDetail(boxNo); /// /// MES码盘入库 /// /// [HttpPost("bindingVehicleInMes")] public MobileApiResponse BindingVehicleInMes([FromBody] BindingVehicleInReq request) => stockInService.BindingVehicleInMes(request); /************************************** 其他 **********************************************/ /// /// Ebs码盘入库 /// /// [HttpPost("bindingVehicleInEbsOld")] public MobileApiResponse BindingVehicleInEbsOld([FromBody] BindingVehicleInEbsOldReq request) => stockInService.BindingVehicleInEbsOld(request); /// /// Ebs码盘入库 /// /// [HttpPost("bindingVehicleInEbs")] public MobileApiResponse BindingVehicleInEbs([FromBody] BindingVehicleInEbsReq request) => stockInService.BindingVehicleInEbs(request); }