From 1a2e9c7cbab7096222b0b75ada21590877db2cf0 Mon Sep 17 00:00:00 2001
From: liulijun <liulijun@hnkhzn.com>
Date: 星期五, 27 三月 2026 14:34:56 +0800
Subject: [PATCH] 修复出库详情的状态显示异常
---
项目代码/WMS/WMSClient/src/views/outbound/outStockLockInfo.vue | 4 ++--
项目代码/WMS/WMSServices/WIDESEA_SystemService/Sys_DictionaryService.cs | 26 ++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 2 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/views/outbound/outStockLockInfo.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/views/outbound/outStockLockInfo.vue"
index 7eede7f..074bc19 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/views/outbound/outStockLockInfo.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/views/outbound/outStockLockInfo.vue"
@@ -111,7 +111,7 @@
{title: "璐т綅缂栧彿",field: "locationCode",type: "like",},
{ title: "鎵樼洏缂栧彿", field: "palletCode", type: "like" },
{ title: "浠诲姟鍙�", field: "taskNum", type: "like" },
- { title: "鐘舵��", field: "status", type: "select",dataKey:"outboundStatusEnum", data:[]},
+ { title: "鐘舵��", field: "status", type: "select",dataKey:"outLockStockStatusEnum", data:[]},
],
[
{ title: "鍒涘缓鏃堕棿", field: "createDate", type: "datetime" },
@@ -264,7 +264,7 @@
type: "select",
width: 100,
align: "left",
- bind: { key: "outboundStatusEnum", data: [] },
+ bind: { key: "outLockStockStatusEnum", data: [] },
},
{
field: "creater",
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 2b59d44..4d2137c 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"
@@ -787,6 +787,32 @@
result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data };
}
break;
+ case "outLockStockStatusEnum":
+ {
+ List<object> data = new List<object>();
+ {
+ Type type = typeof(OutLockStockStatusEnum);
+ List<int> enums = Enum.GetValues(typeof(OutLockStockStatusEnum)).Cast<int>().ToList();
+ int index = 0;
+ foreach (var item in enums)
+ {
+ FieldInfo? fieldInfo = typeof(OutLockStockStatusEnum).GetField(((OutLockStockStatusEnum)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