From 3c5a57e55861a305b53089c91ef12c9edfbdafd0 Mon Sep 17 00:00:00 2001
From: admin <qiutairan163@163.com>
Date: 星期二, 18 十一月 2025 11:46:40 +0800
Subject: [PATCH] 托盘中含有的执行中的单据GetRunSoNoticeList增加SONo降序排序
---
Wms/Wms/Controllers/PdaCrController.cs | 20 ++++++++++++++------
1 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/Wms/Wms/Controllers/PdaCrController.cs b/Wms/Wms/Controllers/PdaCrController.cs
index 130abd6..0bdaacb 100644
--- a/Wms/Wms/Controllers/PdaCrController.cs
+++ b/Wms/Wms/Controllers/PdaCrController.cs
@@ -124,9 +124,17 @@
/// <returns></returns>
[HttpGet]
[ServiceFilter(typeof(ApiResponseActionFilter))]
- public async Task<List<StockDetailWithQtyDto>> GetStockQueryList(string locatNo, string palletNo, string boxno)
+ public IActionResult GetStockQueryList(string locatNo, string palletNo, string boxno)
{
- return await _pdaCrSvc.GetStockQueryList(locatNo, palletNo, boxno);
+ try
+ {
+ var list = _pdaCrSvc.GetStockQueryList(locatNo, palletNo, boxno);
+ return Ok(new { data = list, code = 0, msg = "鎴愬姛" });
+ }
+ catch (Exception e)
+ {
+ return Ok(new { data = "", code = 1, msg = $"寮傚父锛歿e.Message}" });
+ }
}
#endregion
@@ -346,7 +354,7 @@
}
var uId = int.Parse(userId);
- var list = _pdaCrSvc.AddLableByDevanning(model.BoxNo, model.DevanQty,uId);
+ var list = _pdaCrSvc.AddLableByDevanning(model.BoxNo, model.DevanQty, uId);
return Ok(new { data = list, code = 0, msg = "鎴愬姛" });
}
@@ -414,7 +422,7 @@
public IActionResult GetBoxInfo(PdaUpPalletVm model)
{
try
- {
+ {
_pdaCrSvc.GetBoxInfo(model.BoxNo, model.PalletNo);
return Ok(new { data = "", code = 0, msg = "鎴愬姛" });
@@ -435,7 +443,7 @@
{
try
{
- _pdaCrSvc.UpPalletByBox(model.BoxNo, model.PalletNo,model.PalletNoNew,_userManager.UserId);
+ _pdaCrSvc.UpPalletByBox(model.BoxNo, model.PalletNo, model.PalletNoNew, _userManager.UserId);
return Ok(new { data = "", code = 0, msg = "鎴愬姛" });
}
@@ -475,7 +483,7 @@
{
try
{
- _pdaCrSvc.UpPalletByQty(model.PalletNo, model.PalletNoNew, model.DetailId,model.Qty, _userManager.UserId);
+ _pdaCrSvc.UpPalletByQty(model.PalletNo, model.PalletNoNew, model.DetailId, model.Qty, _userManager.UserId);
return Ok(new { data = "", code = 0, msg = "鎴愬姛" });
}
--
Gitblit v1.8.0