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.
197 lines
5.1 KiB
C#
197 lines
5.1 KiB
C#
using DS.Module.Core;
|
|
using DS.WMS.Core.System.Dtos;
|
|
using DS.WMS.Core.System.Entity;
|
|
using DS.WMS.Core.System.Interface;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace DS.WMS.WebApi.Controllers;
|
|
|
|
/// <summary>
|
|
/// 预约管理模块
|
|
/// </summary>
|
|
public class YardBookController : ApiController
|
|
{
|
|
private readonly IOP_YARD_BOOKService _invokeService;
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="invokeService"></param>
|
|
public YardBookController(IOP_YARD_BOOKService invokeService)
|
|
{
|
|
_invokeService = invokeService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("GetYardBookList")]
|
|
public DataResult<List<VW_OP_YARD_BOOK>> GetListByPage([FromBody] PageRequest request)
|
|
{
|
|
var res = _invokeService.GetListByPage(request);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("EditBook")]
|
|
public DataResult EditBook([FromBody]OP_YARD_BOOKInput model)
|
|
{
|
|
var res = _invokeService.EditBOOK(model);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 发运预约便捷
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("DespatchEdit")]
|
|
public DataResult DespatchEdit([FromBody]DespatchInput model)
|
|
{
|
|
var res = _invokeService.DespatchEdit(model);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 发运预约提交
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("SubmitDespatch")]
|
|
public DataResult SubmitDespatch([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.SubmitDespatch(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 发运预约材料提交
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("SubmitDespatchFile")]
|
|
public DataResult SubmitDespatchFile([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.SubmitDespatchFile(id);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 提箱预约编辑
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("TakeBoxEdit")]
|
|
public DataResult TakeBoxEdit([FromBody]TakeBoxInput model)
|
|
{
|
|
var res = _invokeService.TakeBoxEdit(model);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 提箱预约提交
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("SubmitTakeBox")]
|
|
public DataResult SubmitTakeBox([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.SubmitTakeBox(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 提箱预约撤销
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("CancelTakeBox")]
|
|
public DataResult CancelTakeBox([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.CancelTakeBox(id);
|
|
return res;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 提交
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("SubmitBook")]
|
|
public DataResult SubmitBook([FromBody]OP_YARD_BOOKInput model)
|
|
{
|
|
var res = _invokeService.SubmitBook(model);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 上传发运装箱资料
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("UploadDespatchFiles")]
|
|
public DataResult UploadDespatchFiles([FromBody]DespatchFileInput model)
|
|
{
|
|
var res = _invokeService.UploadDespatchFiles(model);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 获取文件列表
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetFileList")]
|
|
public DataResult<List<fileinfo>> GetFileList([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.GetFileList(id);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取预约信息
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetBookInfo")]
|
|
public DataResult<BookViewModel> GetBookInfo([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.GetBookInfo(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 获取发运预约及装箱资料信息
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetDespatchInfo")]
|
|
public DataResult<DespatchViewModel> GetDespatchInfo([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.GetDespatchInfo(id);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 打印磅单
|
|
/// </summary>
|
|
/// <param name="ids"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetPrintInfo")]
|
|
public async Task<DataResult> GetPrintInfo([FromQuery]string ids)
|
|
{
|
|
var res = await _invokeService.GetPrintInfo(ids);
|
|
return res;
|
|
}
|
|
} |