| | |
| | | using Model.ModelVm.PdaVm; |
| | | using WMS.IBLL.IPdaServer; |
| | | using WMS.Entity.DataEntity; |
| | | using WMS.Entity.SysEntity; |
| | | |
| | | namespace Wms.Controllers |
| | | { |
| | |
| | | |
| | | #endregion |
| | | |
| | | #region AGV转运 |
| | | /// <summary> |
| | | /// 获取托盘所在储位地址 |
| | | /// </summary> |
| | | /// <param name="palletNo"></param> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | public IActionResult GetPalletLocatNo(string palletNo) |
| | | { |
| | | try |
| | | { |
| | | string result = _pdaCrSvc.GetPalletLocatNo(palletNo); |
| | | |
| | | return Ok(new { data = result, code = 0, msg = "成功" }); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return Ok(new { data = "", code = 1, msg = $"异常:{e.Message}" }); |
| | | } |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 获取托盘所在楼层所有区域 |
| | | /// </summary> |
| | | /// <param name="palletNo"></param> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | public IActionResult GetStorageArea(string palletNo) |
| | | { |
| | | try |
| | | { |
| | | List<SysStorageArea> result = _pdaCrSvc.GetStorageArea(palletNo); |
| | | |
| | | return Ok(new { data = result, code = 0, msg = "成功" }); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return Ok(new { data = "", code = 1, msg = $"异常:{e.Message}" }); |
| | | } |
| | | |
| | | } |
| | | #endregion |
| | | |
| | | } |
| | | } |