|
|
|
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;
|
|
|
|
/// <summary>
|
|
|
|
/// 预约清关
|
|
|
|
/// </summary>
|
|
|
|
public class WmsClearanceController : ApiController
|
|
|
|
{
|
|
|
|
private readonly IWmsClearanceService _invokeService;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 构造函数
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="invokeService"></param>
|
|
|
|
public WmsClearanceController(IWmsClearanceService invokeService)
|
|
|
|
{
|
|
|
|
_invokeService = invokeService;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 预约清关列表
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="request"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost]
|
|
|
|
[Route("GetWmsClearanceList")]
|
|
|
|
public DataResult<List<WmsClearanceListPageModel>> GetWmsClearanceList([FromBody] PageRequest request)
|
|
|
|
{
|
|
|
|
var res = _invokeService.GetListByPage(request);
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
|
|
/// 获取预约清关信息
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="id"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpGet]
|
|
|
|
[Route("GetWmsClearanceInfo")]
|
|
|
|
public DataResult<WmsClearanceInfoViewModel> GetWmsClearanceInfo([FromQuery]string id)
|
|
|
|
{
|
|
|
|
var res = _invokeService.GetWmsClearanceInfo(id);
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 审批
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="model"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost]
|
|
|
|
[Route("AuditWmsClearance")]
|
|
|
|
public DataResult AuditWmsClearance([FromBody] CommonAuditInput model)
|
|
|
|
{
|
|
|
|
var res = _invokeService.AuditWmsClearance(model);
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
|
|
///
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="id"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpGet]
|
|
|
|
[Route("GetWmsClearanceGoodsList")]
|
|
|
|
public DataResult GetWmsClearanceGoodsList([FromQuery]string id)
|
|
|
|
{
|
|
|
|
var res = _invokeService.GetWmsClearanceGoodsList(id);
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
|
|
/// 维护清关车辆信息
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="model"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost]
|
|
|
|
[Route("EditWmsClearanceTrunckInfo")]
|
|
|
|
public DataResult EditWmsClearanceTrunckInfo([FromBody] WmsClearanceInput model)
|
|
|
|
{
|
|
|
|
var res = _invokeService.EditWmsClearanceTrunckInfo(model);
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
}
|