From e579c8d3ab3accb26258f0c615101e3d86093730 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期三, 29 十月 2025 01:08:03 +0800
Subject: [PATCH] 添加库存临期提醒,优化前端弹窗提醒

---
 新建文件夹/WIDESEA_WMSServer/ClassLibrary1/IMessageInfoService.cs                           |    2 
 新建文件夹/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/WMSInfo/MessageInfoController.cs |    2 
 新建文件夹/WMS/src/views/index/Message.vue                                                  |    6 
 新建文件夹/WIDESEA_WMSServer/WIDESEA_Model/Models/WMSInfo/Dt_Inventory_Batch.cs             |    2 
 新建文件夹/WMS/src/views/Alarm/MessageInfo.vue                                              |   76 +++++++-------
 新建文件夹/WIDESEA_WMSServer/ClassLibrary1/IInventoryInfoService.cs                         |    6 -
 新建文件夹/WIDESEA_WMSServer/WIDESEA_Common/MessageEnum.cs                                  |    9 +
 新建文件夹/WIDESEA_WMSServer/ClassLibrary2/MessageInfoService.cs                            |   32 +++++-
 新建文件夹/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/CabinOrderServices.cs              |    2 
 新建文件夹/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/InventoryServices.cs               |    2 
 新建文件夹/WIDESEA_WMSServer/ClassLibrary2/Inventory_BatchServices.cs.cs                    |   28 +++++
 新建文件夹/WIDESEA_WMSServer/ClassLibrary1/IInventory_BatchServices.cs                      |    2 
 新建文件夹/WIDESEA_WMSServer/ClassLibrary2/InventoryInfoService.cs                          |   78 ---------------
 新建文件夹/WIDESEA_WMSServer/WIDESEA_WMSServer/AlarmJob.cs                                  |    5 
 14 files changed, 114 insertions(+), 138 deletions(-)

diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/IInventoryInfoService.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/IInventoryInfoService.cs"
index c242dec..7a82ced 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/IInventoryInfoService.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/IInventoryInfoService.cs"
@@ -20,11 +20,5 @@
         /// </summary>
         /// <returns></returns>
         WebResponseContent GetInventory();
-
-        /// <summary>
-        /// 鑾峰彇涓存湡鐨勫拰绔嬪簱搴撳瓨浣庢姤璀�
-        /// </summary>
-        /// <returns></returns>
-        WebResponseContent GetExpiredAndlow();
     }
 }
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/IInventory_BatchServices.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/IInventory_BatchServices.cs"
index 58ff81d..edde60c 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/IInventory_BatchServices.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/IInventory_BatchServices.cs"
@@ -13,5 +13,7 @@
     public interface IInventory_BatchServices : IService<Dt_Inventory_Batch>
     {
         IRepository<Dt_Inventory_Batch> Repository { get; }
+
+        WebResponseContent GetExpiredAndlow();
     }
 }
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/IMessageInfoService.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/IMessageInfoService.cs"
index 37a8d8c..a7959bf 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/IMessageInfoService.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary1/IMessageInfoService.cs"
@@ -24,7 +24,7 @@
         /// <param name="messageRemark"></param>
         /// <returns></returns>
         WebResponseContent AddMessageInfo(MessageGroupByEnum groupByEnum, string messageName, string messageInfo, MessageStatusEnum statusEnum = MessageStatusEnum.Undisposed, string messageRemark = "");
-        WebResponseContent DeleteAndIntoHty(int[] keys);
+        WebResponseContent DeleteAndIntoHty(object[] keys);
         void GetMessageInfo();
     }
 }
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/InventoryInfoService.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/InventoryInfoService.cs"
index 0859da2..4b06b24 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/InventoryInfoService.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/InventoryInfoService.cs"
@@ -25,82 +25,6 @@
         }
         public IRepository<Dt_InventoryInfo> Repository => BaseDal;
 
