From 9681ec4b36c4402070482ddfd4ae0ea2de409d8d Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期三, 16 四月 2025 09:58:53 +0800
Subject: [PATCH] #新增  1. 综合订单界面优化  2. 添加库位详细界面

---
 rsf-admin/src/page/orders/stock/OrderList.jsx |   33 +++++++++++++++------------------
 1 files changed, 15 insertions(+), 18 deletions(-)

diff --git a/rsf-admin/src/page/orders/order/OrderList.jsx b/rsf-admin/src/page/orders/stock/OrderList.jsx
similarity index 87%
rename from rsf-admin/src/page/orders/order/OrderList.jsx
rename to rsf-admin/src/page/orders/stock/OrderList.jsx
index c04146a..95bff50 100644
--- a/rsf-admin/src/page/orders/order/OrderList.jsx
+++ b/rsf-admin/src/page/orders/stock/OrderList.jsx
@@ -63,12 +63,12 @@
     <DateInput label='common.time.after' source="timeStart" alwaysOn />,
     <DateInput label='common.time.before' source="timeEnd" alwaysOn />,
 
-    <TextInput source="code" label="table.field.order.code" />,
-    <TextInput source="sourceCode" label="table.field.order.sourceCode" />,
-    <NumberInput source="sourceId" label="table.field.order.sourceId" />,
-    <TextInput source="type" label="table.field.order.type" />,
-    <TextInput source="wkType" label="table.field.order.wkType" />,
-    <NumberInput source="anfme" label="table.field.order.anfme" />,
+    <TextInput source="code" label="table.field.stock.code" />,
+    <TextInput source="sourceCode" label="table.field.stock.sourceCode" />,
+    <NumberInput source="sourceId" label="table.field.stock.sourceId" />,
+    <TextInput source="type" label="table.field.stock.type" />,
+    <TextInput source="wkType" label="table.field.stock.wkType" />,
+    <NumberInput source="anfme" label="table.field.stock.anfme" />,
 
     <TextInput label="common.field.memo" source="memo" />,
     <SelectInput
@@ -84,7 +84,6 @@
 
 const OrderList = () => {
     const translate = useTranslate();
-
     const [createDialog, setCreateDialog] = useState(false);
     const [drawerVal, setDrawerVal] = useState(false);
 
@@ -99,35 +98,33 @@
                         }),
                     marginRight: !!drawerVal ? `${PAGE_DRAWER_WIDTH}px` : 0,
                 }}
-                title={"menu.order"}
+                title={"menu.stock"}
                 empty={<EmptyData onClick={() => { setCreateDialog(true) }} />}
                 filters={filters}
                 sort={{ field: "create_time", order: "desc" }}
                 actions={(
                     <TopToolbar>
                         <FilterButton />
-                        <MyCreateButton onClick={() => { setCreateDialog(true) }} />
-                        <SelectColumnsButton preferenceKey='order' />
+                        <SelectColumnsButton preferenceKey='stock' />
                         <MyExportButton />
                     </TopToolbar>
                 )}
                 perPage={DEFAULT_PAGE_SIZE}
             >
                 <StyledDatagrid
-                    preferenceKey='order'
+                    preferenceKey='stock'
                     bulkActionButtons={() => <BulkDeleteButton mutationMode={OPERATE_MODE} />}
                     rowClick={(id, resource, record) => false}
-                    expand={() => <OrderPanel />}
                     expandSingle={true}
                     omit={['id', 'createTime', 'createBy', 'memo']}
                 >
                     <NumberField source="id" />
-                    <TextField source="code" label="table.field.order.code" />
-                    <TextField source="sourceCode" label="table.field.order.sourceCode" />
-                    <NumberField source="sourceId" label="table.field.order.sourceId" />
-                    <TextField source="type" label="table.field.order.type" />
-                    <TextField source="wkType" label="table.field.order.wkType" />
-                    <NumberField source="anfme" label="table.field.order.anfme" />
+                    <TextField source="code" label="table.field.stock.code" />
+                    <TextField source="sourceCode" label="table.field.stock.sourceCode" />
+                    <NumberField source="sourceId" label="table.field.stock.sourceId" />
+                    <TextField source="type" label="table.field.stock.type" />
+                    <TextField source="wkType" label="table.field.stock.wkType" />
+                    <NumberField source="anfme" label="table.field.stock.anfme" />
 
                     <ReferenceField source="updateBy" label="common.field.updateBy" reference="user" link={false} sortable={false}>
                         <TextField source="nickname" />

--
Gitblit v1.9.1