You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.3 KiB
C#

using DS.Module.Core;
using DS.WMS.Core.App.Dtos;
using DS.WMS.Core.App.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.AppApi.Controllers;
public class AppClearanceController : ApiController
{
private readonly IAppClearanceService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public AppClearanceController(IAppClearanceService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 获取清关计划
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
[Route("GetClearancePlanList")]
public DataResult GetClearancePlanList([FromBody] ClearancePlanQueryModel model)
{
var res = _invokeService.GetClearancePlanList(model);
return res;
}
/// <summary>
/// 获取清关出库计划相关信息
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
[Route("GetClearanceSummaryInfo")]
public DataResult GetClearanceSummaryInfo([FromBody] ClearancePlanQueryModel model)
{
var res = _invokeService.GetClearanceSummaryInfo(model);
return res;
}
/// <summary>
/// 获取清关出库计划明细信息
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
[Route("GetClearanceGoodsInfo")]
public DataResult GetClearanceGoodsInfo([FromBody] StockGoodsQueryModel model)
{
var res = _invokeService.GetClearanceGoodsInfo(model);
return res;
}
/// <summary>
/// 清关出库确认
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
[Route("ClearanceOutBatch")]
public DataResult ClearanceOutBatch([FromBody] ClearanceOutPlanGoodsBatchInput model)
{
var res = _invokeService.ClearanceOutBatch(model);
return res;
}
/// <summary>
/// 清关移库确认
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
[Route("ClearanceMoveBatch")]
public DataResult ClearanceMoveBatch([FromBody] ClearanceMovePlanGoodsBatchInput model)
{
var res = _invokeService.ClearanceMoveBatch(model);
return res;
}
}