From 296b4aec849d45a075b6068cb121dd0c117d3818 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期六, 04 一月 2025 17:59:18 +0800
Subject: [PATCH] WMS添加物料码信息打印

---
 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundOrderService.cs |   19 ++++++-------------
 1 files changed, 6 insertions(+), 13 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundOrderService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundOrderService.cs"
index 3f5b0aa..010d9b4 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundOrderService.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundOrderService.cs"
@@ -268,24 +268,17 @@
                     };
                 }
                 
-                string response = _invokeERPService.InvokeOutStandardsApi(issueModel);
-                ErpRequestContent requestContent = response.DeserializeObject<ErpRequestContent>();
-                if (requestContent.res == 1)
+                if (stockInfos.Count > 0)
                 {
-                    if (stockInfos.Count>0)
-                    {
-                        _stockInfoRepository.UpdateData(stockInfos);
-                    }
-                    else
-                    {
-                        _outStockLockInfoService.Repository.UpdateData(_OutStockLockInfos);
-                    }
-                    return WebResponseContent.Instance.OK(requestContent.Data);
+                    _stockInfoRepository.UpdateData(stockInfos);
                 }
                 else
                 {
-                    return WebResponseContent.Instance.Error(requestContent.Data);
+                    _outStockLockInfoService.Repository.UpdateData(_OutStockLockInfos);
                 }
+                //鍑哄簱瀹屾垚涓婃姤ERP 娴嬭瘯娉ㄩ噴
+                _invokeERPService.InvokeOutStandardsApi(issueModel);
+                return WebResponseContent.Instance.OK();
             }
             catch (Exception ex)
             {

--
Gitblit v1.9.3