From e76f0739e647fe8a7e0e2618914e2faff554b1b7 Mon Sep 17 00:00:00 2001
From: huang <1532065656@qq.com>
Date: 星期一, 17 十一月 2025 17:33:23 +0800
Subject: [PATCH] 解决冲突

---
 mes-web/src/utils/plcFieldMapping.js |  633 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 633 insertions(+), 0 deletions(-)

diff --git a/mes-web/src/utils/plcFieldMapping.js b/mes-web/src/utils/plcFieldMapping.js
new file mode 100644
index 0000000..47f6a07
--- /dev/null
+++ b/mes-web/src/utils/plcFieldMapping.js
@@ -0,0 +1,633 @@
+// PLC瀛楁鏄犲皠閰嶇疆
+// 涓嶅悓妯″潡鐨勫瓧娈垫槧灏勫叧绯�
+
+// 浠撳偍妯″潡瀛楁鏄犲皠
+export const storageModuleFields = {
+  'onlineState': { 
+    label: '鑱旀満鐘舵��',
+    description: '宸ヤ綔妯″紡锛�1mes妯″紡 0鍗曟満妯″紡'
+  },
+  'plcRequest': { 
+    label: 'PLC璇锋眰',
+    description: '浠诲姟璇锋眰 0鏃犳儏姹� 1鏈夎姹�'
+  },
+  'plcReport': { 
+    label: 'PLC姹囨姤',
+    description: '浠诲姟姹囨姤 0鏃犳眹鎶� 1姹囨姤 3鏈畬鎴�'
+  },
+  'finishA': { 
+    label: '瀹屾垚淇″彿A',
+    description: '瀹屾垚1A'
+  },
+  'finishB': { 
+    label: '瀹屾垚淇″彿B',
+    description: '瀹屾垚1B'
+  },
+  'state': { 
+    label: '浠诲姟鐘舵��',
+    description: '浠诲姟鐘舵�� : 0锛屾棤锛�1锛氬惛鐗囧畬鎴�/涓婅溅瀹屾垚'
+  },
+  'onePosition': { 
+    label: '绌挎杞�',
+    description: '绌挎杞︿綅缃�'
+  },
+  'twoPosition': { 
+    label: '鍚哥洏浣嶇疆',
+    description: '鍚哥洏浣嶇疆'
+  },
+  'mesSend': { 
+    label: 'MES鍙戦��',
+    description: '鍚姩瀛� 1鍚姩 瀹屾垚鍚� 鏃犳儏姹傛椂娓�0'
+  },
+  'mesConfirm': { 
+    label: 'MES纭',
+    description: '纭瀛�'
+  },
+  'start': { 
+    label: '璧峰浣嶇疆',
+    description: '璧峰宸ヤ綅'
+  },
+  'target': { 
+    label: '鐩爣浣嶇疆',
+    description: '鐩爣宸ヤ綅'
+  },
+  'mesGlassCount': { 
+    label: '鐜荤拑鏁伴噺',
+    description: '浠诲姟鏁伴噺'
+  },
+  'rawMargin1': { 
+    label: '鍘熺墖杈硅窛1',
+    description: '鍘熺墖淇℃伅'
+  },
+  'mesWidth1': { 
+    label: '鐜荤拑闀胯竟1',
+    description: '鍘熺墖淇℃伅'
+  },
+  'mesHeight1': { 
+    label: '鐜荤拑鐭竟1',
+    description: '鍘熺墖淇℃伅'
+  },
+  'rawThickness1': { 
+    label: '鐜荤拑鍘氬害1',
+    description: '鍘熺墖淇℃伅'
+  },
+  'rawMargin2': { 
+    label: '鍘熺墖杈硅窛2',
+    description: '鍘熺墖淇℃伅'
+  },
+  'mesWidth2': { 
+    label: '鐜荤拑闀胯竟2',
+    description: '鍘熺墖淇℃伅'
+  },
+  'mesHeight2': { 
+    label: '鐜荤拑鐭竟2',
+    description: '鍘熺墖淇℃伅'
+  },
+  'rawThickness2': { 
+    label: '鐜荤拑鍘氬害2',
+    description: '鍘熺墖淇℃伅'
+  },
+  'alarmInfo': { 
+    label: '鎶ヨ淇℃伅',
+    description: '鎶ヨ淇″彿'
+  }
+};
+
+// 涓婄墖妯″潡瀛楁鏄犲皠
+export const upperModuleFields = {
+  'onlineState': { 
+    label: '鑱旀満鐘舵��',
+    description: '宸ヤ綔妯″紡锛�1mes妯″紡 0鍗曟満妯″紡'
+  },
+  'plcRequest': { 
+    label: 'PLC璇锋眰',
+    description: '浠诲姟璇锋眰 0鏃犳儏姹� 1鏈夎姹�'
+  },
+  'plcReport': { 
+    label: 'PLC姹囨姤',
+    description: '浠诲姟姹囨姤 0鏃犳眹鎶� 1姹囨姤 3鏈畬鎴�'
+  },
+  'finishA': { 
+    label: '瀹屾垚淇″彿A',
+    description: '瀹屾垚1A'
+  },
+  'finishB': { 
+    label: '瀹屾垚淇″彿B',
+    description: '瀹屾垚1B'
+  },
+  'state': { 
+    label: '璁惧鐘舵��',
+    description: '浠诲姟鐘舵�� : 0锛屾棤锛�1锛氬惛鐗囧畬鎴�/涓婅溅瀹屾垚'
+  },
+  'onePosition': { 
+    label: '涓�鍙蜂綅缃�',
+    description: '绌挎杞︿綅缃�'
+  },
+  'twoPosition': { 
+    label: '浜屽彿浣嶇疆',
+    description: '鍚哥洏浣嶇疆'
+  },
+  'mesSend': { 
+    label: 'MES鍙戦��',
+    description: '鍚姩瀛� 1鍚姩 瀹屾垚鍚� 鏃犳儏姹傛椂娓�0'
+  },
+  'mesConfirm': { 
+    label: 'MES纭',
+    description: '纭瀛�'
+  },
+  'start': { 
+    label: '璧峰浣嶇疆',
+    description: '璧峰宸ヤ綅'
+  },
+  'target': { 
+    label: '鐩爣浣嶇疆',
+    description: '鐩爣宸ヤ綅'
+  },
+  'mesGlassCount': { 
+    label: '鐜荤拑鏁伴噺',
+    description: '浠诲姟鏁伴噺'
+  },
+  'rawMargin1': { 
+    label: '鍘熺墖杈硅窛1',
+    description: '鍘熺墖淇℃伅'
+  },
+  'mesWidth1': { 
+    label: '鐜荤拑瀹藉害1',
+    description: '鍘熺墖淇℃伅'
+  },
+  'mesHeight1': { 
+    label: '鐜荤拑楂樺害1',
+    description: '鍘熺墖淇℃伅'
+  },
+  'rawThickness1': { 
+    label: '鐜荤拑鍘氬害1',
+    description: '鍘熺墖淇℃伅'
+  },
+  'rawMargin2': { 
+    label: '鍘熺墖杈硅窛2',
+    description: '鍘熺墖淇℃伅'
+  },
+  'mesWidth2': { 
+    label: '鐜荤拑瀹藉害2',
+    description: '鍘熺墖淇℃伅'
+  },
+  'mesHeight2': { 
+    label: '鐜荤拑楂樺害2',
+    description: '鍘熺墖淇℃伅'
+  },
+  'rawThickness2': { 
+    label: '鐜荤拑鍘氬害2',
+    description: '鍘熺墖淇℃伅'
+  },
+  'alarmInfo': { 
+    label: '鎶ヨ淇℃伅',
+    description: '鎶ヨ淇″彿'
+  }
+};
+
+// 鍒囧壊妯″潡瀛楁鏄犲皠
+export const cuttingModuleFields = {
+  'onlineState': { 
+    label: '鑱旀満鐘舵��',
+    description: '宸ヤ綔妯″紡锛�1mes妯″紡 0鍗曟満妯″紡'
+  },
+  'plcRequest': { 
+    label: 'PLC璇锋眰',
+    description: '浠诲姟璇锋眰 0鏃犳儏姹� 1鏈夎姹�'
+  },
+  'plcReport': { 
+    label: 'PLC姹囨姤',
+    description: '浠诲姟姹囨姤 0鏃犳眹鎶� 1姹囨姤 3鏈畬鎴�'
+  },
+  'finishA': { 
+    label: '瀹屾垚淇″彿A',
+    description: '瀹屾垚1A'
+  },
+  'finishB': { 
+    label: '瀹屾垚淇″彿B',
+    description: '瀹屾垚1B'
+  },
+  'state': { 
+    label: '璁惧鐘舵��',
+    description: '浠诲姟鐘舵�� : 0锛屾棤锛�1锛氬惛鐗囧畬鎴�/涓婅溅瀹屾垚'
+  },
+  'mesSend': { 
+    label: 'MES鍙戦��',
+    description: '鍚姩瀛� 1鍚姩 瀹屾垚鍚� 鏃犳儏姹傛椂娓�0'
+  },
+  'mesConfirm': { 
+    label: 'MES纭',
+    description: '纭瀛�'
+  },
+  'start': { 
+    label: '璧峰浣嶇疆',
+    description: '璧峰宸ヤ綅'
+  },
+  'target': { 
+    label: '鐩爣浣嶇疆',
+    description: '鐩爣宸ヤ綅'
+  },
+  'mesGlassCount': { 
+    label: '鐜荤拑鏁伴噺',
+    description: '浠诲姟鏁伴噺'
+  },
+  'rawMargin1': { 
+    label: '鍘熺墖杈硅窛1',
+    description: '鍘熺墖淇℃伅'
+  },
+  'mesWidth1': { 
+    label: '鐜荤拑瀹藉害1',
+    description: '鍘熺墖淇℃伅'
+  },
+  'mesHeight1': { 
+    label: '鐜荤拑楂樺害1',
+    description: '鍘熺墖淇℃伅'
+  },
+  'rawThickness1': { 
+    label: '鐜荤拑鍘氬害1',
+    description: '鍘熺墖淇℃伅'
+  },
+  'rawMargin2': { 
+    label: '鍘熺墖杈硅窛2',
+    description: '鍘熺墖淇℃伅'
+  },
+  'mesWidth2': { 
+    label: '鐜荤拑瀹藉害2',
+    description: '鍘熺墖淇℃伅'
+  },
+  'mesHeight2': { 
+    label: '鐜荤拑楂樺害2',
+    description: '鍘熺墖淇℃伅'
+  },
+  'rawThickness2': { 
+    label: '鐜荤拑鍘氬害2',
+    description: '鍘熺墖淇℃伅'
+  },
+  'alarmInfo': { 
+    label: '鎶ヨ淇℃伅',
+    description: '鎶ヨ淇″彿'
+  }
+};
+
+// 閽㈠寲妯″潡瀛楁鏄犲皠
+export const temperingModuleFields = {
+  'onlineState': { 
+    label: '鑱旀満鐘舵��',
+    description: '宸ヤ綔妯″紡锛�1mes妯″紡 0鍗曟満妯″紡'
+  },
+  'plcRequest': { 
+    label: 'PLC璇锋眰',
+    description: '浠诲姟璇锋眰 0鏃犳儏姹� 1鏈夎姹�'
+  },
+  'plcReport': { 
+    label: 'PLC姹囨姤',
+    description: '浠诲姟姹囨姤 0鏃犳眹鎶� 1姹囨姤 3鏈畬鎴�'
+  },
+  'finishA': { 
+    label: '瀹屾垚淇″彿A',
+    description: '瀹屾垚1A'
+  },
+  'finishB': { 
+    label: '瀹屾垚淇″彿B',
+    description: '瀹屾垚1B'
+  },
+  'state': { 
+    label: '璁惧鐘舵��',
+    description: '浠诲姟鐘舵�� : 0锛屾棤锛�1锛氬惛鐗囧畬鎴�/涓婅溅瀹屾垚'
+  },
+  'mesSend': { 
+    label: 'MES鍙戦��',
+    description: '鍚姩瀛� 1鍚姩 瀹屾垚鍚� 鏃犳儏姹傛椂娓�0'
+  },
+  'mesConfirm': { 
+    label: 'MES纭',
+    description: '纭瀛�'
+  },
+  'start': { 
+    label: '璧峰浣嶇疆',
+    description: '璧峰宸ヤ綅'
+  },
+  'target': { 
+    label: '鐩爣浣嶇疆',
+    description: '鐩爣宸ヤ綅'
+  },
+  'mesGlassCount': { 
+    label: '鐜荤拑鏁伴噺',
+    description: '浠诲姟鏁伴噺'
+  },
+  'rawMargin1': { 
+    label: '鍘熺墖杈硅窛1',
+    description: '鍘熺墖淇℃伅'
+  },
+  'mesWidth1': { 
+    label: '鐜荤拑瀹藉害1',
+    description: '鍘熺墖淇℃伅'
+  },
+  'mesHeight1': { 
+    label: '鐜荤拑楂樺害1',
+    description: '鍘熺墖淇℃伅'
+  },
+  'rawThickness1': { 
+    label: '鐜荤拑鍘氬害1',
+    description: '鍘熺墖淇℃伅'
+  },
+  'rawMargin2': { 
+    label: '鍘熺墖杈硅窛2',
+    description: '鍘熺墖淇℃伅'
+  },
+  'mesWidth2': { 
+    label: '鐜荤拑瀹藉害2',
+    description: '鍘熺墖淇℃伅'
+  },
+  'mesHeight2': { 
+    label: '鐜荤拑楂樺害2',
+    description: '鍘熺墖淇℃伅'
+  },
+  'rawThickness2': { 
+    label: '鐜荤拑鍘氬害2',
+    description: '鍘熺墖淇℃伅'
+  },
+  'alarmInfo': { 
+    label: '鎶ヨ淇℃伅',
+    description: '鎶ヨ淇″彿'
+  }
+};
+
+// 澶х悊鐗囩妯″潡瀛楁鏄犲皠锛堢珛寮忕悊鐗囷級
+export const verticalModuleFields = {
+  'onlineState': { 
+    label: '鑱旀満鐘舵��',
+    description: 'FALSE锛氬崟鏈猴紱TRUE锛氳仈鏈�'
+  },
+  'plcRequest': { 
+    label: 'PLC璇锋眰瀛�',
+    description: '0锛氭棤锛�1锛氳姹�'
+  },
+  'plcReport': { 
+    label: 'PLC姹囨姤瀛�',
+    description: '0锛氭棤锛�1锛氭眹鎶�'
+  },
+  'state1': { 
+    label: '01鐘舵��',
+    description: '0锛氱┖闂诧細 1涓婅溅瀹屾垚 2浠诲姟瀹屾垚 3鏈畬鎴� 8鐮存崯'
+  },
+  'state2': { 
+    label: '02鐘舵��',
+    description: '0锛氱┖闂诧細 1涓婅溅瀹屾垚 2浠诲姟瀹屾垚 3鏈畬鎴� 8鐮存崯'
+  },
+  'state3': { 
+    label: '03鐘舵��',
+    description: '0锛氱┖闂诧細 1涓婅溅瀹屾垚 2浠诲姟瀹屾垚 3鏈畬鎴� 8鐮存崯'
+  },
+  'state4': { 
+    label: '04鐘舵��',
+    description: '0锛氱┖闂诧細 1涓婅溅瀹屾垚 2浠诲姟瀹屾垚 3鏈畬鎴� 8鐮存崯'
+  },
+  'state5': { 
+    label: '05鐘舵��',
+    description: '0锛氱┖闂诧細 1涓婅溅瀹屾垚 2浠诲姟瀹屾垚 3鏈畬鎴� 8鐮存崯'
+  },
+  'state6': { 
+    label: '06鐘舵��',
+    description: '0锛氱┖闂诧細 1涓婅溅瀹屾垚 2浠诲姟瀹屾垚 3鏈畬鎴� 8鐮存崯'
+  },
+  'mesSend': { 
+    label: 'MES鍙戦�佸瓧',
+    description: '0锛氭棤锛�1锛氬凡鍙戦��'
+  },
+  'mesConfirm': { 
+    label: 'MES纭瀛�',
+    description: '0锛氭棤锛�1锛氬凡纭'
+  },
+  'trainInfo': { 
+    label: '杞︽淇℃伅',
+    description: '杞︽淇℃伅'
+  },
+  'mesGlassId1': { 
+    label: '鐜荤拑id01',
+    description: '鐜荤拑ID 01'
+  },
+  'mesGlassId2': { 
+    label: '鐜荤拑id02',
+    description: '鐜荤拑ID 02'
+  },
+  'mesGlassId3': { 
+    label: '鐜荤拑id03',
+    description: '鐜荤拑ID 03'
+  },
+  'mesGlassId4': { 
+    label: '鐜荤拑id04',
+    description: '鐜荤拑ID 04'
+  },
+  'mesGlassId5': { 
+    label: '鐜荤拑id05',
+    description: '鐜荤拑ID 05'
+  },
+  'mesGlassId6': { 
+    label: '鐜荤拑id06',
+    description: '鐜荤拑ID 06'
+  },
+  'start1': { 
+    label: '璧峰01',
+    description: '璧峰浣嶇疆 01'
+  },
+  'start2': { 
+    label: '璧峰02',
+    description: '璧峰浣嶇疆 02'
+  },
+  'start3': { 
+    label: '璧峰03',
+    description: '璧峰浣嶇疆 03'
+  },
+  'start4': { 
+    label: '璧峰04',
+    description: '璧峰浣嶇疆 04'
+  },
+  'start5': { 
+    label: '璧峰05',
+    description: '璧峰浣嶇疆 05'
+  },
+  'start6': { 
+    label: '璧峰06',
+    description: '璧峰浣嶇疆 06'
+  },
+  'target1': { 
+    label: '鐩爣01',
+    description: '鐩爣浣嶇疆 01'
+  },
+  'target2': { 
+    label: '鐩爣02',
+    description: '鐩爣浣嶇疆 02'
+  },
+  'target3': { 
+    label: '鐩爣03',
+    description: '鐩爣浣嶇疆 03'
+  },
+  'target4': { 
+    label: '鐩爣04',
+    description: '鐩爣浣嶇疆 04'
+  },
+  'target5': { 
+    label: '鐩爣05',
+    description: '鐩爣浣嶇疆 05'
+  },
+  'target6': { 
+    label: '鐩爣06',
+    description: '鐩爣浣嶇疆 06'
+  },
+  'mesWidth1': { 
+    label: '闀胯竟01',
+    description: '鐜荤拑闀胯竟01 鍗曚綅mm*10'
+  },
+  'mesWidth2': { 
+    label: '闀胯竟02',
+    description: '鐜荤拑闀胯竟02 鍗曚綅mm*10'
+  },
+  'mesWidth3': { 
+    label: '闀胯竟03',
+    description: '鐜荤拑闀胯竟03 鍗曚綅mm*10'
+  },
+  'mesWidth4': { 
+    label: '闀胯竟04',
+    description: '鐜荤拑闀胯竟04 鍗曚綅mm*10'
+  },
+  'mesWidth5': { 
+    label: '闀胯竟05',
+    description: '鐜荤拑闀胯竟05 鍗曚綅mm*10'
+  },
+  'mesWidth6': { 
+    label: '闀胯竟06',
+    description: '鐜荤拑闀胯竟06 鍗曚綅mm*10'
+  },
+  'mesHeight1': { 
+    label: '鐭竟01',
+    description: '鐜荤拑鐭竟01 鍗曚綅mm*10'
+  },
+  'mesHeight2': { 
+    label: '鐭竟02',
+    description: '鐜荤拑鐭竟02 鍗曚綅mm*10'
+  },
+  'mesHeight3': { 
+    label: '鐭竟03',
+    description: '鐜荤拑鐭竟03 鍗曚綅mm*10'
+  },
+  'mesHeight4': { 
+    label: '鐭竟04',
+    description: '鐜荤拑鐭竟04 鍗曚綅mm*10'
+  },
+  'mesHeight5': { 
+    label: '鐭竟05',
+    description: '鐜荤拑鐭竟05 鍗曚綅mm*10'
+  },
+  'mesHeight6': { 
+    label: '鐭竟06',
+    description: '鐜荤拑鐭竟06 鍗曚綅mm*10'
+  },
+  'mesThickness1': { 
+    label: '鍘�01',
+    description: '鐜荤拑鍘氬害01 鍗曚綅mm*10'
+  },
+  'mesThickness2': { 
+    label: '鍘�02',
+    description: '鐜荤拑鍘氬害02 鍗曚綅mm*10'
+  },
+  'mesThickness3': { 
+    label: '鍘�03',
+    description: '鐜荤拑鍘氬害03 鍗曚綅mm*10'
+  },
+  'mesThickness4': { 
+    label: '鍘�04',
+    description: '鐜荤拑鍘氬害04 鍗曚綅mm*10'
+  },
+  'mesThickness5': { 
+    label: '鍘�05',
+    description: '鐜荤拑鍘氬害05 鍗曚綅mm*10'
+  },
+  'mesThickness6': { 
+    label: '鍘�06',
+    description: '鐜荤拑鍘氬害06 鍗曚綅mm*10'
+  },
+  'edgeDistance1': { 
+    label: '闈犺竟璺�01',
+    description: '闈犺竟璺�01 鍗曚綅mm'
+  },
+  'edgeDistance2': { 
+    label: '闈犺竟璺�02',
+    description: '闈犺竟璺�02 鍗曚綅mm'
+  },
+  'edgeDistance3': { 
+    label: '闈犺竟璺�03',
+    description: '闈犺竟璺�03 鍗曚綅mm'
+  },
+  'edgeDistance4': { 
+    label: '闈犺竟璺�04',
+    description: '闈犺竟璺�04 鍗曚綅mm'
+  },
+  'edgeDistance5': { 
+    label: '闈犺竟璺�05',
+    description: '闈犺竟璺�05 鍗曚綅mm'
+  },
+  'edgeDistance6': { 
+    label: '闈犺竟璺�06',
+    description: '闈犺竟璺�06 鍗曚綅mm'
+  },
+  'targetEdgeDistance1': { 
+    label: '鐩爣闈犺竟璺�01',
+    description: '鐩爣闈犺竟璺�01 鍗曚綅mm'
+  },
+  'targetEdgeDistance2': { 
+    label: '鐩爣闈犺竟璺�02',
+    description: '鐩爣闈犺竟璺�02 鍗曚綅mm'
+  },
+  'targetEdgeDistance3': { 
+    label: '鐩爣闈犺竟璺�03',
+    description: '鐩爣闈犺竟璺�03 鍗曚綅mm'
+  },
+  'targetEdgeDistance4': { 
+    label: '鐩爣闈犺竟璺�04',
+    description: '鐩爣闈犺竟璺�04 鍗曚綅mm'
+  },
+  'targetEdgeDistance5': { 
+    label: '鐩爣闈犺竟璺�05',
+    description: '鐩爣闈犺竟璺�05 鍗曚綅mm'
+  },
+  'targetEdgeDistance6': { 
+    label: '鐩爣闈犺竟璺�06',
+    description: '鐩爣闈犺竟璺�06 鍗曚綅mm'
+  },
+  'alarmInfo': { 
+    label: '鎶ヨ淇″彿',
+    description: '鎶ヨ淇″彿: 1:褰撳墠澶ц溅杩涚墖鐜荤拑鏁伴噺涓巑es璇诲彇鍒扮殑鏁伴噺涓嶅尮閰�; 2:鍚屼竴杞﹁繘鐗囩幓鐠冨瓨鍦ㄧ浉鍚�; 4:鐞嗙墖绗煎瓨鍦ㄧ浉鍚岀殑杩涚墖鐜荤拑; 8:杩涚墖浠诲姟鏁伴噺涓庣郴缁熸煡璇㈠埌鐨勭幓鐠冩暟閲忎笉鍖归厤; 16:绗煎唴鏍煎瓙鍓╀綑鏁伴噺涓嶈冻; 32:绗煎唴鏍煎瓙鍓╀綑XX鐗囬璀�; 64:鐩撮�氱墖鍙板瓨鍦ㄧ幓鐠冿紝鏃犳硶缁х画鐩撮��'
+  }
+};
+
+// 鑾峰彇鎸囧畾妯″潡鐨勫瓧娈垫槧灏�
+export const getModuleFields = (moduleType) => {
+  switch (moduleType) {
+    case '浠撳偍':
+      return storageModuleFields;
+    case '涓婄墖':
+      return upperModuleFields;
+    case '鍒囧壊':
+      return cuttingModuleFields;
+    case '閽㈠寲':
+      return temperingModuleFields;
+    case '澶х悊鐗�':
+      return verticalModuleFields;
+    // 鍙互娣诲姞鏇村妯″潡
+    default:
+      return storageModuleFields; // 榛樿杩斿洖浠撳偍妯″潡
+  }
+};
+
+// 鑾峰彇瀛楁鐨勬爣绛�
+export const getFieldLabel = (moduleType, fieldName) => {
+  const moduleFields = getModuleFields(moduleType);
+  return moduleFields[fieldName]?.label || fieldName;
+};
+
+// 鑾峰彇瀛楁鐨勬弿杩�
+export const getFieldDescription = (moduleType, fieldName) => {
+  const moduleFields = getModuleFields(moduleType);
+  return moduleFields[fieldName]?.description || '';
+};
\ No newline at end of file

--
Gitblit v1.8.0