-        public WebResponseContent GetExpiredAndlow()
-        {
-            try
-            {
-                // 鑾峰彇褰撳墠鏃堕棿锛堝彧鍙栨棩鏈熼儴鍒嗭紝蹇界暐鏃堕棿锛�
-                DateTime currentDate = DateTime.Today;
-                // 璁$畻30澶╁悗鐨勬棩鏈�
-                DateTime thresholdDate = currentDate.AddDays(30);
-
-                // 鏌ユ壘搴撳瓨涓墍鏈夊晢鍝�
-                var inventoryList = BaseDal.QueryData();
-                var expiredSoonList = new List<object>();
-
-                foreach (var item in inventoryList)
-                {
-                    // 妫�鏌alidityPeriod鏄惁涓虹┖
-                    if (string.IsNullOrEmpty(item.ValidityPeriod))
-                        continue;
-
-                    // 浣跨敤绮剧‘鏍煎紡瑙f瀽 "2037-10-02"
-                    if (DateTime.TryParseExact(item.ValidityPeriod.Trim(), "yyyy-MM-dd",
-                        System.Globalization.CultureInfo.InvariantCulture,
-                        System.Globalization.DateTimeStyles.None, out DateTime expiryDate))
-                    {
-                        // 璁$畻鍓╀綑澶╂暟锛堝彧姣旇緝鏃ユ湡閮ㄥ垎锛�
-                        double daysRemaining = (expiryDate - currentDate).TotalDays;
-
-                        // 妫�鏌ユ槸鍚﹀湪30澶╁唴锛堝寘鎷凡杩囨湡鐨勶級
-                        if (daysRemaining <= 30)
-                        {
-                            expiredSoonList.Add(new
-                            {
-                                MaterielCode = item.MaterielCode ?? "",
-                                BatchNo = item.BatchNo ?? "",
-                                ValidityPeriod = item.ValidityPeriod,
-                                ExpiryDate = expiryDate.ToString("yyyy-MM-dd"),
-                            });
-                        }
-                    }
-                    else
-                    {
-                        // 璁板綍瑙f瀽澶辫触鐨勮褰曪紙鐢ㄤ簬璋冭瘯锛�
-                        Console.WriteLine($"鏃犳硶瑙f瀽鏁堟湡: {item.ValidityPeriod}");
-                    }
-                }
-
-                // 鎸夊墿浣欏ぉ鏁板崌搴忔帓鍒楋紙鍗冲皢杩囨湡鐨勬帓鍓嶉潰锛�
-                var sortedList = expiredSoonList.OrderBy(x =>
-                {
-                    var days = (int)((dynamic)x).DaysRemaining;
-                    return days;
-                }).ToList();
-
-                return new WebResponseContent
-                {
-                    Status = true,
-                    Message = $"鍙戠幇 {sortedList.Count} 涓晢鍝佸皢鍦�30澶╁唴杩囨湡",
-                    Data = new
-                    {
-                        TotalCount = sortedList.Count,
-                        ExpiredCount = sortedList.Count(x => ((dynamic)x).DaysRemaining < 0),
-                        WarningCount = sortedList.Count(x => ((dynamic)x).DaysRemaining >= 0),
-                        CheckDate = currentDate.ToString("yyyy-MM-dd"),
-                        Items = sortedList
-                    }
-                };
-            }
-            catch (Exception ex)
-            {
-                return new WebResponseContent
-                {
-                    Status = false,
-                    Message = $"鑾峰彇鏁堟湡鏁版嵁澶辫触: {ex.Message}"
-                };
-            }
-        }
 
         /// <summary>
         /// 鑾峰彇搴撳瓨
@@ -152,6 +76,6 @@
         }
 
 
-        
+
     }
 }
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/Inventory_BatchServices.cs.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/Inventory_BatchServices.cs.cs"
index 10dd800..536d322 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/Inventory_BatchServices.cs.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/Inventory_BatchServices.cs.cs"
@@ -3,6 +3,8 @@
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
+using WIDESEA_Common;
+using WIDESEA_Core;
 using WIDESEA_Core.BaseRepository;
 using WIDESEA_Core.BaseServices;
 using WIDESEA_IWMsInfoServices;
