From 157abc191c34e57c1b958ae74fc3de6518ca8a30 Mon Sep 17 00:00:00 2001
From: zhaowc <526854230@qq.com>
Date: 星期五, 28 二月 2025 11:06:36 +0800
Subject: [PATCH] 修改客户需求

---
 Wms/Wms/Controllers/PdaAsnController.cs |   31 +++++++++++++++++++++++++++++--
 1 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/Wms/Wms/Controllers/PdaAsnController.cs b/Wms/Wms/Controllers/PdaAsnController.cs
index 977d562..8e48743 100644
--- a/Wms/Wms/Controllers/PdaAsnController.cs
+++ b/Wms/Wms/Controllers/PdaAsnController.cs
@@ -128,6 +128,33 @@
         }
 
         /// <summary>
+        /// 鍒ゆ柇鎵樼洏鏄惁鍙敤
+        /// </summary>
+        /// <param name="model">PalletNo锛氭墭鐩樻潯鐮�</param>
+        /// <returns></returns>
+        [HttpPost]
+        public IActionResult IsEnableLocatNo(PalletBindVm model)
+        {
+            try
+            {
+                var strMsg = _PdaAsnSvc.IsEnableLocatNo(model.LocatNo);
+
+                if (strMsg == "")
+                {
+                    return Ok(new { code = 0, msg = "鍦扮爜鍙敤!" });
+                }
+                else
+                {
+                    return Ok(new { code = 1, msg = strMsg });
+                }
+            }
+            catch (Exception e)
+            {
+                return Ok(new { code = 1, msg = e.Message });
+            }
+        }
+
+        /// <summary>
         /// 鑾峰彇鍗曟嵁鏄庣粏鍒楄〃
         /// </summary>
         /// <param name="model">AsnNo:鍗曟嵁鍙�</param>
@@ -528,7 +555,7 @@
         {
             try
             {
-                var models = _PdaAsnSvc.GetBindBoxInfos(model, _config.BoxHost + _config.FuMaGetBoxUrl);
+                var models = _PdaAsnSvc.GetBindBoxInfos(model, _config.BoxHost + _config.FuMaGetBoxUrl, _config.BoxHost + _config.FuMaGetTokenUrl);
 
                 return Ok(new { code = 0, msg = "鏍囩绠辩爜淇℃伅", data = models });
             }
@@ -548,7 +575,7 @@
         {
             try
             {
-                var models = _PdaAsnSvc.GetBindBoxInfo2s(model, _config.BoxHost + _config.FuMaGetBoxUrl);
+                var models = _PdaAsnSvc.GetBindBoxInfo2s(model, _config.BoxHost + _config.FuMaGetBoxUrl, _config.BoxHost + _config.FuMaGetTokenUrl);
 
                 return Ok(new { code = 0, msg = "鏍囩绠辩爜淇℃伅", data = models });
             }

--
Gitblit v1.8.0