Skip to content

Commit

Permalink
Merge pull request #2453 from prefeiturasp/develop
Browse files Browse the repository at this point in the history
Posição em Develop 23/12/2024 às 10:43h
  • Loading branch information
mdiori authored Dec 23, 2024
2 parents 9166b74 + b01947a commit 99b20c6
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ptrf",
"version": "9.6.0",
"version": "9.6.2",
"private": true,
"dependencies": {
"@dnd-kit/core": "^6.1.0",
Expand Down
16 changes: 15 additions & 1 deletion src/componentes/Globais/ExtracaoDados/Cards.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,19 @@ export const cards = [
tags: ['CSV'],
endpoint: '/api/exportacoes-dados/processos-sei-prestacao-contas/',
visao: ['DRE','SME']
},
},
{
titulo: 'Associações',
descricao: 'Arquivos com informações de associações cadastradas.',
tags: ['CSV'],
endpoint: '/api/exportacoes-dados/associacoes/',
visao: ['DRE','SME']
},
{
titulo: 'Unidades',
descricao: 'Arquivos com informações de unidades.',
tags: ['CSV'],
endpoint: '/api/exportacoes-dados/unidades/',
visao: ['DRE','SME']
},
]
4 changes: 3 additions & 1 deletion src/componentes/Globais/ModalBootstrap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,9 @@ export const ModalFormBodyTextCloseButtonCabecalho = (props) => {
}
size={
props.size
}>
}
dialogClassName="custom-modal-width"
>
<Modal.Header closeButton>
<Modal.Title>{
props.titulo
Expand Down
7 changes: 6 additions & 1 deletion src/componentes/Globais/ModalBootstrap/modal-bootstrap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@
color: #fff;
background-color: $corBtnSuccess;
border-color: $corBtnSuccess;
}
}

.custom-modal-width {
max-width: 90%;
margin: 0 auto;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, {memo, useCallback, useEffect, useState} from "react";
import {DataTable} from 'primereact/datatable';
import {Column} from 'primereact/column';
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import {faDownload, faSearch} from "@fortawesome/free-solid-svg-icons";
import {faDownload, faEye} from "@fortawesome/free-solid-svg-icons";
import {getDownloadArquivoDeReferencia} from "../../../../../services/dres/PrestacaoDeContas.service";
import ModalVisualizarArquivoDeReferencia from "../ModalVisualizarArquivoDeReferencia";

Expand Down Expand Up @@ -45,7 +45,7 @@ const ArquivosDeReferenciaVisualizacaoDownload = ({prestacaoDeContas, infoAta})
<button onClick={() => handleClickVisualizarArquivoDeReferencia(rowData)} className="btn-editar-membro">
<FontAwesomeIcon
style={{fontSize: '20px', marginRight: "0", marginTop: '2px', color: "#00585E"}}
icon={faSearch}
icon={faEye}
/>
</button>
<span> | </span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,28 @@ const ModalVisualizarArquivoDeReferencia = ({show, handleClose, uuidArquivoRefer
})

const bodyTextarea = () => {
const height = `${window.innerHeight * 0.85}px`;

return (
<>
<object id='visualizar_arquivo_de_referencia'>

<object
id="visualizar_arquivo_de_referencia"
style={{ height: height, width: '100%' }}
type="application/pdf"
>
Este navegador não suporta a visualização de PDFs diretamente. Por favor, faça o download do arquivo.
</object>
</>
)
);
};


return (
<ModalFormBodyTextCloseButtonCabecalho
onClose={handleClose}
show={show}
onHide={handleClose}
size='lg'
size='xl'
bodyText={bodyTextarea()}
/>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,9 @@ export const CadastroForm = ({verbo_http}) => {

values.motivos_pagamento_antecipado = montaPayloadMotivosPagamentoAntecipado()
values.outros_motivos_pagamento_antecipado = txtOutrosMotivosPagamentoAntecipado.trim() && checkBoxOutrosMotivosPagamentoAntecipado ? txtOutrosMotivosPagamentoAntecipado : ""

if(aux.origemAnaliseLancamento(parametroLocation)){
if(values.despesa_incompleta > 0){
if(document.getElementsByClassName("despesa_incompleta").length > 0){
setLoading(false);
setBtnSubmitDisable(false);
setShowDespesaIncompletaNaoPermitida(true);
Expand Down

0 comments on commit 99b20c6

Please sign in to comment.