fix: estilização da tabela

This commit is contained in:
Alessandro Gonçaalves 2025-10-22 18:46:16 -03:00
parent b0a40fcc16
commit 9f7e19d80d
1 changed files with 14 additions and 15 deletions

View File

@ -148,7 +148,7 @@ export default function AnaliticoComponent({ filtros }: AnaliticoProps) {
const columns = React.useMemo(() => [ const columns = React.useMemo(() => [
{ {
field: "data_vencimento", field: "data_vencimento",
headerName: "Data de Vencimento", headerName: "Dt Venc",
width: 150, width: 150,
sortable: true, sortable: true,
resizable: true, resizable: true,
@ -163,7 +163,7 @@ export default function AnaliticoComponent({ filtros }: AnaliticoProps) {
}, },
{ {
field: "data_caixa", field: "data_caixa",
headerName: "Data de Caixa", headerName: "Dt Caixa",
width: 130, width: 130,
sortable: true, sortable: true,
resizable: true, resizable: true,
@ -186,14 +186,14 @@ export default function AnaliticoComponent({ filtros }: AnaliticoProps) {
}, },
{ {
field: "codigo_fornecedor", field: "codigo_fornecedor",
headerName: "Cód. Fornecedor", headerName: "Cod.Fornec",
width: 140, width: 140,
sortable: true, sortable: true,
resizable: true, resizable: true,
}, },
{ {
field: "nome_fornecedor", field: "nome_fornecedor",
headerName: "Nome do Fornecedor", headerName: "Fornecedor",
flex: 1, flex: 1,
minWidth: 200, minWidth: 200,
sortable: true, sortable: true,
@ -201,21 +201,21 @@ export default function AnaliticoComponent({ filtros }: AnaliticoProps) {
}, },
{ {
field: "codigo_centrocusto", field: "codigo_centrocusto",
headerName: "Centro de Custo", headerName: "C Custo",
width: 130, width: 130,
sortable: true, sortable: true,
resizable: true, resizable: true,
}, },
{ {
field: "codigo_conta", field: "codigo_conta",
headerName: "Código da Conta", headerName: "Cod.Conta",
width: 150, width: 150,
sortable: true, sortable: true,
resizable: true, resizable: true,
}, },
{ {
field: "conta", field: "conta",
headerName: "Nome da Conta", headerName: "Conta",
flex: 1, flex: 1,
minWidth: 180, minWidth: 180,
sortable: true, sortable: true,
@ -223,7 +223,7 @@ export default function AnaliticoComponent({ filtros }: AnaliticoProps) {
}, },
{ {
field: "valor", field: "valor",
headerName: "Valor Realizado", headerName: "Vl.Realizado",
type: "number" as const, type: "number" as const,
width: 140, width: 140,
sortable: true, sortable: true,
@ -246,7 +246,7 @@ export default function AnaliticoComponent({ filtros }: AnaliticoProps) {
}, },
{ {
field: "valor_previsto", field: "valor_previsto",
headerName: "Valor Previsto", headerName: "Vl.Previsto",
type: "number" as const, type: "number" as const,
width: 130, width: 130,
sortable: true, sortable: true,
@ -269,7 +269,7 @@ export default function AnaliticoComponent({ filtros }: AnaliticoProps) {
}, },
{ {
field: "valor_confirmado", field: "valor_confirmado",
headerName: "Valor Confirmado", headerName: "Vl.Confirmado",
type: "number" as const, type: "number" as const,
width: 140, width: 140,
sortable: true, sortable: true,
@ -292,7 +292,7 @@ export default function AnaliticoComponent({ filtros }: AnaliticoProps) {
}, },
{ {
field: "valor_pago", field: "valor_pago",
headerName: "Valor Pago", headerName: "Vl.Pago",
type: "number" as const, type: "number" as const,
width: 130, width: 130,
sortable: true, sortable: true,
@ -315,7 +315,7 @@ export default function AnaliticoComponent({ filtros }: AnaliticoProps) {
}, },
{ {
field: "historico", field: "historico",
headerName: "Histórico", headerName: "Historico",
flex: 1, flex: 1,
minWidth: 250, minWidth: 250,
sortable: true, sortable: true,
@ -323,7 +323,7 @@ export default function AnaliticoComponent({ filtros }: AnaliticoProps) {
}, },
{ {
field: "historico2", field: "historico2",
headerName: "Histórico 2", headerName: "Historico 2",
flex: 1, flex: 1,
minWidth: 300, minWidth: 300,
sortable: true, sortable: true,
@ -331,7 +331,7 @@ export default function AnaliticoComponent({ filtros }: AnaliticoProps) {
}, },
{ {
field: "numero_lancamento", field: "numero_lancamento",
headerName: "Número do Lançamento", headerName: "Num.Lanc",
width: 80, width: 80,
sortable: true, sortable: true,
resizable: true, resizable: true,
@ -550,7 +550,6 @@ export default function AnaliticoComponent({ filtros }: AnaliticoProps) {
loading={loading} loading={loading}
disableRowSelectionOnClick disableRowSelectionOnClick
density="compact" density="compact"
checkboxSelection
slots={{ toolbar: GridToolbar }} slots={{ toolbar: GridToolbar }}
initialState={{ initialState={{
sorting: { sortModel: [{ field: "data_vencimento", sort: "desc" }] }, sorting: { sortModel: [{ field: "data_vencimento", sort: "desc" }] },