wangxinhui
9 天以前 6861434f1445d1685b67a24897890c34f8c54f85
代码管理/WMS/WMSServices/WIDESEA_SystemService/Sys_DictionaryService.cs
@@ -555,33 +555,6 @@
                            result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data };
                        }
                        break;
                    case "proStockAttributeEnum":
                        {
                            List<object> data = new List<object>();
                            {
                                Type type = typeof(ProStockAttributeEnum);
                                List<int> enums = Enum.GetValues(typeof(ProStockAttributeEnum)).Cast<int>().ToList();
                                int index = 0;
                                foreach (var item in enums)
                                {
                                    FieldInfo? fieldInfo = typeof(ProStockAttributeEnum).GetField(((ProStockAttributeEnum)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 "materielTypeEnum":
                        {
                            List<object> data = new List<object>();