2024-11-30 20:47:14 +08:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
using WmsMobileServe.ApiClient.Mes.Dto;
|
|
|
|
|
|
using WmsMobileServe.ApiServe.Mobile.Dto;
|
|
|
|
|
|
using WmsMobileServe.ApiServe.Mobile.Service;
|
|
|
|
|
|
using WmsMobileServe.ApiServe.Mobile.Vo;
|
2024-12-07 15:56:37 +08:00
|
|
|
|
using WmsMobileServe.DataBase.Base.Po;
|
2024-11-30 20:47:14 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace WmsMobileServe.ApiServe.Mobile.Controllers;
|
|
|
|
|
|
|
|
|
|
|
|
// 入库专用 API
|
|
|
|
|
|
|
|
|
|
|
|
[Route("api/mobile/stockIn")]
|
|
|
|
|
|
[ApiController]
|
|
|
|
|
|
public class StockInController(StockInService stockInService) : ControllerBase
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 接口测试
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet("test")]
|
|
|
|
|
|
public string ApiTest() => "OK";
|
2025-01-07 08:02:25 +08:00
|
|
|
|
|
|
|
|
|
|
/************************************* 单机入库流程相关 ********************************************/
|
2024-11-30 20:47:14 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 空箱入库接口
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost("emptyVehicleIn")]
|
|
|
|
|
|
public MobileApiResponse EmptyVehicleIn([FromBody] EmptyVehicleInReq request) => stockInService.EmptyVehicleIn(request);
|
2025-01-07 08:02:25 +08:00
|
|
|
|
|
2024-11-30 20:47:14 +08:00
|
|
|
|
/// <summary>
|
2025-01-07 08:02:25 +08:00
|
|
|
|
/// 码盘入库 ---- 单机直接解析条码生成入库任务
|
2024-11-30 20:47:14 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
2025-01-07 08:02:25 +08:00
|
|
|
|
[HttpPost("bindingVehicleIn")]
|
|
|
|
|
|
public MobileApiResponse BindingVehicleIn([FromBody] BindingVehicleInRequest request) => stockInService.BindingVehicleIn(request);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/************************************* EBS入库相关 **********************************************/
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获取EBS码盘信息 ---- EBS 任务表内的 所有 信息
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet("getCuxData")]
|
|
|
|
|
|
public MobileApiResponse<List<CuxWmsPoLinesItf>> GetCuxData() => stockInService.GetCuxData();
|
|
|
|
|
|
|
2024-11-30 20:47:14 +08:00
|
|
|
|
/// <summary>
|
2025-01-07 08:02:25 +08:00
|
|
|
|
/// EBS 入库拉取 EBS 入库任务表内的信息
|
2024-12-29 13:06:15 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost("getCanUseGoods")]
|
2025-01-07 08:02:25 +08:00
|
|
|
|
public MobileApiResponse<CuxWmsPoLinesItfView> GetCanUseGoods([FromBody] GetCanUseGoodsRequest request) => stockInService.GetCanUseGoods(request);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/************************************* MES入库相关 *************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-12-29 13:06:15 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-01-07 08:02:25 +08:00
|
|
|
|
/// 传入箱号获取箱号详细信息
|
2024-11-30 20:47:14 +08:00
|
|
|
|
/// </summary>
|
2025-01-07 08:02:25 +08:00
|
|
|
|
/// <param name="boxNo"></param>
|
2024-11-30 20:47:14 +08:00
|
|
|
|
/// <returns></returns>
|
2025-01-07 08:02:25 +08:00
|
|
|
|
[HttpGet("getGoodsDetail")]
|
|
|
|
|
|
public MobileApiResponse<GetGoodsDetailResp> GetGoodsDetail([FromQuery] string? boxNo) => stockInService.GetGoodsDetail(boxNo);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-12-29 13:06:15 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// MES码盘入库
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost("bindingVehicleInMes")]
|
|
|
|
|
|
public MobileApiResponse BindingVehicleInMes([FromBody] BindingVehicleInReq request) => stockInService.BindingVehicleInMes(request);
|
2024-11-30 20:47:14 +08:00
|
|
|
|
|
2025-01-07 08:02:25 +08:00
|
|
|
|
|
2024-12-07 15:56:37 +08:00
|
|
|
|
|
|
|
|
|
|
|
2024-12-29 13:06:15 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Ebs码盘入库
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost("bindingVehicleInEbsOld")]
|
|
|
|
|
|
public MobileApiResponse BindingVehicleInEbsOld([FromBody] BindingVehicleInEbsOldReq request) => stockInService.BindingVehicleInEbsOld(request);
|
|
|
|
|
|
|
2024-12-07 15:56:37 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Ebs码盘入库
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost("bindingVehicleInEbs")]
|
|
|
|
|
|
public MobileApiResponse BindingVehicleInEbs([FromBody] BindingVehicleInEbsReq request) => stockInService.BindingVehicleInEbs(request);
|
|
|
|
|
|
|
2024-11-30 20:47:14 +08:00
|
|
|
|
}
|