|  |  |  | 
|---|
|  |  |  | Button, | 
|---|
|  |  |  | useList, | 
|---|
|  |  |  | } from 'react-admin'; | 
|---|
|  |  |  | import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting'; | 
|---|
|  |  |  | import { Box, Typography, Card, Stack } from '@mui/material'; | 
|---|
|  |  |  | import { styled } from '@mui/material/styles'; | 
|---|
|  |  |  | import LocCreate from "./LocCreate"; | 
|---|
|  |  |  | import BindModal from "./BindModal"; | 
|---|
|  |  |  | import EmptyData from "../../components/EmptyData"; | 
|---|
|  |  |  | import DynamicField from "../../components/DynamicField"; | 
|---|
|  |  |  | import MyCreateButton from "../../components/MyCreateButton"; | 
|---|
|  |  |  | import MyExportButton from '../../components/MyExportButton'; | 
|---|
|  |  |  | import DashboardIcon from '@mui/icons-material/Dashboard'; | 
|---|
|  |  |  | import DynamicField from "../../components/DynamicField"; | 
|---|
|  |  |  | import DiscountIcon from '@mui/icons-material/Discount'; | 
|---|
|  |  |  | import PageDrawer from "../../components/PageDrawer"; | 
|---|
|  |  |  | import EmptyData from "../../components/EmptyData"; | 
|---|
|  |  |  | import EditIcon from '@mui/icons-material/Edit'; | 
|---|
|  |  |  | import LinkIcon from '@mui/icons-material/Link'; | 
|---|
|  |  |  | import { styled } from '@mui/material/styles'; | 
|---|
|  |  |  | import SubzoneModal from './SubzoneModal'; | 
|---|
|  |  |  | import LocListAside from "./LocListAside"; | 
|---|
|  |  |  | import InitButton from './InitButton'; | 
|---|
|  |  |  | import BatchModal from './BatchModal'; | 
|---|
|  |  |  | import SubzoneModal from './SubzoneModal'; | 
|---|
|  |  |  | import PageDrawer from "../../components/PageDrawer"; | 
|---|
|  |  |  | import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting'; | 
|---|
|  |  |  | import DashboardIcon from '@mui/icons-material/Dashboard'; | 
|---|
|  |  |  | import EditIcon from '@mui/icons-material/Edit'; | 
|---|
|  |  |  | import request from '@/utils/request'; | 
|---|
|  |  |  | import DiscountIcon from '@mui/icons-material/Discount'; | 
|---|
|  |  |  | import LinkIcon from '@mui/icons-material/Link'; | 
|---|
|  |  |  | import LocCreate from "./LocCreate"; | 
|---|
|  |  |  | import BindModal from "./BindModal"; | 
|---|
|  |  |  | import InitModal from "./InitModal"; | 
|---|
|  |  |  | import LocListAside from "./LocListAside"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ | 
|---|
|  |  |  | '& .css-1vooibu-MuiSvgIcon-root': { | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | })); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const LocList = () => { | 
|---|
|  |  |  | const translate = useTranslate(); | 
|---|
|  |  |  | const notify = useNotify(); | 
|---|
|  |  |  | const refresh = useRefresh(); | 
|---|
|  |  |  | const [createDialog, setCreateDialog] = useState(false); | 
|---|
|  |  |  | const [drawerVal, setDrawerVal] = useState(false); | 
|---|
|  |  |  | const [initDialog, setInitDialog] = useState(false); | 
|---|
|  |  |  | const dicts = JSON.parse(localStorage.getItem('sys_dicts'))?.filter(dict => (dict.dictTypeCode == 'sys_loc_use_stas')) || []; | 
|---|
|  |  |  | const [createDialog, setCreateDialog] = useState(false); | 
|---|
|  |  |  | const [initDialog, setInitDialog] = useState(false); | 
|---|
|  |  |  | const [drawerVal, setDrawerVal] = useState(false); | 
|---|
|  |  |  | const translate = useTranslate(); | 
|---|
|  |  |  | const refresh = useRefresh(); | 
|---|
|  |  |  | const notify = useNotify(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const filters = [ | 
|---|
|  |  |  | <SearchInput source="condition" alwaysOn />, | 
|---|
|  |  |  | 
|---|
|  |  |  | </> | 
|---|
|  |  |  | } | 
|---|
|  |  |  | rowClick={() => false} | 
|---|
|  |  |  | omit={['id', 'createTime', 'createBy', 'memo', 'updateTime', 'updateBy', 'length', 'width', 'height','statusBool','updateBy$','createBy$']} | 
|---|
|  |  |  | omit={['id', 'createTime', 'createBy', 'memo', 'updateTime', 'updateBy', 'length', 'width', 'height', 'statusBool', 'updateBy$', 'createBy$']} | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <NumberField source="id" /> | 
|---|
|  |  |  | <TextField source="code" label="table.field.loc.code" /> | 
|---|
|  |  |  | <NumberField source="warehouseId$" label="table.field.loc.warehouseId" /> | 
|---|
|  |  |  | <NumberField source="areaId$" label="table.field.loc.areaId" /> | 
|---|
|  |  |  | <NumberField source="areaId$" label="table.field.loc.areaId" /> | 
|---|
|  |  |  | <TextField source="typeIds$" label="table.field.loc.type" cellClassName="type" /> | 
|---|
|  |  |  | {/* <TextField source="name" label="table.field.loc.name" /> */} | 
|---|
|  |  |  | {/* <NumberField source="flagLogic" label="table.field.loc.flagLogic" /> | 
|---|