|  |  |  | 
|---|
|  |  |  | cursor: 'auto' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | '& .column-dayTime': { | 
|---|
|  |  |  | width: 120, | 
|---|
|  |  |  | textAlign: 'center', | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | '& .column-taskType$': { | 
|---|
|  |  |  | width: 130, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | '& .column-matnrCode': { | 
|---|
|  |  |  | width: 150, | 
|---|
|  |  |  | '& .RaDatagrid-rowCell': { | 
|---|
|  |  |  | color: 'black', | 
|---|
|  |  |  | textAlign: 'center', | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | '& .RaDatagrid-headerCell': { | 
|---|
|  |  |  | color: 'black', | 
|---|
|  |  |  | textAlign: 'center', | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | '& .column-maktx': { | 
|---|
|  |  |  | 
|---|
|  |  |  | const translate = useTranslate(); | 
|---|
|  |  |  | const [createDialog, setCreateDialog] = useState(false); | 
|---|
|  |  |  | const [drawerVal, setDrawerVal] = useState(false); | 
|---|
|  |  |  | // const dict = JSON.parse(localStorage.getItem('sys_dicts'))?.filter(dict => (dict.dictTypeCode == 'sys_task_type' && dict.group == 3)) || []; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const filters = [ | 
|---|
|  |  |  | <SearchInput source="condition" alwaysOn />, | 
|---|
|  |  |  | <DateInput label='common.time.before' source="dayTime" alwaysOn />, | 
|---|
|  |  |  | // <AutocompleteInput optionText="label" | 
|---|
|  |  |  | //     choices={dict} | 
|---|
|  |  |  | //     optionValue="value" | 
|---|
|  |  |  | //     label="table.field.stockStatistic.taskType" | 
|---|
|  |  |  | //     filter | 
|---|
|  |  |  | //     source="taskType" | 
|---|
|  |  |  | //     alwaysOn />, | 
|---|
|  |  |  | <TextInput source="maktx" label="table.field.locItem.maktx" />, | 
|---|
|  |  |  | <TextInput source="matnrCode" label="table.field.locItem.matnrCode" alwaysOn />, | 
|---|
|  |  |  | <TextInput source="batch" label="table.field.locItem.batch" />, | 
|---|
|  |  |  | 
|---|
|  |  |  | }} | 
|---|
|  |  |  | title={false} | 
|---|
|  |  |  | empty={false} | 
|---|
|  |  |  | filter={{ taskType: 101, taskStatus: 200 }} | 
|---|
|  |  |  | filters={filters} | 
|---|
|  |  |  | sort={{ field: "day_time", order: "desc" }} | 
|---|
|  |  |  | actions={( | 
|---|