From b1f0187e6bdcc02aceb4989e2d6587c7f3a62440 Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期一, 14 四月 2025 16:58:06 +0800
Subject: [PATCH] 叠托机申请空托跺绑定

---
 Admin.NET/WCS.Application/Util/HttpService.cs |   27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletions(-)

diff --git a/Admin.NET/WCS.Application/Util/HttpService.cs b/Admin.NET/WCS.Application/Util/HttpService.cs
index e23ca4e..d2e284f 100644
--- a/Admin.NET/WCS.Application/Util/HttpService.cs
+++ b/Admin.NET/WCS.Application/Util/HttpService.cs
@@ -50,7 +50,8 @@
                     PalletNo = palletNo,
                     HouseNo = "W01",
                     TaskModel = taskModel,
-                    PalletHeight = palletHeight
+                    PalletHeight = palletHeight,
+                    StartLocat = startLocat
                 };
 
                 string url = Urls.WMSAddress + ":" + Urls.WMSPort;
@@ -438,4 +439,28 @@
         }
         return returnStr;
     }
+
+    /// <summary>
+    /// 鍙犳墭鏈虹敵璇风┖鎵樿泛缁戝畾
+    /// </summary>
+    /// <param name="palletNo"></param>
+    /// <returns></returns>
+    public string BindNullPalletWcs(int qty,string palletNo)
+    {
+        string returnStr = "";
+        var model = new
+        {
+            PalletNo = palletNo,
+            Qty = qty,
+        };
+        string url = Urls.WMSAddress + ":" + Urls.WMSPort;
+        var result = (url + "/api/DownAPi/BindNullPalletWcs").SetBody(model, "application/json", Encoding.UTF8).PostAsAsync<ResponseSkuInfo>().Result;
+        Log.Information("璋冪敤WMS鎺ュ彛鍙犳墭鏈虹粦瀹氱┖鎵樿泛" + result.ToJson());
+
+        if (result.Success != 0)
+        {
+            returnStr = "-1:" + result.Message;
+        }
+        return returnStr;
+    }
 }

--
Gitblit v1.8.0