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.IBusiness;
|
|
namespace Tiger.Api.Controllers.WMS
|
{
|
/// <summary>
|
/// 仓库业务流程
|
/// </summary>
|
public partial class WMSController : ControllerBase
|
{
|
/// <summary>
|
/// 获取相应的二维码
|
/// </summary>
|
/// <param name="action"></param>
|
/// <returns></returns>
|
[HttpGet]
|
[Route("api/[controller]/Item/GetQRCode")]
|
public IActionResult Item_GetQRCode(string sn)
|
{
|
ApiAction response = new();
|
try
|
{
|
response = response.GetResponse(iBiz.WMS.WmsItem.GetQRCode(sn));
|
}
|
catch (System.Exception ex)
|
{
|
response = response.GetResponse().CatchExceptionWithLog(ex);
|
}
|
return Ok(response);
|
}
|
|
[HttpPost]
|
[Route("api/[controller]/Item/QueryLocation")]
|
public async Task<IActionResult> Item_QueryLocation([FromBody] ApiAction<BasePageInput> action)
|
{
|
ApiAction response = new();
|
try
|
{
|
response = response.GetResponse(iBiz.WMS.WmsItem.QueryLocation(action.Data));
|
}
|
catch (System.Exception ex)
|
{
|
response = response.GetResponse().CatchExceptionWithLog(ex);
|
}
|
return Ok(response);
|
}
|
}
|
}
|