From d2cb36959b65ece32cec7e2db4d6764f5c788b1d Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期三, 30 四月 2025 08:33:24 +0800
Subject: [PATCH] 1. 波次删除判断是否有子任务列表 2. 任务明细添加字段:执行数量,完成数量, 源单据号,源单据ID

---
 rsf-admin/src/App.jsx |   26 ++++++++++++++++++++------
 1 files changed, 20 insertions(+), 6 deletions(-)

diff --git a/rsf-admin/src/App.jsx b/rsf-admin/src/App.jsx
index 9efadba..60630eb 100644
--- a/rsf-admin/src/App.jsx
+++ b/rsf-admin/src/App.jsx
@@ -30,6 +30,8 @@
 import ResourceContent from "./page/ResourceContent";
 import { getSystemInfo, getSystemDicts, tenants } from "@/api/auth";
 import chineseMessages from 'ra-language-chinese';
+import { createTheme, ThemeProvider } from '@mui/material/styles';
+import { zhCN } from '@mui/material/locale';
 
 const i18nProvider = polyglotI18nProvider(
   (locale) => {
@@ -42,12 +44,24 @@
   [
     { locale: "en", name: "English" },
     { locale: "zh", name: "绠�浣撲腑鏂�" },
+    // { locale: "zh", name: "绠�浣撲腑鏂�" },
+    // { locale: "zh", name: "绠�浣撲腑鏂�" },
+    // { locale: "zh", name: "绠�浣撲腑鏂�" },
   ],
   {
     // msg in console
     allowMissing: true,
   },
 );
+
+
+const theme = createTheme(
+  {
+    palette: { main: '#1976d2' },
+  },
+  zhCN
+)
+
 
 const store = localStorageStore(SPA_VERSION, SPA_NAME);
 
@@ -59,9 +73,6 @@
   useEffect(() => {
     getSystemInfo().then((data) => {
       localStorage.setItem("system", JSON.stringify(data));
-    })
-    getSystemDicts().then(data => {
-      localStorage.setItem('sys_dicts', JSON.stringify(data));
     })
   }, []);
 
@@ -104,9 +115,12 @@
 };
 
 const AppWrapper = () => (
-  <StoreContextProvider value={store}>
-    <App />
-  </StoreContextProvider>
+  <ThemeProvider theme={theme}>
+    <StoreContextProvider value={store}>
+      <App />
+    </StoreContextProvider>
+  </ThemeProvider>
+
 );
 
 export default AppWrapper;
\ No newline at end of file

--
Gitblit v1.9.1