@@ -13,10 +15,34 @@
 {
     public class Inventory_BatchServices : ServiceBase<Dt_Inventory_Batch, IRepository<Dt_Inventory_Batch>>, IInventory_BatchServices
     {
-        public Inventory_BatchServices(IRepository<Dt_Inventory_Batch> BaseDal) : base(BaseDal)
+        private IMessageInfoService _messageInfoService;
+        public Inventory_BatchServices(IRepository<Dt_Inventory_Batch> BaseDal, IMessageInfoService messageInfoService) : base(BaseDal)
         {
+            _messageInfoService = messageInfoService;
         }
 
         public IRepository<Dt_Inventory_Batch> Repository => BaseDal;
+
+        public WebResponseContent GetExpiredAndlow()
+        {
+            WebResponseContent content = new WebResponseContent();
+            try
+            {
+                DateTime dateTime = DateTime.Now.AddDays(30).Date;
+                List<Dt_Inventory_Batch> inventory_Batches = BaseDal.QueryData(x => x.ValidityPeriod < dateTime);
+                foreach (var item in inventory_Batches)
+                {
+                    var day = (item.ValidityPeriod - DateTime.Now).Days;
+                    string d = $"杩樻湁{day}澶╄繃鏈�";
+                    if (day < 0) d = $"宸茶繃鏈焮Math.Abs(day)}澶�";
+                    _messageInfoService.AddMessageInfo(MessageGroupByEnum.InventoryExceedAlarm, "鐗╂枡鍚嶇О:" + item.MaterielName, $"鐗╂枡缂栧彿銆恵item.MaterielCode}銆戠墿鏂欐壒娆°�恵item.BatchNo}銆憑d}");
+                }
+            }
+            catch (Exception ex)
+            {
+                content.Error(ex.Message);
+            }
+            return content;
+        }
     }
 }
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/MessageInfoService.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/MessageInfoService.cs"
index ea8b9de..55e2047 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/MessageInfoService.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/MessageInfoService.cs"
@@ -51,6 +51,8 @@
                     dt_MessageInfo = BaseDal.QueryFirst(x => x.MessageName == messageName && x.MessageRemark == messageRemark);
                 else
                     dt_MessageInfo = BaseDal.QueryFirst(x => x.MessageName == messageName && x.MessageInfo == messageInfo);
