Se arreglo la reactividad de clasificacion de conceptos, ademas del nuevo filtro de descriociones
This commit is contained in:
@@ -32,12 +32,15 @@ export async function getClassificationConcepts(
|
||||
companyId: number,
|
||||
filters: Record<string, any> = {}
|
||||
): Promise<ApiResponse<ClassificationConceptListResponse>> {
|
||||
const params = new URLSearchParams({
|
||||
const paramObj: Record<string, string> = {
|
||||
page: page.toString(),
|
||||
page_size: pageSize.toString(),
|
||||
company_id: companyId.toString(),
|
||||
...filters
|
||||
company_id: companyId.toString()
|
||||
};
|
||||
Object.entries(filters).forEach(([k, v]) => {
|
||||
if (v !== undefined && v !== null && v !== '') paramObj[k] = String(v);
|
||||
});
|
||||
const params = new URLSearchParams(paramObj);
|
||||
|
||||
return await api.get(`/v1/a76/classification-concepts/?${params.toString()}`);
|
||||
}
|
||||
|
||||
@@ -13,6 +13,11 @@ export function createColumns(
|
||||
header: 'Clasificación',
|
||||
cell: ({ row }) => row.original.classification || '-'
|
||||
},
|
||||
{
|
||||
accessorKey: 'description',
|
||||
header: 'Descripción',
|
||||
cell: ({ row }) => row.original.description || '-'
|
||||
},
|
||||
{
|
||||
id: 'actions',
|
||||
header: 'Acciones',
|
||||
|
||||
Reference in New Issue
Block a user