From 2f8733caf7ae5c94483fa332e0d3af69b61a0eb0 Mon Sep 17 00:00:00 2001
From: lss <2538410689@qq.com>
Date: 星期四, 03 七月 2025 23:09:25 +0800
Subject: [PATCH] 111

---
 HH.WCS.Mobox3/HH.WCS.Mobox3.JiaTong/process/TaskProcess.cs |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/HH.WCS.Mobox3/HH.WCS.Mobox3.JiaTong/process/TaskProcess.cs b/HH.WCS.Mobox3/HH.WCS.Mobox3.JiaTong/process/TaskProcess.cs
index a7e3548..b8f0cfa 100644
--- a/HH.WCS.Mobox3/HH.WCS.Mobox3.JiaTong/process/TaskProcess.cs
+++ b/HH.WCS.Mobox3/HH.WCS.Mobox3.JiaTong/process/TaskProcess.cs
@@ -47,7 +47,7 @@
                 else
                 {
                     LogHelper.Info($"浠诲姟{mst.S_CODE} 鎵樼洏涓虹┖ ,鍙В閿佽揣浣�);
-                    LocationHelper.UnlockLoc(mst.S_START_LOC);
+                    LocationHelper.UnlockLocDeleteCntrs(mst.S_START_LOC);
                 }
             }
             else
@@ -937,13 +937,18 @@
                 {
                     string curBagNum = null;
                     string weightBag = null;
-                    if (cntritem.F_QTY > 0)
+                    string initBagNum = null;
+                    if ((int)cntritem.F_QTY > 0)
                     {
                         curBagNum = cntritem.F_QTY.ToString();
                     }
-                    if (int.Parse(cntritem.F_WEIGHT1) > 0)
+                    if (!string.IsNullOrEmpty(cntritem.F_WEIGHT1) && int.Parse(cntritem.F_WEIGHT1) > 0)
                     {
                         weightBag = cntritem.F_WEIGHT1;
+                    }
+                    if (!string.IsNullOrEmpty(cntritem.F_QTY1) && int.Parse(cntritem.F_QTY1) > 0)
+                    {
+                        initBagNum = cntritem.F_QTY1;
                     }
                     list.Add(new MesItemBackInfoModel()
                     {
@@ -961,7 +966,7 @@
                         WmsLot = cntritem.WmsLot,
                         WeightBag = weightBag,
                         CurBagNum = curBagNum,
-                        InitBagNum = cntritem.F_QTY1
+                        InitBagNum = initBagNum
                     });
 
 

--
Gitblit v1.9.1