+                if (groupByEnum != MessageGroupByEnum.InventoryExceedAlarm && dt_MessageInfo != null) return content;
+
                 if (dt_MessageInfo == null)
                 {
                     dt_MessageInfo = new Dt_MessageInfo();
@@ -65,6 +67,7 @@
                 {
                     if (dt_MessageInfo.MessageGroupBy == MessageGroupByEnum.InventoryExceedAlarm.ObjToInt())
                     {
+                        if (dt_MessageInfo.MessageInfo == messageInfo) return content;
                         dt_MessageInfo.MessageStatus = statusEnum.ObjToInt();
                         dt_MessageInfo.MessageName = messageName;
                         dt_MessageInfo.MessageInfo = messageInfo;
@@ -79,18 +82,36 @@
             }
             return content;
         }
-        public WebResponseContent DeleteAndIntoHty(int[] keys)
+        public override WebResponseContent DeleteData(object[] keys)
+        {
+            return DeleteAndIntoHty(keys);
+            //return base.DeleteData(keys);
+        }
+        public WebResponseContent DeleteAndIntoHty(object[] keys)
         {
             WebResponseContent content = new WebResponseContent();
             try
             {
                 List<Dt_MessageInfo> messageInfos = BaseDal.QueryData(x => keys.Contains(x.Id));
+                List<int> ints = new List<int>();
                 foreach (var item in messageInfos)
                 {
                     item.MessageStatus = MessageStatusEnum.Processed.ObjToInt();
                     item.Modifier = App.User.UserName;
+                    ints.Add(item.Id);
                 }
                 BaseDal.DeleteAndMoveIntoHty(messageInfos, OperateTypeEnum.浜哄伐瀹屾垚);
+                string MessageInfo = _cacheService.Get("MessageInfo");
+                if (!string.IsNullOrEmpty(MessageInfo))
+                {
+                    List<Message>? messages = JsonConvert.DeserializeObject<List<Message>>(MessageInfo);
+                    if (messages != null)
+                    {
+                        messages = messages.Where(x => !ints.Contains(x.Id)).ToList();
+                        _cacheService.AddOrUpdate("MessageInfo", JsonConvert.SerializeObject(messages));
+                    }
+                }
+                content.OK("澶勭悊鎴愬姛");
             }
             catch (Exception ex)
             {
@@ -103,7 +124,6 @@
         {
             try
             {
-                List<int> keys = new List<int>();
                 List<Message> messagesinfo = new List<Message>();
                 string MessageInfo = _cacheService.Get("MessageInfo");
                 if (!string.IsNullOrEmpty(MessageInfo))
@@ -112,10 +132,9 @@
                     if (messages != null)
                     {
                         messagesinfo = messages;
-                        keys = messages.Select(x => x.Id).ToList();
                     }
                 }
-                var messinfo = BaseDal.QueryData(x => !keys.Contains(x.Id));
+                var messinfo = BaseDal.QueryData(x => x.MessageStatus < MessageStatusEnum.Wait.ObjToInt());
                 foreach (var item in messinfo)
                 {
                     Message message = new Message()
@@ -136,8 +155,11 @@
                     };
                     if (_webSocketServer.OnlineCount > 0)
                         _webSocketServer.PublishAllClientPayload(JsonConvert.SerializeObject(obj));
+                    item.MessageStatus = MessageStatusEnum.Wait.ObjToInt();
                 }
-                _cacheService.AddOrUpdate("MessageInfo", JsonConvert.SerializeObject(messagesinfo));
+                if (messagesinfo.Count > 0)
+                    _cacheService.AddOrUpdate("MessageInfo", JsonConvert.SerializeObject(messagesinfo));
+                BaseDal.UpdateData(messinfo);
             }
             catch (Exception ex)
             {
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_Common/MessageEnum.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_Common/MessageEnum.cs"
index edfef0a..efb06df 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_Common/MessageEnum.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_Common/MessageEnum.cs"
@@ -47,9 +47,9 @@
     public enum MessageStatusEnum
     {
         /// <summary>
-        /// 寰呭鐞�
+        /// 鏈鐞�
         /// </summary>
-        [Description("寰呭鐞�")]
+        [Description("鏈鐞�")]
         Undisposed,
         /// <summary>
         /// 鎬ュ鐞�
@@ -57,6 +57,11 @@
         [Description("鎬ュ鐞�")]
         Emergency,
         /// <summary>
+        /// 寰呭鐞�
+        /// </summary>
+        [Description("寰呭鐞�")]
+        Wait,
+        /// <summary>
         /// 宸插鐞�
         /// </summary>
         [Description("宸插鐞�")]
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_Model/Models/WMSInfo/Dt_Inventory_Batch.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_Model/Models/WMSInfo/Dt_Inventory_Batch.cs"
index 3899606..1074b14 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_Model/Models/WMSInfo/Dt_Inventory_Batch.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_Model/Models/WMSInfo/Dt_Inventory_Batch.cs"
@@ -115,7 +115,7 @@
         [ImporterHeader(Name = "鏈夋晥鏈熻嚦")]
         [ExporterHeader(DisplayName = "鏈夋晥鏈熻嚦")]
         [SugarColumn(IsNullable = true, ColumnDescription = "鏈夋晥鏈熻嚦")]
-        public string ValidityPeriod { get; set; }
+        public DateTime ValidityPeriod { get; set; }
 
         /// <summary>
         /// 澶囨敞
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/CabinOrderServices.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/CabinOrderServices.cs"
index 87850ea..0566d66 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/CabinOrderServices.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/CabinOrderServices.cs"
@@ -270,7 +270,7 @@
                         Status = false,
                         StockQuantity = inventoryInfo.StockQuantity,
                         AvailableQuantity = inventoryInfo.StockQuantity,
-                        ValidityPeriod = inventoryInfo.ValidityPeriod,
+                        ValidityPeriod = inventoryInfo.ValidityPeriod.ObjToDate(),
                         SupplyQuantity = inventoryInfo.SupplyQuantity,
                     };
                     _inventory_BatchServices.AddData(inventory_Batch);
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/InventoryServices.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/InventoryServices.cs"
index 7130732..aeee6d5 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/InventoryServices.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/InventoryServices.cs"
@@ -260,7 +260,7 @@
                                             ERPStockQuantity = 0,
                                             Status = false,
                                             ProductionDate = detail.finishDate.ToString("yyyy-MM-dd"),
-                                            ValidityPeriod = inventoryInfo.ValidityPeriod,
+                                            ValidityPeriod = inventoryInfo.ValidityPeriod.ObjToDate(),
                                             Remark = "鑷姩鍒涘缓"
                                         };
                                         BaseDal.Db.Insertable(inventory_Batch).ExecuteCommand();
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/AlarmJob.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/AlarmJob.cs"
index 6dee228..b20b3f5 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/AlarmJob.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/AlarmJob.cs"
@@ -10,11 +10,13 @@
         private readonly IContainerService _containerService;
         private readonly IEquipmentAlarmInforService _equipmentAlarmInforService;
         private readonly IMessageInfoService _messageInfoService;
-        public AlarmJob(IContainerService containerService, IEquipmentAlarmInforService equipmentAlarmInforService, IMessageInfoService messageInfoService)
+        private readonly IInventory_BatchServices _inventoryInfoService;
+        public AlarmJob(IContainerService containerService, IEquipmentAlarmInforService equipmentAlarmInforService, IMessageInfoService messageInfoService, IInventory_BatchServices inventoryInfoService)
         {
             _containerService = containerService;
             _equipmentAlarmInforService = equipmentAlarmInforService;
             _messageInfoService = messageInfoService;
+            _inventoryInfoService = inventoryInfoService;
         }
         //姣忛殧1绉掓墽琛屼竴娆�
         [Invoke(Begin = "2025-09-01", Interval = 1000 * 5, IsEnabled = true, SkipWhileExecuting = true)]
@@ -23,6 +25,7 @@
             //鍐峰簱
             _containerService.Sensor();
             _equipmentAlarmInforService.getDeviceStatus();
+            _inventoryInfoService.GetExpiredAndlow();
             _messageInfoService.GetMessageInfo();
         }
     }
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/WMSInfo/MessageInfoController.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/WMSInfo/MessageInfoController.cs"
index c32eaf0..93a6319 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/WMSInfo/MessageInfoController.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/WMSInfo/MessageInfoController.cs"
@@ -15,7 +15,7 @@
         {
         }
         [HttpPost, HttpGet, Route("DeleteAndIntoHty")]
