From 3f9d7eb876f6d60d92e7f8a71240097b6ac50eb6 Mon Sep 17 00:00:00 2001 From: chengsc <11752@DESKTOP-DS49RCP> Date: 星期五, 23 五月 2025 18:16:42 +0800 Subject: [PATCH] 修改测试问题 --- Wms/Wms/Controllers/PdaCrController.cs | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 45 insertions(+), 0 deletions(-) diff --git a/Wms/Wms/Controllers/PdaCrController.cs b/Wms/Wms/Controllers/PdaCrController.cs index 9dea8fb..9a2d0d9 100644 --- a/Wms/Wms/Controllers/PdaCrController.cs +++ b/Wms/Wms/Controllers/PdaCrController.cs @@ -323,5 +323,50 @@ } #endregion + #region 纭鏀惰揣 + + /// <summary> + /// 鏍规嵁鏀惰揣鎵樼洏鑾峰彇鍑哄簱鍗曚俊鎭� + /// </summary> + /// <param name="model"></param> + /// <returns></returns> + [HttpPost] + public IActionResult GetReceiptSoNoByPallet(PdaReceiptVm model) + { + try + { + + var soNo = _pdaCrSvc.GetReceiptSoNoByPallet(model.PalletNo); + + return Ok(new { data = soNo, code = 0, msg = "鎴愬姛" }); + } + catch (Exception e) + { + return Ok(new { data = "", code = 1, msg = $"寮傚父锛歿e.Message}" }); + } + } + + /// <summary> + /// 纭鏀惰揣 + /// </summary> + /// <param name="model"></param> + /// <returns></returns> + [HttpPost] + public IActionResult ConfirmReceipt(PdaReceiptVm model) + { + try + { + _pdaCrSvc.ConfirmReceipt(model.PalletNo, _userManager.UserId); + + return Ok(new { data = "", code = 0, msg = "鎴愬姛" }); + } + catch (Exception e) + { + return Ok(new { data = "", code = 1, msg = $"寮傚父锛歿e.Message}" }); + } + } + + #endregion + } } -- Gitblit v1.8.0