From bc23bea79e99d8c280ea64766be52743ce044c28 Mon Sep 17 00:00:00 2001
From: pan <antony1029@163.com>
Date: 星期四, 27 十一月 2025 11:20:13 +0800
Subject: [PATCH] 提交

---
 项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_OutboundService/OutStockLockInfoService.cs |    2 +-
 项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundPickingService.cs  |   16 ++++++++--------
 项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService_Inbound.cs     |    2 +-
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_OutboundService/OutStockLockInfoService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_OutboundService/OutStockLockInfoService.cs"
index 0fcbe99..d4a584d 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_OutboundService/OutStockLockInfoService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_OutboundService/OutStockLockInfoService.cs"
@@ -107,7 +107,7 @@
                 IsSplitted = 0,
                 MaterielCode = outboundOrderDetail.MaterielCode,
                 BatchNo = firstAvailableDetail.BatchNo,
-                Unit = firstAvailableDetail.Unit,
+                Unit = firstAvailableDetail.BarcodeUnit,
                 FactoryArea = firstAvailableDetail.FactoryArea,
                 lineNo = outboundOrderDetail.lineNo,
             };
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundPickingService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundPickingService.cs"
index d9a755c..f289724 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundPickingService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundPickingService.cs"
@@ -229,14 +229,14 @@
                 }
                 _unitOfWorkManage.BeginTran();
 
-                // 1. 鍓嶇疆楠岃瘉
+                // 鍓嶇疆楠岃瘉
                 var validationResult = await ValidateCancelRequest(orderNo, palletCode, barcode);
                 if (!validationResult.IsValid)
                     return WebResponseContent.Instance.Error(validationResult.ErrorMessage);
 
                 var (pickingRecord, lockInfo, orderDetail) = validationResult.Data;
 
-                // 2. 鎵ц鍙栨秷閫昏緫
+                //鎵ц鍙栨秷閫昏緫
                 await ExecuteCancelLogic(lockInfo, pickingRecord, orderDetail, orderNo);
 
                 _unitOfWorkManage.CommitTran();
@@ -746,7 +746,7 @@
         {
             try
             {
-                // 1. 楠岃瘉璁㈠崟鏄庣粏鏁版嵁
+                //  楠岃瘉璁㈠崟鏄庣粏鏁版嵁
                 var currentOrderDetail = await _outboundOrderDetailService.Db.Queryable<Dt_OutboundOrderDetail>()
                     .FirstAsync(x => x.Id == context.OrderDetail.Id);
 
@@ -756,14 +756,14 @@
                 if (currentOrderDetail.PickedQty < context.PickingRecord.PickQuantity)
                     return ValidationResult<bool>.Error($"璁㈠崟鏄庣粏宸叉嫞閫夋暟閲�({currentOrderDetail.PickedQty})灏忎簬鍙栨秷鏁伴噺({context.PickingRecord.PickQuantity})");
 
-                // 2. 楠岃瘉閿佸畾淇℃伅鏁版嵁
+                //  楠岃瘉閿佸畾淇℃伅鏁版嵁
                 var currentLockInfo = await _outStockLockInfoService.Db.Queryable<Dt_OutStockLockInfo>()
                     .FirstAsync(x => x.Id == context.LockInfo.Id);
 
                 if (currentLockInfo.PickedQty < context.PickingRecord.PickQuantity)
                     return ValidationResult<bool>.Error($"閿佸畾淇℃伅宸叉嫞閫夋暟閲�({currentLockInfo.PickedQty})灏忎簬鍙栨秷鏁伴噺({context.PickingRecord.PickQuantity})");
 
-                // 3. 楠岃瘉搴撳瓨鏁版嵁
+                // 楠岃瘉搴撳瓨鏁版嵁
                 var currentStockDetail = await _stockInfoDetailService.Db.Queryable<Dt_StockInfoDetail>()
                     .FirstAsync(x => x.Barcode == context.PickingRecord.Barcode && x.StockId == context.PickingRecord.StockId);
 
@@ -774,7 +774,7 @@
                     currentStockDetail.Status == StockStatusEmun.鍏ュ簱瀹屾垚.ObjToInt())
                     return ValidationResult<bool>.Error($"鏉$爜{context.PickingRecord.Barcode}宸茬粡鍥炲簱锛屾棤娉曞彇娑堝垎鎷�");
 
-                // 4. 楠岃瘉鐘舵�佹祦杞殑鍚堟硶鎬�
+                // 楠岃瘉鐘舵�佹祦杞殑鍚堟硶鎬�
                 if (!await CanCancelPicking(currentLockInfo, currentStockDetail))
                     return ValidationResult<bool>.Error($"褰撳墠鐘舵�佷笉鍏佽鍙栨秷鍒嗘嫞");
 
@@ -920,7 +920,7 @@
         {
             decimal cancelQty = pickingRecord.PickQuantity;
 
-            // 1. 鏁版嵁涓�鑷存�ч獙璇�
+            // 鏁版嵁涓�鑷存�ч獙璇�
             var context = new CancelPickingContext
             {
                 LockInfo = lockInfo,
@@ -934,7 +934,7 @@
             if (!validationResult.IsValid)
                 throw new Exception(validationResult.ErrorMessage);
 
-            // 2. 澶勭悊涓嶅悓绫诲瀷鐨勫彇娑�
+            // 澶勭悊涓嶅悓绫诲瀷鐨勫彇娑�
             if (lockInfo.IsSplitted == 1 && lockInfo.ParentLockId.HasValue)
             {
                 await HandleSplitBarcodeCancel(lockInfo, pickingRecord, cancelQty);
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService_Inbound.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService_Inbound.cs"
index 629e46f..030114d 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService_Inbound.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService_Inbound.cs"
@@ -40,7 +40,7 @@
                     {
                         return WebResponseContent.Instance.Error($"璇ユ墭鐩樺凡鐢熸垚浠诲姟");
                     }
-                }
+                } 
 
                 Dt_StockInfo stockInfo = _stockRepository.Db.Queryable<Dt_StockInfo>().Where(x => x.PalletCode == palletCode).Includes(x => x.Details).First();
                 if (stockInfo == null)

--
Gitblit v1.9.3