| | |
| | | TextField, |
| | | NumberField, |
| | | DateField, |
| | | AutocompleteInput, |
| | | BooleanField, |
| | | TextInput, |
| | | DateInput, |
| | |
| | | }, |
| | | })); |
| | | |
| | | const filters = [ |
| | | <SearchInput source="condition" alwaysOn />, |
| | | <DateInput label='common.time.after' source="timeStart" />, |
| | | <DateInput label='common.time.before' source="timeEnd" />, |
| | | <TextInput source="taskCode" label="table.field.task.taskCode" />, |
| | | <NumberInput source="taskStatus" label="table.field.task.taskStatus" />, |
| | | <NumberInput source="taskType" label="table.field.task.taskType" />, |
| | | <TextInput source="orgLoc" label="table.field.task.orgLoc" />, |
| | | <TextInput source="orgSite" label="table.field.task.orgSite" />, |
| | | <TextInput source="targLoc" label="table.field.task.targLoc" />, |
| | | <TextInput source="targSite" label="table.field.task.targSite" />, |
| | | <TextInput source="barcode" label="table.field.task.barcode" />, |
| | | <TextInput source="robotCode" label="table.field.task.robotCode" />, |
| | | <NumberInput source="exceStatus" label="table.field.task.exceStatus" />, |
| | | <TextInput source="expDesc" label="table.field.task.expDesc" />, |
| | | <NumberInput source="sort" label="table.field.task.sort" />, |
| | | <TextInput source="expCode" label="table.field.task.expCode" />, |
| | | <DateInput source="startTime" label="table.field.task.startTime" />, |
| | | <DateInput source="endTime" label="table.field.task.endTime" />, |
| | | <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 TaskList = (props) => { |
| | | const translate = useTranslate(); |
| | | const [drawerVal, setDrawerVal] = useState(false); |
| | | const dict = JSON.parse(localStorage.getItem('sys_dicts'))?.filter(dict => (dict.dictTypeCode == 'sys_warehouse_type')) || []; |
| | | |
| | | const filters = [ |
| | | <SearchInput source="condition" alwaysOn />, |
| | | <DateInput label='common.time.after' source="timeStart" />, |
| | | <DateInput label='common.time.before' source="timeEnd" />, |
| | | <TextInput source="taskCode" label="table.field.task.taskCode" />, |
| | | <NumberInput source="taskStatus" label="table.field.task.taskStatus" />, |
| | | <NumberInput source="taskType" label="table.field.task.taskType" />, |
| | | <AutocompleteInput choices={dict} optionText='label' optionValue="value" source="warehType" label="table.field.task.warehType" />, |
| | | <TextInput source="orgLoc" label="table.field.task.orgLoc" />, |
| | | <TextInput source="orgSite" label="table.field.task.orgSite" />, |
| | | <TextInput source="targLoc" label="table.field.task.targLoc" />, |
| | | <TextInput source="targSite" label="table.field.task.targSite" />, |
| | | <TextInput source="barcode" label="table.field.task.barcode" />, |
| | | <TextInput source="robotCode" label="table.field.task.robotCode" />, |
| | | <NumberInput source="exceStatus" label="table.field.task.exceStatus" />, |
| | | <TextInput source="expDesc" label="table.field.task.expDesc" />, |
| | | <NumberInput source="sort" label="table.field.task.sort" />, |
| | | <TextInput source="expCode" label="table.field.task.expCode" />, |
| | | <DateInput source="startTime" label="table.field.task.startTime" />, |
| | | <DateInput source="endTime" label="table.field.task.endTime" />, |
| | | <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 |
| | | />, |
| | | ] |
| | | |
| | | |
| | | |
| | | return ( |
| | | <Box display="flex"> |
| | | <List |
| | |
| | | <TextField source="taskCode" label="table.field.task.taskCode" /> |
| | | <NumberField source="taskStatus$" label="table.field.task.taskStatus" /> |
| | | <NumberField source="taskType$" label="table.field.task.taskType" /> |
| | | <NumberField source="warehType$" label="table.field.task.taskType" /> |
| | | <TextField source="orgLoc" label="table.field.task.orgLoc" /> |
| | | <TextField source="orgSite" label="table.field.task.orgSite" /> |
| | | <TextField source="targLoc" label="table.field.task.targLoc" /> |