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