| | |
| | | import { BooleanField, DateField, NumberField, ReferenceField, Show, SimpleShowLayout, TextField ,DateInput, |
| | | SelectInput,required,useTranslate, |
| | | useRecordContext,} from 'react-admin'; |
| | | import { Stack, Grid, Box, Typography, Card } from '@mui/material'; |
| | | import { EDIT_MODE, REFERENCE_INPUT_PAGESIZE } from '@/config/setting'; |
| | | import EditBaseAside from "../../components/EditBaseAside"; |
| | | import CustomerTopToolBar from "../../components/EditTopToolBar"; |
| | | import AsnOrderItemLogList from "./AsnOrderItemLogList" |
| | | import { Stack, Grid, Box, Typography, Card } from '@mui/material'; |
| | | import { EDIT_MODE, REFERENCE_INPUT_PAGESIZE } from '@/config/setting'; |
| | | import EditBaseAside from "../../components/EditBaseAside"; |
| | | import CustomerTopToolBar from "../../components/EditTopToolBar"; |
| | | import AsnOrderItemLogList from "./AsnOrderItemLogList"; |
| | | |
| | | const AsnOrderLogDetailWithItems = () => { |
| | | const record = useRecordContext(); |
| | | const translate = useTranslate(); |
| | | if (!record?.id) return null; |
| | | return ( |
| | | <> |
| | | <Grid item xs={24} md={16} sx={{ marginTop: '1em', width: '100%' }}> |
| | | <Typography variant="h6" gutterBottom> |
| | | {translate('common.edit.title.common')} |
| | | </Typography> |
| | | </Grid> |
| | | <AsnOrderItemLogList logId={record.id} /> |
| | | </> |
| | | ); |
| | | }; |
| | | |
| | | const Aa = () =>{ |
| | | const translate = useTranslate(); |
| | |
| | | <SimpleShowLayout |
| | | shouldUnregister |
| | | warnWhenUnsavedChanges |
| | | |
| | | mode="onTouched" |
| | | defaultValues={{}} |
| | | > |
| | |
| | | <DateField source="arrTime" label="type" showTime/> |
| | | </Box> |
| | | </Grid> |
| | | <Grid item display="flex" gap={1} minWidth={150}> |
| | | {/* 质检上报状态 |
| | | <Grid item display="flex" gap={1} minWidth={150}> |
| | | <Box flexGrow={1}> |
| | | <Typography variant="body2" sx={{fontSize: 20}}> |
| | | {translate('table.field.asnOrderLog.ntyStatus')} |
| | | </Typography> |
| | | <TextField source="ntyStatus$" label="type"/> |
| | | </Box> |
| | | </Grid> |
| | | </Grid> |
| | | */} |
| | | </Stack> |
| | | </Grid> |
| | | </Grid> |
| | | |
| | | <AsnOrderLogDetailWithItems /> |
| | | </SimpleShowLayout> |
| | | </Show> |
| | | <Grid item xs={24} md={16} sx={{ marginTop: '1em' }}> |
| | | <Typography variant="h6" gutterBottom > |
| | | {translate('common.edit.title.common')} |
| | | </Typography> |
| | | </Grid> |
| | | <AsnOrderItemLogList /> |
| | | </> |
| | | |
| | | ); |
| | | } |
| | | |