From cd8b52bdf89a4d1101f72e0ece9f4df22a3d3f7a Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 15 十月 2026 16:03:32 +0800
Subject: [PATCH] feat(mdm): 物料列表隐藏辅单位与销售价列

---
 src/bootstrap.ts |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/src/bootstrap.ts b/src/bootstrap.ts
index 6a97710..1cb5cca 100644
--- a/src/bootstrap.ts
+++ b/src/bootstrap.ts
@@ -7,6 +7,7 @@
 import { initStores } from './packages/stores/src';
 import './packages/styles/src';
 import './packages/styles/src/antd/index.css';
+import './styles/herbal-theme.css';
 
 import { useTitle } from '@vueuse/core';
 
@@ -17,6 +18,9 @@
 import { initSetupVbenForm } from './adapter/form';
 import App from './app.vue';
 import { router } from './router';
+
+import { getCompanyConfig } from '#/api/system/company-config';
+import { applyCompanyConfig } from '#/utils/company-config';
 
 async function bootstrap(namespace: string) {
   // 鍒濆鍖栫粍浠堕�傞厤鍣�
@@ -49,6 +53,17 @@
   // 閰嶇疆 pinia-store
   await initStores(app, { namespace });
 
+  // 鍔犺浇鍏徃鍝佺墝淇℃伅锛堜粠鍚庣锛屽厤鐧诲綍鎺ュ彛锛夛紝鑱斿姩鐧诲綍椤�/鑿滃崟鏍�/缃戦〉鏍囬銆�
+  // 娉細姝ゆ椂 pinia 灏氭湭鍦ㄧ粍浠跺婵�娲伙紝杩欓噷鐢ㄧ函鍑芥暟锛屼笉渚濊禆 store銆�
+  try {
+    const companyConfig = await getCompanyConfig();
+    if (companyConfig) {
+      applyCompanyConfig(companyConfig);
+    }
+  } catch {
+    // 鍚庣涓嶅彲鐢ㄦ垨鏈厤缃紝淇濇寔缂栬瘧鏈熼粯璁�
+  }
+
   // 瀹夎鏉冮檺鎸囦护
   registerAccessDirective(app);
 

--
Gitblit v1.9.3