From 635a49022f9f2dc3047456a63cd5f380c6724f87 Mon Sep 17 00:00:00 2001
From: liulijun <liulijun@hnkhzn.com>
Date: 星期五, 27 三月 2026 11:21:16 +0800
Subject: [PATCH] 新增MES领料计划单页面,修复出库详情单据类型的显示
---
项目代码/WMS/WMSServices/WIDESEA_SystemService/Sys_DictionaryService.cs | 92 +++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 82 insertions(+), 10 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_SystemService/Sys_DictionaryService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_SystemService/Sys_DictionaryService.cs"
index 6e6d8da..2b59d44 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_SystemService/Sys_DictionaryService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_SystemService/Sys_DictionaryService.cs"
@@ -407,13 +407,6 @@
result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data };
}
break;
- case "taskTypeEnum":
- {
- List<object> data = new List<object>();
-
- result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data };
- }
- break;
case "taskStatusEnum":
{
List<object> data = new List<object>();
@@ -667,12 +660,39 @@
List<object> data = new List<object>();
{
- Type type = typeof(AGVStationAreaEnum);
- List<string> enumNames = Enum.GetNames(typeof(AGVStationAreaEnum)).ToList();
+ Type type = typeof(StationAreaEnum);
+ List<string> enumNames = Enum.GetNames(typeof(StationAreaEnum)).ToList();
int index = 0;
foreach (var item in enumNames)
{
- FieldInfo? fieldInfo = typeof(AGVStationAreaEnum).GetField((item).ToString());
+ FieldInfo? fieldInfo = typeof(StationAreaEnum).GetField((item).ToString());
+ DescriptionAttribute? description = fieldInfo.GetCustomAttribute<DescriptionAttribute>();
+ if (description != null)
+ {
+ data.Add(new { key = item.ToString(), value = description.Description });
+ }
+ else
+ {
+ data.Add(new { key = item.ToString(), value = item.ToString() });
+ }
+ index++;
+ }
+ }
+
+ result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data };
+ }
+ break;
+ case "printAreaEnum":
+ {
+ List<object> data = new List<object>();
+
+ {
+ Type type = typeof(PrintAreaEnum);
+ List<int> enums = Enum.GetValues(typeof(PrintAreaEnum)).Cast<int>().ToList();
+ int index = 0;
+ foreach (var item in enums)
+ {
+ FieldInfo? fieldInfo = typeof(PrintAreaEnum).GetField(((PrintAreaEnum)item).ToString());
DescriptionAttribute? description = fieldInfo.GetCustomAttribute<DescriptionAttribute>();
if (description != null)
{
@@ -715,6 +735,58 @@
result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data };
}
break;
+ case "inOrderTypeEnum":
+ {
+ List<object> data = new List<object>();
+ {
+ Type type = typeof(InOrderTypeEnum);
+ List<int> enums = Enum.GetValues(typeof(InOrderTypeEnum)).Cast<int>().ToList();
+ int index = 0;
+ foreach (var item in enums)
+ {
+ FieldInfo? fieldInfo = typeof(InOrderTypeEnum).GetField(((InOrderTypeEnum)item).ToString());
+ DescriptionAttribute? description = fieldInfo.GetCustomAttribute<DescriptionAttribute>();
+ if (description != null)
+ {
+ data.Add(new { key = item.ToString(), value = description.Description });
+ }
+ else
+ {
+ data.Add(new { key = item.ToString(), value = item.ToString() });
+ }
+ index++;
+ }
+ }
+
+ result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data };
+ }
+ break;
+ case "outOrderTypeEnum":
+ {
+ List<object> data = new List<object>();
+ {
+ Type type = typeof(OutOrderTypeEnum);
+ List<int> enums = Enum.GetValues(typeof(OutOrderTypeEnum)).Cast<int>().ToList();
+ int index = 0;
+ foreach (var item in enums)
+ {
+ FieldInfo? fieldInfo = typeof(OutOrderTypeEnum).GetField(((OutOrderTypeEnum)item).ToString());
+ DescriptionAttribute? description = fieldInfo.GetCustomAttribute<DescriptionAttribute>();
+ if (description != null)
+ {
+ data.Add(new { key = item.ToString(), value = description.Description });
+ }
+ else
+ {
+ data.Add(new { key = item.ToString(), value = item.ToString() });
+ }
+ index++;
+ }
+ }
+
+ result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data };
+ }
+ break;
}
return result;
}
--
Gitblit v1.9.3