From 9c8d2858d15d87ea0b47e7521061e2b6c3039a43 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 09 十月 2026 14:50:49 +0800
Subject: [PATCH] feat: 仓储/售后物料改用 MDM 选择器;首页隐藏生产模块并恢复质量/设备卡片;产品入库行去除库存记录
---
src/utils/index.ts | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/src/utils/index.ts b/src/utils/index.ts
index 0a4c03c..cdedaf7 100644
--- a/src/utils/index.ts
+++ b/src/utils/index.ts
@@ -30,3 +30,18 @@
});
return index;
};
+
+/**
+ * 鍘绘帀琛ㄦ牸鍒楃殑鍥哄畾锛坒ixed锛夐厤缃�
+ *
+ * 鐢ㄤ簬銆屾煡鐪嬪鎵规槑缁� / 璇︽儏銆嶇瓑鍙鍦烘櫙锛氭鏃惰〃鏍煎鍣ㄨ緝绐勶紝
+ * 鍥哄畾鍒椾細鎸ゅ崰鍙瀹藉害锛屾妸浜у搧鍚嶇О銆佸崟浣嶃�佸娉ㄧ瓑鍒楅伄浣忋��
+ *
+ * @param columns 鍘熷琛ㄦ牸鍒楅厤缃�
+ */
+export function withoutFixedColumns<T>(columns?: null | T[]): T[] {
+ return (columns ?? []).map((column) => {
+ const { fixed: _fixed, ...rest } = column as Recordable<any>;
+ return rest as unknown as T;
+ });
+}
--
Gitblit v1.9.3