| | |
| | | |
| | | const DynamicFields = (props) => { |
| | | const translate = useTranslate(); |
| | | const notify = useNotify(); |
| | | const notify = useNotify(); |
| | | const [columns, setColumns] = useState([]); |
| | | const { isLoading } = useListContext(); |
| | | const refresh = useRefresh(); |
| | |
| | | 'businessTime', 'extendFields.[businessTime]', |
| | | 'wkType', 'extendFields.[wkType]', |
| | | 'type', 'extendFields.[type]', |
| | | 'priceUnitId', |
| | | 'priceUnitId', 'purUnit', 'extendFields.[priceUnitId]', |
| | | 'id', 'orderId', 'orderCode', 'poCode', 'poId','wkType', |
| | | 'type', 'checkType', 'spec', 'model', 'purQty', 'purUnit', |
| | | 'qrcode', 'trackCode', 'splrCode', 'splrName', 'projectCode', |
| | | 'supplierId', 'supplierName', 'shipperId', |
| | | 'updateTime', 'updateBy', 'updateBy$', |
| | | // 'updateTime', 'updateBy', 'updateBy$', |
| | | 'createTime', 'createBy', 'createBy$', |
| | | 'extendFields.[inStockType]', 'extendFields.[baseUnitId]' |
| | | ]; |
| | | const columns = result.columns.filter(col => !hiddenSources.includes(col.props.source)); |
| | | setColumns(columns); |
| | |
| | | preferenceKey='asnOrderItem' |
| | | bulkActionButtons={false} |
| | | rowClick={(id, resource, record) => false} |
| | | omit={['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]']} |
| | | omit={['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]']} |
| | | > |
| | | {columns.map((column) => column)} |
| | | </StyledDatagrid>} |