|  |  | 
 |  |  |     '& .opt': { | 
 |  |  |         width: 200 | 
 |  |  |     }, | 
 |  |  |     '& .MuiTableCell-root': { | 
 |  |  |     whiteSpace: 'nowrap', | 
 |  |  |     overflow: 'visible', | 
 |  |  |     textOverflow: 'unset' | 
 |  |  |   } | 
 |  |  | })); | 
 |  |  |  | 
 |  |  | const filters = [ | 
 |  |  | 
 |  |  |     <TextInput source="barcode" label="table.field.warehouseAreasItem.barcode" />, | 
 |  |  |     <NumberInput source="anfme" label="table.field.warehouseAreasItem.anfme" />, | 
 |  |  |     <TextInput source="batch" label="table.field.warehouseAreasItem.batch" />, | 
 |  |  |     <TextInput source="platOrderCode" label="table.field.asnOrderItem.platOrderCode" />, | 
 |  |  |     <TextInput source="platWorkCode" label="table.field.asnOrderItem.platWorkCode" />, | 
 |  |  |     <TextInput source="projectCode" label="table.field.asnOrderItem.projectCode" />, | 
 |  |  |     <TextInput source="unit" label="table.field.warehouseAreasItem.unit" />, | 
 |  |  |     <TextInput source="stockUnit" label="table.field.warehouseAreasItem.stockUnit" />, | 
 |  |  |     <TextInput source="brand" label="table.field.warehouseAreasItem.brand" />, | 
 |  |  | 
 |  |  |                 <NumberField key="anfme" source="anfme" label="table.field.warehouseAreasItem.anfme" />, | 
 |  |  |                 <NumberField key="workQty" source="workQty" label="table.field.warehouseAreasItem.workQty" />, | 
 |  |  |                 <NumberField key="qty" source="qty" label="table.field.warehouseAreasItem.qty" />, | 
 |  |  |                 <TextField source="platOrderCode" label="table.field.asnOrderItem.platOrderCode" />, | 
 |  |  |                 <TextField source="platWorkCode" label="table.field.asnOrderItem.platWorkCode" />, | 
 |  |  |                 <TextField source="projectCode" label="table.field.asnOrderItem.projectCode" />, | 
 |  |  |                 // <MyField source="isptQty" label="table.field.qlyIsptItem.anfme" | 
 |  |  |                 //     onClick={(event, record, val) => { | 
 |  |  |                 //         event.stopPropagation(); | 
 |  |  | 
 |  |  |             setColumns([...arr, ...fields, ...lastArr]); | 
 |  |  |             //filters添加过滤字段 | 
 |  |  |             data.map(el => { | 
 |  |  |                 var i =0; | 
 |  |  |                 filters.map((item) =>{ | 
 |  |  |                     if(item.key === el.fields){ | 
 |  |  |                       i = 1; | 
 |  |  |                 var i = 0; | 
 |  |  |                 filters.map((item) => { | 
 |  |  |                     if (item.key === el.fields) { | 
 |  |  |                         i = 1; | 
 |  |  |                     } | 
 |  |  |                 }) | 
 |  |  |                 i===0 && filters.push(<TextInput key={el.fields} source={el.fields} label={el.fieldsAlise} />) | 
 |  |  |                 i === 0 && filters.push(<TextInput key={el.fields} source={el.fields} label={el.fieldsAlise} />) | 
 |  |  |             }) | 
 |  |  |         } else { | 
 |  |  |             notify(msg); | 
 |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     return ( | 
 |  |  |         <Box sx={{ position: 'relative', minHeight: "60vh", }}> | 
 |  |  |         <Box sx={{ position: 'relative', minHeight: "82vh", }}> | 
 |  |  |             {isLoading && ( | 
 |  |  |                 <LinearProgress | 
 |  |  |                     sx={{ | 
 |  |  | 
 |  |  |                     preferenceKey='warehouseAreasItem' | 
 |  |  |                     bulkActionButtons={false} | 
 |  |  |                     rowClick={(id, resource, record) => false} | 
 |  |  |                     omit={['id', 'createTime', 'memo', 'areaId', 'brand', 'createBy$', 'weight', 'matnrId', 'batch', 'shipperId', 'splrId']} | 
 |  |  |                     omit={['prodTime','unit','platOrderCode','trackCode','id', 'createTime', 'memo', 'areaId', 'brand', 'createBy$', | 
 |  |  |                          'weight', 'matnrId', 'batch', 'shipperId', 'splrId', 'platWorkCode', 'projectCode','statusBool']} | 
 |  |  |                 > | 
 |  |  |                     {columns.map((column) => column)} | 
 |  |  |                 </StyledDatagrid>} |