|  |  |  | 
|---|
|  |  |  | useList, | 
|---|
|  |  |  | useGetList, | 
|---|
|  |  |  | } from 'react-admin'; | 
|---|
|  |  |  | import PanelTypography from "../../components/PanelTypography"; | 
|---|
|  |  |  | import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting'; | 
|---|
|  |  |  | import * as Common from '@/utils/common' | 
|---|
|  |  |  | import { styled } from '@mui/material/styles'; | 
|---|
|  |  |  | import { width } from "@mui/system"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ | 
|---|
|  |  |  | '& .css-1vooibu-MuiSvgIcon-root': { | 
|---|
|  |  |  | 
|---|
|  |  |  | const WavePanel = () => { | 
|---|
|  |  |  | const record = useRecordContext(); | 
|---|
|  |  |  | if (!record) return null; | 
|---|
|  |  |  | const translate = useTranslate(); | 
|---|
|  |  |  | const [createDialog, setCreateDialog] = useState(false); | 
|---|
|  |  |  | const [drawerVal, setDrawerVal] = useState(false); | 
|---|
|  |  |  | const translate = useTranslate(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const { data, total, isPending, error, refetch, meta } = useGetList('/waveOrderRela', { filter: { waveId: record?.id } }); | 
|---|
|  |  |  | const listContext = useList({ data, isPending }); | 
|---|
|  |  |  | 
|---|
|  |  |  | omit={['id', 'createTime', 'createBy', 'memo', 'taskId', 'orderId', 'orderItemId', 'matnrId']} | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <NumberField source="id" />, | 
|---|
|  |  |  | <TextField source="asnCode" label="table.field.asnOrderItem.asnCode" /> | 
|---|
|  |  |  | <TextField source="asnCode" label="table.field.asnOrderItem.orderCode" /> | 
|---|
|  |  |  | <TextField source="matnrCode" label="table.field.asnOrderItem.matnrCode" /> | 
|---|
|  |  |  | <TextField source="maktx" label="table.field.asnOrderItem.maktx" /> | 
|---|
|  |  |  | <TextField source="splrBatch" label="table.field.asnOrderItem.splrBatch" /> | 
|---|