-        public WebResponseContent DeleteAndIntoHty([FromBody] int[] keys)
+        public WebResponseContent DeleteAndIntoHty([FromBody] object[] keys)
         {
             return Service.DeleteAndIntoHty(keys);
         }
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WMS/src/views/Alarm/MessageInfo.vue" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WMS/src/views/Alarm/MessageInfo.vue"
index 33707c2..a5620e6 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WMS/src/views/Alarm/MessageInfo.vue"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WMS/src/views/Alarm/MessageInfo.vue"
@@ -149,22 +149,22 @@
         bind: { key: "MessageGroupByEnum", data: [] },
         require: true,
       },
-      {
-        field: "messageStatus",
-        title: "鐘舵��",
-        type: "string",
-        width: 100,
-        align: "center",
-        bind: { key: "MessageStatusEnum", data: [] },
-        require: true,
-      },
+      // {
+      //   field: "messageStatus",
+      //   title: "鐘舵��",
+      //   type: "string",
+      //   width: 100,
+      //   align: "center",
+      //   bind: { key: "MessageStatusEnum", data: [] },
+      //   require: true,
+      // },
       {
         field: "messageName",
         title: "寮傚父淇℃伅鍚嶇О",
         type: "string",
         width: 200,
         align: "left",
-        link: true,
+        // link: true,
         require: true,
       },
       {
@@ -175,20 +175,20 @@
         align: "left",
         require: true,
       },
-      {
-        field: "messageRemark",
-        title: "澶囨敞",
-        type: "string",
-        width: 200,
-        align: "left",
-      },
-      {
-        field: "creater",
-        title: "鍒涘缓浜�",
-        type: "string",
-        width: 100,
-        align: "center",
-      },
+      // {
+      //   field: "messageRemark",
+      //   title: "澶囨敞",
+      //   type: "string",
+      //   width: 200,
+      //   align: "left",
+      // },
+      // {
+      //   field: "creater",
+      //   title: "鍒涘缓浜�",
+      //   type: "string",
+      //   width: 100,
+      //   align: "center",
+      // },
       {
         field: "createDate",
         title: "鍒涘缓鏃堕棿",
@@ -196,20 +196,20 @@
         width: 160,
         align: "center",
       },
-      {
-        field: "modifier",
-        title: "淇敼浜�",
-        type: "string",
-        width: 100,
-        align: "center",
-      },
-      {
-        field: "modifyDate",
-        title: "淇敼鏃堕棿",
-        type: "datetime",
-        width: 160,
-        align: "center",
-      },
+      // {
+      //   field: "modifier",
+      //   title: "淇敼浜�",
+      //   type: "string",
+      //   width: 100,
+      //   align: "center",
+      // },
+      // {
+      //   field: "modifyDate",
+      //   title: "淇敼鏃堕棿",
+      //   type: "datetime",
+      //   width: 160,
+      //   align: "center",
+      // },
     ]);
 
     const detail = ref({
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WMS/src/views/index/Message.vue" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WMS/src/views/index/Message.vue"
index 597201a..dbc0e11 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WMS/src/views/index/Message.vue"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WMS/src/views/index/Message.vue"
@@ -48,10 +48,10 @@
           </el-col>
         </el-row> -->
       </div>
-      <div style="margin-top: 20px">
+      <!-- <div style="margin-top: 20px">
         <el-button type="primary">宸插鐞�</el-button>
-        <!-- <el-button type="danger">椹冲洖</el-button> -->
-      </div>
+        <el-button type="danger">椹冲洖</el-button>
+      </div> -->
     </div>
   </div>
 </template>

--
Gitblit v1.9.3