|  |  |  | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (open) { | 
|---|
|  |  |  | console.log(1); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | queryLocStsByStock(); | 
|---|
|  |  |  | queryLocStsByIdle(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | notify('common.response.success'); | 
|---|
|  |  |  | }; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const handleError = async (data) => { | 
|---|
|  |  |  | notify('common.response.fail'); | 
|---|
|  |  |  | const handleError = async (error) => { | 
|---|
|  |  |  | notify(error.message || 'common.response.fail', { type: 'error', messageArgs: { _: error.message } }); | 
|---|
|  |  |  | }; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return ( | 
|---|
|  |  |  | 
|---|
|  |  |  | validate={required()} | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </Grid> | 
|---|
|  |  |  | <Grid item xs={6} display="flex" gap={1}> | 
|---|
|  |  |  | {/* <Grid item xs={6} display="flex" gap={1}> | 
|---|
|  |  |  | <DateTimeInput | 
|---|
|  |  |  | label="table.field.bus.startTime" | 
|---|
|  |  |  | source="startTime" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </Grid> | 
|---|
|  |  |  | </Grid> */} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <Grid item xs={12} display="flex" gap={1}> | 
|---|
|  |  |  | <ArrayInput | 
|---|
|  |  |  | label="table.field.bus.taskList" | 
|---|
|  |  |  | source="taskList" | 
|---|
|  |  |  | validate={[required()]} | 
|---|
|  |  |  | > | 
|---|
|  |  |  | 
|---|
|  |  |  | </Stack> | 
|---|
|  |  |  | <Stack direction="row" spacing={2} sx={{ maxWidth: '50%' }}> | 
|---|
|  |  |  | {/* <TextInput source="seqNum" /> */} | 
|---|
|  |  |  | <NumberInput source="priority" defaultValue={1} /> | 
|---|
|  |  |  | <NumberInput | 
|---|
|  |  |  | label="table.field.task.priority" | 
|---|
|  |  |  | source="priority" | 
|---|
|  |  |  | defaultValue={1} | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </Stack> | 
|---|
|  |  |  | </SimpleFormIterator> | 
|---|
|  |  |  | </ArrayInput> | 
|---|