From f947d43adfe6a204b6afe920ce88a30d78015f1d Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期五, 28 二月 2025 10:44:44 +0800
Subject: [PATCH] 板料优化,成品流程,测试架...

---
 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs"
index 2c3fbab..e74b420 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs"
@@ -462,7 +462,7 @@
                     OutboundQuantity = 0,
                     SerialNumber = stockInfoDetail_Hty?.SerialNumber ?? "0",
                     StockQuantity = model.Quantity,
-                    Status = StockStatusEmun.MES閫�搴�.ObjToInt(),
+                    Status = model.Quantity <= 0.0 ? StockStatusEmun.MES绌烘墭閫�搴�.ObjToInt() : StockStatusEmun.MES閫�搴�.ObjToInt(),
                     Unit = model.Unit
                 };
                 Dt_StockInfo stockInfo = new Dt_StockInfo()
@@ -470,8 +470,9 @@
                     PalletCode = model.CarrierCode,
                     PalletType = palletTypeInfo.PalletType,
                     WarehouseId = warehouse.WarehouseId,
-                    StockStatus = StockStatusEmun.MES閫�搴�.ObjToInt(),
-                    Details = new List<Dt_StockInfoDetail> { stockInfoDetail }
+                    StockStatus = stockInfoDetail.StockQuantity<=0.0? StockStatusEmun.MES绌烘墭閫�搴�.ObjToInt():StockStatusEmun.MES閫�搴�.ObjToInt(),
+                    Details = new List<Dt_StockInfoDetail> { stockInfoDetail },
+                    Remark= stockInfoDetail.StockQuantity <= 0.0 ? StockStatusEmun.MES绌烘墭閫�搴�.ToString() : StockStatusEmun.MES閫�搴�.ToString()
                 };
                 //Dt_Task task = new Dt_Task()
                 //{

--
Gitblit v1.9.3