1
heshaofeng
2026-01-22 51bd4ac4f323fab99ff9ac20763ca15af0e53a57
项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_StockService/StockInfoDetailService.cs
@@ -120,7 +120,10 @@
                 Modifier = detail.Modifier,
                 ModifyDate = detail.ModifyDate,
                 PalletCode = item.PalletCode,
                 LocationCode = item.LocationCode
                 LocationCode = item.LocationCode,
                 ValidDate = detail.ValidDate,
             })
             .ToPageList(options.Page, options.Rows, ref totalCount);
@@ -129,6 +132,27 @@
        }
        public async Task<WebResponseContent> LockOrUpLockStockDetail(SaveModel saveModel)
        {
            WebResponseContent content = new WebResponseContent();
            try
            {
                var details = await BaseDal.QueryDataAsync(x => saveModel.DelKeys.Contains(x.Id));
                bool flag = Convert.ToBoolean(saveModel.Extra);
                details.ForEach(x => x.Status = flag ? StockStatusEmun.鎵嬪姩鍐荤粨.ObjToInt(): StockStatusEmun.鎵嬪姩瑙i攣.ObjToInt());
                await BaseDal.UpdateDataAsync(details);
                return content.OK(flag ? "鍐荤粨鎴愬姛!" : "瑙i攣鎴愬姛!");
            }
            catch (Exception ex)
            {
                return content.Error(ex.Message);
            }
        }
    }
}