From 24bee1a669c3f01f4c3ce7c6f4f4e2e37fe3dfe2 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期六, 10 一月 2026 08:34:40 +0800
Subject: [PATCH] #application-dev
---
rsf-admin/src/page/basicInfo/warehouse/WarehouseList.jsx | 104 ++++++++++++++++++++++++++-------------------------
1 files changed, 53 insertions(+), 51 deletions(-)
diff --git a/rsf-admin/src/page/basicInfo/warehouse/WarehouseList.jsx b/rsf-admin/src/page/basicInfo/warehouse/WarehouseList.jsx
index 233fce1..a72b962 100644
--- a/rsf-admin/src/page/basicInfo/warehouse/WarehouseList.jsx
+++ b/rsf-admin/src/page/basicInfo/warehouse/WarehouseList.jsx
@@ -44,50 +44,56 @@
import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting';
import * as Common from '@/utils/common';
-const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({
- '& .css-1vooibu-MuiSvgIcon-root': {
- height: '.9em'
- },
- '& .RaDatagrid-row': {
- cursor: 'auto'
- },
- '& .column-name': {
- },
- '& .opt': {
- width: 200
- },
-}));
+// const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({
+// '& .css-1vooibu-MuiSvgIcon-root': {
+// height: '.9em'
+// },
+// '& .RaDatagrid-row': {
+// cursor: 'auto'
+// },
+// '& .column-name': {
+// },
+// '& .opt': {
+// width: 200
+// },
+// '& .RaDatagrid-cell': {
+// whiteSpace: 'nowrap',
+// overflow: 'visible',
+// textOverflow: 'unset',
+// maxWidth: 'none'
+// },
+// '& .MuiTableCell-root': {
+// whiteSpace: 'nowrap',
+// overflow: 'visible',
+// textOverflow: 'unset'
+// }
+// }));
const filters = [
- <SearchInput source="condition" alwaysOn />,
- <DateInput label='common.time.after' source="timeStart" alwaysOn />,
- <DateInput label='common.time.before' source="timeEnd" alwaysOn />,
-
- <TextInput source="name" label="table.field.warehouse.name" />,
- <TextInput source="code" label="table.field.warehouse.code" />,
+ <SearchInput source="condition" placeholder="鎼滅储浠撳簱鍚嶇О" alwaysOn />,
<TextInput source="factory" label="table.field.warehouse.factory" />,
- <TextInput source="address" label="table.field.warehouse.address" />,
- <TextInput source="longitude" label="table.field.warehouse.longitude" />,
- <TextInput source="latgitude" label="table.field.warehouse.latgitude" />,
- <NumberInput source="length" label="table.field.warehouse.length" />,
- <NumberInput source="width" label="table.field.warehouse.width" />,
- <NumberInput source="height" label="table.field.warehouse.height" />,
-
- <TextInput label="common.field.memo" source="memo" />,
- <SelectInput
- label="common.field.status"
- source="status"
- choices={[
- { id: '1', name: 'common.enums.statusTrue' },
- { id: '0', name: 'common.enums.statusFalse' },
- ]}
- resettable
- />,
+ <TextInput source="code" label="table.field.warehouse.code" />,
+ <TextInput source="name" label="table.field.warehouse.name" />,
+ // <TextInput source="address" label="table.field.warehouse.address" />,
+ // <TextInput source="longitude" label="table.field.warehouse.longitude" />,
+ // <TextInput source="latgitude" label="table.field.warehouse.latgitude" />,
+ // <NumberInput source="length" label="table.field.warehouse.length" />,
+ // <NumberInput source="width" label="table.field.warehouse.width" />,
+ // <NumberInput source="height" label="table.field.warehouse.height" />,
+ // <TextInput label="common.field.memo" source="memo" />,
+ // <SelectInput
+ // label="common.field.status"
+ // source="status"
+ // choices={[
+ // { id: '1', name: 'common.enums.statusTrue' },
+ // { id: '0', name: 'common.enums.statusFalse' },
+ // ]}
+ // resettable
+ // />,
]
const WarehouseList = () => {
const translate = useTranslate();
-
const [createDialog, setCreateDialog] = useState(false);
const [drawerVal, setDrawerVal] = useState(false);
@@ -100,7 +106,7 @@
theme.transitions.create(['all'], {
duration: theme.transitions.duration.enteringScreen,
}),
- marginRight: !!drawerVal ? `${PAGE_DRAWER_WIDTH}px` : 0,
+ marginRight: drawerVal ? `${PAGE_DRAWER_WIDTH}px` : 0,
}}
title={"menu.warehouse"}
empty={<EmptyData onClick={() => { setCreateDialog(true) }} />}
@@ -114,27 +120,24 @@
<MyExportButton />
</TopToolbar>
)}
- perPage={DEFAULT_PAGE_SIZE}
+ perPage={DEFAULT_PAGE_SIZE}
>
- <StyledDatagrid
+ <DatagridConfigurable
preferenceKey='warehouse'
bulkActionButtons={() => <BulkDeleteButton mutationMode={OPERATE_MODE} />}
- rowClick={(id, resource, record) => false}
- expand={() => <WarehousePanel />}
- expandSingle={true}
- omit={['id', 'createTime', 'createBy', 'memo']}
+ rowClick={(id, resource, record) => false}
+ omit={['id', 'updateTime', 'updateBy', 'createTime', 'createBy', 'longitude', 'latgitude', 'length', 'width', 'height']}
>
<NumberField source="id" />
- <TextField source="name" label="table.field.warehouse.name" />
- <TextField source="code" label="table.field.warehouse.code" />
<TextField source="factory" label="table.field.warehouse.factory" />
+ <TextField source="code" label="table.field.warehouse.code" />
+ <TextField source="name" label="table.field.warehouse.name" />
<TextField source="address" label="table.field.warehouse.address" />
- <TextField source="longitude" label="table.field.warehouse.longitude" />
+ {/* <TextField source="longitude" label="table.field.warehouse.longitude" />
<TextField source="latgitude" label="table.field.warehouse.latgitude" />
<NumberField source="length" label="table.field.warehouse.length" />
<NumberField source="width" label="table.field.warehouse.width" />
- <NumberField source="height" label="table.field.warehouse.height" />
-
+ <NumberField source="height" label="table.field.warehouse.height" /> */}
<ReferenceField source="updateBy" label="common.field.updateBy" reference="user" link={false} sortable={false}>
<TextField source="nickname" />
</ReferenceField>
@@ -143,13 +146,12 @@
<TextField source="nickname" />
</ReferenceField>
<DateField source="createTime" label="common.field.createTime" showTime />
- <BooleanField source="statusBool" label="common.field.status" sortable={false} />
<TextField source="memo" label="common.field.memo" sortable={false} />
<WrapperField cellClassName="opt" label="common.field.opt">
<EditButton sx={{ padding: '1px', fontSize: '.75rem' }} />
<DeleteButton sx={{ padding: '1px', fontSize: '.75rem' }} mutationMode={OPERATE_MODE} />
</WrapperField>
- </StyledDatagrid>
+ </DatagridConfigurable>
</List>
<WarehouseCreate
open={createDialog}
--
Gitblit v1.9.1