| | |
| | | import request from '@/utils/request'; |
| | | import AsnSelModal from "./AsnSelModal"; |
| | | import InspectModal from "./InspectModal"; |
| | | |
| | | import QlyInspectOpCreate from './QlyInspectOpCreate'; |
| | | const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ |
| | | '& .css-1vooibu-MuiSvgIcon-root': { |
| | | height: '.9em' |
| | |
| | | |
| | | const filters = [ |
| | | <SearchInput source="condition" alwaysOn />, |
| | | |
| | | <TextInput source="code" label="table.field.qlyInspect.code" />, |
| | | <TextInput source="wkType" label="table.field.qlyInspect.wkType" />, |
| | | <NumberInput source="safeQty" label="table.field.qlyInspect.safeQty" />, |
| | | <NumberInput source="dlyQty" label="table.field.qlyInspect.dlyQty" />, |
| | | <NumberInput source="rcptQty" label="table.field.qlyInspect.rcptQty" />, |
| | | <NumberInput source="isptQty" label="table.field.qlyInspect.isptQty" />, |
| | | |
| | | <TextInput label="common.field.memo" source="memo" />, |
| | | <SelectInput |
| | | label="common.field.status" |
| | |
| | | |
| | | const QlyInspectList = () => { |
| | | const translate = useTranslate(); |
| | | |
| | | const [createDialog, setCreateDialog] = useState(false); |
| | | const [drawerVal, setDrawerVal] = useState(false); |
| | | const [opCreateDialog, setOpCreateDialog] = useState(false); |
| | | |
| | | return ( |
| | | <Box display="flex"> |
| | |
| | | actions={( |
| | | <TopToolbar> |
| | | <AsnCreatButton /> |
| | | <MyCreateButton onClick={() => { setOpCreateDialog(true) }} /> |
| | | <FilterButton /> |
| | | <SelectColumnsButton preferenceKey='qlyInspect' /> |
| | | <MyExportButton /> |
| | |
| | | open={createDialog} |
| | | setOpen={setCreateDialog} |
| | | /> |
| | | <QlyInspectOpCreate |
| | | open={opCreateDialog} |
| | | setOpen={setOpCreateDialog} |
| | | /> |
| | | <PageDrawer |
| | | title='QlyInspect Detail' |
| | | drawerVal={drawerVal} |
| | | setDrawerVal={setDrawerVal} |
| | | > |
| | | </PageDrawer> |
| | | |
| | | |
| | | </Box> |
| | | ) |
| | | } |
| | |
| | | const notify = useNotify(); |
| | | const refresh = useRefresh(); |
| | | const [createDialog, setCreateDialog] = useState(false); |
| | | |
| | | const [opCreateDialog, setOpCreateDialog] = useState(false); |
| | | |
| | | return ( |
| | | <> |