From 7c274192786484237d4260aa2590cbbb6a64a95d Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期五, 19 十二月 2025 11:42:29 +0800
Subject: [PATCH] 修改成品拣货逻辑

---
 Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs b/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
index 2e30ab5..3db3f78 100644
--- a/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
+++ b/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
@@ -532,7 +532,7 @@
                     #region 搴撳瓨鏄庣粏
 
                     // 搴撳瓨宸插瓨鍦� 鏇存柊鏁版嵁
-                    sd1.Qty += bind.Qty;
+                    sd1.Qty += factQty;
                     sd1.CompleteTime = comTime;
                     sd1.UpdateUser = userId;
                     sd1.UpdateTime = comTime;
@@ -1368,7 +1368,8 @@
                 {
                     sdId1 = sd1.Id;
                     // 搴撳瓨宸插瓨鍦� 鏇存柊鏁版嵁
-                    sd1.Qty += bind.Qty;
+                    //sd1.Qty += bind.Qty;
+                    sd1.Qty += model.SkuQty;
                     sd1.CompleteTime = comTime;
                     sd1.UpdateUser = userId;
                     sd1.UpdateTime = comTime;
@@ -1479,6 +1480,8 @@
                     bind.BitPalletMark = "0";
                     sd1.BitPalletMark = "0";
                 }
+                Db.Updateable(sd1).Where(m => m.Id == sdId1).ExecuteCommand();
+
                 //if (bind.Qty > pNum && isTextTable == 0)
                 if (bind.Qty > pNum)
                 {
@@ -1533,9 +1536,9 @@
 
                 #region 鏇存敼搴撳瓨鏄庣粏鏁伴噺
 
-                sd1.Qty = bind.Qty;
-                //鏇存敼搴撳瓨鏄庣粏鏁伴噺
-                Db.Updateable(sd1).Where(m => m.Id == sdId1).ExecuteCommand();
+                //sd1.Qty = bind.Qty;
+                ////鏇存敼搴撳瓨鏄庣粏鏁伴噺
+                //Db.Updateable(sd1).Where(m => m.Id == sdId1).ExecuteCommand();
 
                 #endregion
 

--
Gitblit v1.8.0