|  |  | 
 |  |  |     }, | 
 |  |  |     '& .column-name': { | 
 |  |  |     }, | 
 |  |  |     '& .opt': { | 
 |  |  |         width: 180 | 
 |  |  |     }, | 
 |  |  |      | 
 |  |  |     '& .MuiTableCell-root': { | 
 |  |  |     whiteSpace: 'nowrap', | 
 |  |  |     overflow: 'visible', | 
 |  |  |     textOverflow: 'unset' | 
 |  |  |   }, | 
 |  |  |   '& .opt': { | 
 |  |  |         width: 180, | 
 |  |  |         whiteSpace: 'normal', | 
 |  |  |     } | 
 |  |  | })); | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  | const WarehouseStockList = () => { | 
 |  |  |     const dict = JSON.parse(localStorage.getItem('sys_dicts'))?.filter(dict => (dict.dictTypeCode == 'sys_stock_summary_code')) || []; | 
 |  |  |  | 
 |  |  |     const translate = useTranslate(); | 
 |  |  |     const [createDialog, setCreateDialog] = useState(false); | 
 |  |  |     const [filters, setFilters] = useState([ | 
 |  |  | 
 |  |  |         <NumberInput source="locId" label="table.field.locItem.locId" />, | 
 |  |  |         <TextInput source="locCode" label="table.field.locItem.locCode" />, | 
 |  |  |         <TextInput source="type" label="table.field.locItem.type" />, | 
 |  |  |         <ReferenceInput source="aggType" reference="dictData" filter={{ dictTypeCode: 'sys_stock_summary_code' }} alwaysOn> | 
 |  |  |             <AutocompleteInput optionText='label' optionValue="value" label="table.field.locItem.aggType" /> | 
 |  |  |         </ReferenceInput>, | 
 |  |  |         <AutocompleteInput choices={dict} optionText='label' optionValue="value" source="aggType" label="table.field.locItem.aggType" />, | 
 |  |  |         <NumberInput source="orderItemId" label="table.field.locItem.orderItemId" />, | 
 |  |  |         <NumberInput source="wkType" label="table.field.locItem.wkType" />, | 
 |  |  |         <NumberInput source="matnrId" label="table.field.locItem.matnrId" />, | 
 |  |  | 
 |  |  |                                 duration: theme.transitions.duration.enteringScreen, | 
 |  |  |                             }), | 
 |  |  |                         marginRight: 0, | 
 |  |  |                         '& .RaAutocompleteInput-textField.MuiFormControl-root.MuiTextField-root': { | 
 |  |  |                             width: '200px' | 
 |  |  |                         } | 
 |  |  |                     }} | 
 |  |  |                     resource="warehouse/stock" | 
 |  |  |                     title={"common.button.detail"} | 
 |  |  | 
 |  |  |                     rowClick={false} | 
 |  |  |                     expand={false} | 
 |  |  |                     expandSingle={true} | 
 |  |  |                     omit={['id', 'createTime', 'locId', 'spec', 'model', 'locCode', 'orderId', 'orderItemId', 'matnrId', 'splrBatch', 'createBy', 'memo', 'fieldsIndex']} | 
 |  |  |                     omit={['id', 'createTime', 'locId', 'spec', 'model', 'locCode', 'orderId', 'orderItemId', 'matnrId', 'splrBatch', 'createBy', 'memo', 'fieldsIndex','updateBy$']} | 
 |  |  |                 > | 
 |  |  |                     {columns.map((column) => column)} | 
 |  |  |                 </StyledDatagrid>} |