From 73d2ddaa437c174423409667650355632e4a5bbf Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期一, 24 二月 2025 10:22:13 +0800
Subject: [PATCH] #新增 1. 新增数据字典管理功能 2. 新增字典数据集管理功能 3. 删除库存,库存信息管理功能

---
 rsf-admin/src/page/dictData/DictDataPanel.jsx |   48 +++++++++++++++---------------------------------
 1 files changed, 15 insertions(+), 33 deletions(-)

diff --git a/rsf-admin/src/page/stock/StockPanel.jsx b/rsf-admin/src/page/dictData/DictDataPanel.jsx
similarity index 64%
rename from rsf-admin/src/page/stock/StockPanel.jsx
rename to rsf-admin/src/page/dictData/DictDataPanel.jsx
index d018da4..557a79c 100644
--- a/rsf-admin/src/page/stock/StockPanel.jsx
+++ b/rsf-admin/src/page/dictData/DictDataPanel.jsx
@@ -7,7 +7,7 @@
 import PanelTypography from "../components/PanelTypography";
 import * as Common from '@/utils/common'
 
-const StockPanel = () => {
+const DictDataPanel = () => {
     const record = useRecordContext();
     if (!record) return null;
     const translate = useTranslate();
@@ -23,7 +23,7 @@
                                 overflow: 'hidden',
                                 textOverflow: 'ellipsis',
                             }}>
-                                {Common.camelToPascalWithSpaces(translate('table.field.stock.id'))}: {record.id}
+                                {Common.camelToPascalWithSpaces(translate('table.field.dictData.id'))}: {record.id}
                             </Typography>
                             {/*  inherit, primary, secondary, textPrimary, textSecondary, error */}
                             <Typography variant="h6" gutterBottom align="right" >
@@ -42,56 +42,38 @@
                     <Grid container spacing={2}>
                         <Grid item xs={6}>
                             <PanelTypography
-                                title="table.field.stock.asnOrder" 
-                                property={record.asnOrder}
+                                title="table.field.dictData.dictTypeId" 
+                                property={record.dictTypeId$}
                             />
                         </Grid>
                         <Grid item xs={6}>
                             <PanelTypography
-                                title="table.field.stock.erpToken" 
-                                property={record.erpToken}
+                                title="table.field.dictData.dictTypeCode" 
+                                property={record.dictTypeCode}
                             />
                         </Grid>
                         <Grid item xs={6}>
                             <PanelTypography
-                                title="table.field.stock.erpOrder" 
-                                property={record.erpOrder}
+                                title="table.field.dictData.value" 
+                                property={record.value}
                             />
                         </Grid>
                         <Grid item xs={6}>
                             <PanelTypography
-                                title="table.field.stock.erpStkAdr" 
-                                property={record.erpStkAdr}
+                                title="table.field.dictData.label" 
+                                property={record.label}
                             />
                         </Grid>
                         <Grid item xs={6}>
                             <PanelTypography
-                                title="table.field.stock.contractId" 
-                                property={record.contractId$}
+                                title="table.field.dictData.sort" 
+                                property={record.sort}
                             />
                         </Grid>
                         <Grid item xs={6}>
                             <PanelTypography
-                                title="table.field.stock.lockReason" 
-                                property={record.lockReason}
-                            />
-                        </Grid>
-                        <Grid item xs={6}>
-                            <PanelTypography
-                                title="table.field.stock.lockStatus" 
-                                property={record.lockStatus}
-                            />
-                        </Grid>
-                        <Grid item xs={6}>
-                            <PanelTypography
-                                title="table.field.stock.locker" 
-                                property={record.locker}
-                            />
-                        </Grid>
-                        <Grid item xs={6}>
-                            <PanelTypography
-                                title="table.field.stock.lockedTime" 
-                                property={record.lockedTime$}
+                                title="table.field.dictData.color" 
+                                property={record.color}
                             />
                         </Grid>
 
@@ -102,4 +84,4 @@
     );
 };
 
-export default StockPanel;
+export default DictDataPanel;

--
Gitblit v1.9.1