Se arreglo la reactividad de clasificacion de conceptos, ademas del nuevo filtro de descriociones

This commit is contained in:
2026-05-20 15:58:53 -05:00
parent 91ca77e6a8
commit d76fa7b85d
3 changed files with 13 additions and 5 deletions

View File

@@ -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()}`);
}

View File

@@ -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',