| | |
| | | import useTableLayout from '@/utils/useTableLayout'; |
| | | |
| | | import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting'; |
| | | import { fetchInOrderItemColumns } from '../config/orderItemColumns'; |
| | | import { fetchInOrderItemFullColumns } from '../config/orderItemColumns'; |
| | | |
| | | const filters = [ |
| | | <SearchInput source="condition" alwaysOn />, |
| | |
| | | <> |
| | | <Box display="flex"> |
| | | <List |
| | | resource="asnOrderItem/in" |
| | | resource="asnOrderItemFull/in" |
| | | sx={{ |
| | | flexGrow: 1, |
| | | transition: (theme) => |
| | |
| | | const { isLoading } = useListContext(); |
| | | const refresh = useRefresh(); |
| | | const omittedFields = [ |
| | | 'id', 'orderId', 'orderCode', 'poCode', 'poId', 'wkType', 'type', 'checkType', |
| | | 'spec', 'model', 'purQty', 'purUnit', 'qrcode', 'trackCode', 'splrCode', |
| | | 'splrName', 'projectCode', 'supplierId', 'supplierName', 'priceUnitId', |
| | | 'shipperId', 'businessTime', 'extendFields.[businessTime]', |
| | | 'extendFields.[wkType]', 'extendFields.[type]' |
| | | 'id' |
| | | ]; |
| | | |
| | | useEffect(() => { |
| | |
| | | }, []); |
| | | |
| | | const getDynamicFields = async () => { |
| | | const result = await fetchInOrderItemColumns(); |
| | | const result = await fetchInOrderItemFullColumns(); |
| | | if (result.success) { |
| | | const hiddenSources = [ |
| | | 'splrName', |
| | |
| | | { field: 'anfme', type: 'sum', label: 'table.field.asnOrderItem.anfme' }, |
| | | { field: 'qty', type: 'max', label: 'table.field.asnOrderItem.qty' }, |
| | | ]} |
| | | stickyRight={['createTime']} |
| | | // stickyRight={['createTime']} |
| | | storeKey='asnOrderItem' |
| | | bulkActionButtons={false} |
| | | rowClick={false} |