using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Threading.Tasks;
|
using Rhea.Common;
|
using Tiger.Model;
|
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Mvc;
|
using Tiger.Model.Minsun;
|
using Tiger.IBusiness;
|
|
namespace Tiger.Api.Controllers.WMS
|
{
|
public partial class WMSController : ControllerBase
|
{
|
/// <summary>
|
/// T100调用WMS返回收货单信息
|
/// </summary>
|
/// <param name="input"></param>
|
/// <returns></returns>
|
[HttpPost]
|
[Route("api/[controller]/[action]")]
|
public IActionResult GetReceiptInfoAsync([FromBody] iReceiptParam input)
|
{
|
ApiAction response = new();
|
try
|
{
|
response = response.GetResponse(_IReceiptInfo.GetReceiptInfo(input));
|
}
|
catch (System.Exception ex)
|
{
|
response = response.GetResponse().CatchExceptionWithLog(ex);
|
}
|
return Ok(response);
|
}
|
|
/// <summary>
|
/// 到货单生成接口 清点系统 --> wms, 生成到新框架
|
/// </summary>
|
/// <param name="dtls"></param>
|
/// <returns></returns>
|
[HttpPost]
|
[Route("api/[controller]/[action]")]
|
public async Task<IActionResult> GenerateReceiptNewAsync(iReceiptInput dtls)
|
{
|
ApiAction response = new();
|
try
|
{
|
response = response.GetResponse(_IReceiptInfo.GenerateReceipt(dtls));
|
}
|
catch (System.Exception ex)
|
{
|
response = response.GetResponse().CatchExceptionWithLog(ex);
|
}
|
return Ok(response);
|
}
|
}
|
}
|