From b6516d781857f47bad5b4e6ef5f6bd4306dfe525 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期二, 20 十月 2026 17:28:05 +0800
Subject: [PATCH] feat(costStatistics): 新增委托下单类型的数据格式化支持
---
src/utils/index.js | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/utils/index.js b/src/utils/index.js
index ea6ec87..8b109c5 100644
--- a/src/utils/index.js
+++ b/src/utils/index.js
@@ -387,4 +387,15 @@
export function isNumberStr(str) {
return /^[+-]?(0|([1-9]\d*))(\.\d+)?$/g.test(str)
}
+
+// 淇瀛楀吀缁撴瀯锛氬悗绔瓧鍏搁」 鈫� { value, label, type }
+export function dictToValue(arr) {
+ return arr.map((m) => {
+ return {
+ value: m.dictValue,
+ label: m.dictLabel,
+ type: m.listClass
+ }
+ })
+}
--
Gitblit v1.9.3