{"version":3,"sources":["webpack:///./src/components/mixins/permissoes.js","webpack:///./src/views/financeiro/relatorios/RelatorioAnaliseRetroativaContasReceber/Index.vue","webpack:///./src/views/financeiro/relatorios/RelatorioAnaliseRetroativaContasReceber/TituloAnaliseRetroativaContasReceber.vue","webpack:///src/views/financeiro/relatorios/RelatorioAnaliseRetroativaContasReceber/TituloAnaliseRetroativaContasReceber.vue","webpack:///./src/views/financeiro/relatorios/RelatorioAnaliseRetroativaContasReceber/TituloAnaliseRetroativaContasReceber.vue?dba0","webpack:///./src/views/financeiro/relatorios/RelatorioAnaliseRetroativaContasReceber/TituloAnaliseRetroativaContasReceber.vue?91ec","webpack:///src/views/financeiro/relatorios/RelatorioAnaliseRetroativaContasReceber/Index.vue","webpack:///./src/views/financeiro/relatorios/RelatorioAnaliseRetroativaContasReceber/Index.vue?ef17","webpack:///./src/views/financeiro/relatorios/RelatorioAnaliseRetroativaContasReceber/Index.vue?0a9a","webpack:///./src/common/services/conta-receber/contaReceber.service.js"],"names":["data","acessos","store","getters","idPagina","this","$router","currentRoute","meta","id","computed","listaPermissoes","find","x","acesso","podeCadastrar","admin","permissoes","includes","podeEditar","podeExcluir","podeVisualizar","methods","verificarPermissao","permissao","acessoPermissao","render","_vm","_c","_self","attrs","ref","$t","model","value","filtro","dataRetroativa","callback","$$v","$set","expression","dataInicio","dataFim","staticClass","on","gerarRelatorioAnaliseRetroativa","_v","_s","_e","staticRenderFns","breadcrumbs","components","Topbar","titulo","component","mixins","Permissoes","TituloAnaliseRetroativaContasReceber","InputDateOnlyBtn","template","validarFormulario","helpers","$refs","mensagem","erro","$store","dispatch","START_LOADING","ContaReceber","then","documento","bytes","pdf","base64ToArrayBuffer","blob","Blob","type","link","document","createElement","href","window","URL","createObjectURL","download","nomeArquivo","click","catch","err","showErrors","finally","STOP_LOADING","urlBase","ContaReceberService","params","ApiService","get","result","patch","dataVencimentoInicio","form","post","paginacao","campoOrdenado","ordem","CampoOrdenado","OrdenacaoAscendente","itens","map","row","text","nome","_rowVariant","corLinhaContasReceber","flatMap","aluno","nomeAluno","numeroMatricula","dadosDoAlunoAgrupado","financeiroAluno","statusPagamentoDescricao","ehLista","url","resultadoIdsFormatadosParametro","dataPagamento","join","ids","normalizarFiltros"],"mappings":"gHAAA,gBAEe,QACbA,OACE,MAAO,CACLC,QAASC,OAAMC,QAAQF,QACvBG,SAAUC,KAAKC,QAAQC,aAAaC,KAAKC,KAG7CC,SAAU,CACRC,kBACE,OAAON,KAAKJ,QAAQW,KAAMC,GAAMA,EAAEC,SAAWT,KAAKD,WAEpDW,gBACE,QAAIb,OAAMC,QAAQa,OACXX,KAAKM,gBAAgBM,WAAWC,SAAS,UAElDC,aACE,QAAIjB,OAAMC,QAAQa,OACXX,KAAKM,gBAAgBM,WAAWC,SAAS,cAElDE,cACE,QAAIlB,OAAMC,QAAQa,OACXX,KAAKM,gBAAgBM,WAAWC,SAAS,YAElDG,iBACE,QAAInB,OAAMC,QAAQa,OACXX,KAAKM,gBAAgBM,WAAWC,SAAS,gBAGpDI,QAAS,CACPC,mBAAmBd,EAAIe,GACrB,GAAItB,OAAMC,QAAQa,MAAO,OAAO,EAChC,IAAIS,EAAkBpB,KAAKJ,QAAQW,KAAMC,GAAMA,EAAEC,SAAWL,GAC5D,QAAIgB,GACKA,EAAgBR,WAAWC,SAASM,O,yCCnCnD,IAAIE,EAAS,WAAkB,IAAIC,EAAItB,KAAKuB,EAAGD,EAAIE,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,4CAA4CA,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,KAAK,GAAK,MAAM,CAACF,EAAG,sBAAsB,CAACG,IAAI,iBAAiBD,MAAM,CAAC,MAAQH,EAAIK,GAAG,8BAA8B,SAAW,IAAIC,MAAM,CAACC,MAAOP,EAAIQ,OAAOC,eAAgBC,SAAS,SAAUC,GAAMX,EAAIY,KAAKZ,EAAIQ,OAAQ,iBAAkBG,IAAME,WAAW,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AC7B,wCACD4B,GAEF,OAAO9H,GAGT,4BAA4BmC,GAC1B,IAAI,KAAEnC,SAAe+F,OAAWC,IAAOJ,EAAF,2BAAqC,CACxEE,OAAQ3D,IAEV,OAAOnC,GAET,4BAA4BmC,GAC1B,IAAI,KAAEnC,SAAe+F,OAAWC,IAAOJ,EAAF,0BAAoC,CACvEE,OAAQ3D,IAEV,OAAOnC,GAET,qBAAqBoG,GACnB,IAAI,KAAEpG,SAAe+F,OAAWM,KAC7B,kCACDD,GAEF,OAAOpG,GAET,0BAA0BmC,GACxB,IAAI,KAAEnC,SAAe+F,OAAWM,KAC3BT,EAAF,0BACD,KACA,CAAEE,OAAQ3D,IAEZ,OAAOnC,GAET,sCAAsCmC,GACpC,IAAI,KAAEnC,SAAe+F,OAAWC,IAC3BJ,EAAF,+BACD,CAAEE,OAAQ3D,IAEZ,OAAOnC,GAET,mBAAmBmC,GACjB,IAAI,KAAEnC,SAAe+F,OAAWC,IAAOJ,EAAF,oBAA8B,CACjEE,OAAQjC,OAAQkE,kBAAkB5F,KAEpC,OAAOnC,IAII6F","file":"js/chunk-09f2f91c.5317605b.js","sourcesContent":["import store from \"@/store/Store\";\n\nexport default {\n data() {\n return {\n acessos: store.getters.acessos,\n idPagina: this.$router.currentRoute.meta.id,\n };\n },\n computed: {\n listaPermissoes() {\n return this.acessos.find((x) => x.acesso === this.idPagina);\n },\n podeCadastrar() {\n if (store.getters.admin) return true;\n return this.listaPermissoes.permissoes.includes(\"Criar\");\n },\n podeEditar() {\n if (store.getters.admin) return true;\n return this.listaPermissoes.permissoes.includes(\"Atualizar\");\n },\n podeExcluir() {\n if (store.getters.admin) return true;\n return this.listaPermissoes.permissoes.includes(\"Excluir\");\n },\n podeVisualizar() {\n if (store.getters.admin) return true;\n return this.listaPermissoes.permissoes.includes(\"Visualizar\");\n },\n },\n methods: {\n verificarPermissao(id, permissao) {\n if (store.getters.admin) return true;\n let acessoPermissao = this.acessos.find((x) => x.acesso === id);\n if (acessoPermissao) {\n return acessoPermissao.permissoes.includes(permissao);\n }\n return false;\n }\n }\n};\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('titulo-analise-retroativa-contas-receber'),_c('b-row',[_c('b-col',{attrs:{\"cols\":\"12\",\"md\":\"3\"}},[_c('input-date-only-btn',{ref:\"dataRetroativa\",attrs:{\"label\":_vm.$t('FINANCEIRO.DATA_RETROATIVA'),\"required\":\"\"},model:{value:(_vm.filtro.dataRetroativa),callback:function ($$v) {_vm.$set(_vm.filtro, \"dataRetroativa\", $$v)},expression:\"filtro.dataRetroativa\"}})],1),_c('b-col',{attrs:{\"cols\":\"12\",\"md\":\"3\"}},[_c('input-date-only-btn',{ref:\"periodoInicio\",attrs:{\"label\":_vm.$t('FINANCEIRO.DATA_INICIAL'),\"required\":\"\"},model:{value:(_vm.filtro.dataInicio),callback:function ($$v) {_vm.$set(_vm.filtro, \"dataInicio\", $$v)},expression:\"filtro.dataInicio\"}})],1),_c('b-col',{attrs:{\"cols\":\"12\",\"md\":\"3\"}},[_c('input-date-only-btn',{ref:\"dataFim\",attrs:{\"label\":_vm.$t('FINANCEIRO.DATA_FINAL'),\"required\":\"\"},model:{value:(_vm.filtro.dataFim),callback:function ($$v) {_vm.$set(_vm.filtro, \"dataFim\", $$v)},expression:\"filtro.dataFim\"}})],1),_c('b-col',{attrs:{\"cols\":\"12\",\"md\":\"auto\"}},[(_vm.podeVisualizar)?_c('b-button',{staticClass:\"botao-acao-filtro w-100\",attrs:{\"variant\":\"info\"},on:{\"click\":_vm.gerarRelatorioAnaliseRetroativa}},[_vm._v(\" \"+_vm._s(_vm.$t('GERAL.IMPRIMIR_RELATORIO'))+\" \")]):_vm._e()],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('topbar',{attrs:{\"titulo\":_vm.$t('FINANCEIRO.RELATORIO_ANALISE_RETROATIVA_CONTAS_RECEBER'),\"subtitulo\":_vm.$t('FINANCEIRO.RELATORIO_ANALISE_RETROATIVA_CONTAS_RECEBER_DESCRICAO'),\"breadcrumbs\":_vm.breadcrumbs}})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n ","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TituloAnaliseRetroativaContasReceber.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TituloAnaliseRetroativaContasReceber.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TituloAnaliseRetroativaContasReceber.vue?vue&type=template&id=2ea129b9&\"\nimport script from \"./TituloAnaliseRetroativaContasReceber.vue?vue&type=script&lang=js&\"\nexport * from \"./TituloAnaliseRetroativaContasReceber.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=b79ac8da&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import ApiService from '@/common/api/api.service';\n\nconst urlBase = 'Titulo/contas-receber';\nimport helpers from '@/common/utils/helpers';\n\nconst ContaReceberService = {\n async buscarQuantidadeFiltro(params) {\n let { data } = await ApiService.get(\n `${urlBase}/gerenciar-boletos/obter-quantidade-por-filtro`,\n { params }\n );\n return data.data;\n },\n async bloquearPortalAluno(params) {\n let result = await ApiService.patch(\n `${urlBase}/gerenciar-boletos/bloquear-portal?DataFim=${params.dataFim}&DataInicio=${params.dataInicio}&MatriculaId=${params.dataVencimentoInicio}`\n );\n return result;\n },\n async liberarPortalAluno(params) {\n let result = await ApiService.patch(\n `${urlBase}/gerenciar-boletos/liberar-portal?DataFim=${params.dataFim}&DataInicio=${params.dataInicio}&MatriculaId=${params.dataVencimentoInicio}`,\n { params }\n );\n return result;\n },\n async criar(form) {\n let result = await ApiService.post(`${urlBase}/criar`, form);\n return result;\n },\n async buscarMatriculas() {\n let { data } = await ApiService.get(\n `Matricula?TamanhoDaPagina=10&NumeroDaPagina=1`\n );\n return data.data;\n },\n async buscarContrato() {\n let { data } = await ApiService.get('Contrato/obter-todos');\n return data.data;\n },\n async buscarContratoDadosBasicos() {\n let { data } = await ApiService.get('Contrato/obter-todos-basico');\n return data.data;\n },\n async buscarConta(paginacao) {\n let { data } = await ApiService.get(`Conta`, { params: paginacao });\n return data.data;\n },\n async buscarDesconto(paginacao) {\n let { data } = await ApiService.get(`Desconto`, { params: paginacao });\n return data.data;\n },\n async buscarContasReceber(paginacao, filtro, campoOrdenado, ordem) {\n let { data } = await ApiService.get(`${urlBase}/obter-por-filtro`, {\n params: {\n ...paginacao,\n ...filtro,\n CampoOrdenado: campoOrdenado,\n OrdenacaoAscendente: ordem,\n },\n });\n data.data.itens = data.data.itens.map((row) => ({\n ...row,\n text: row.nome,\n value: row.id,\n _rowVariant: this.corLinhaContasReceber(row),\n }));\n\n return data;\n },\n async listarContasReceberPaginado(paginacao, filtro, campoOrdenado, ordem) {\n let { data } = await ApiService.get(`${urlBase}/por-filtro-paginado`, {\n params: {\n ...paginacao,\n ...filtro,\n CampoOrdenado: campoOrdenado,\n OrdenacaoAscendente: ordem,\n },\n });\n data.data.itens = data.data.itens.flatMap((aluno) => [\n { nomeAluno: aluno.nomeAluno, numeroMatricula: aluno.numeroMatricula },\n ...aluno.dadosDoAlunoAgrupado.map((financeiroAluno) => ({\n ...financeiroAluno,\n _rowVariant: this.corLinhaContasReceber(financeiroAluno),\n })),\n ]);\n\n return data;\n },\n corLinhaContasReceber(row) {\n if (row.statusPagamentoDescricao == 'Liquidado') return 'success';\n if (row.statusPagamentoDescricao == 'Cancelado') return 'danger';\n },\n async buscarStatusPagamento() {\n let { data } = await ApiService.get(`enumeradores/status-pagamento`);\n return data.data;\n },\n async buscarHistoricoContaReceber() {\n let { data } = await ApiService.get(`HistoricoLancamento/contas-a-receber`);\n return data.data;\n },\n async baixarTitulo(form, ehLista) {\n const url = ehLista\n ? 'Titulo/contas-receber/baixar-lista'\n : 'Titulo/contas-receber/baixar';\n let result = await ApiService.patch(url, form);\n return result;\n },\n async estornar(id) {\n let { data } = await ApiService.patch(`Titulo/contas-receber/estornar`, {\n id,\n });\n return data.data;\n },\n async calcularJuros(id) {\n const resultadoIdsFormatadosParametro = id\n .map(({ id, dataPagamento }) => {\n return `DataPagamento=${dataPagamento}&ids=${id}&`;\n })\n .join('');\n\n let { data } = await ApiService.get(\n `Titulo/contas-receber/calcular-juros?${resultadoIdsFormatadosParametro}`\n );\n return data.data;\n },\n async buscarListaDeContasReceber(id) {\n const resultadoIdsFormatadosParametro = id\n .map((id) => {\n return `ids=${id}&`;\n })\n .join('');\n\n let { data } = await ApiService.get(\n `Titulo/contas-receber/busca-por-ids?${resultadoIdsFormatadosParametro}`\n );\n return data.data;\n },\n async atualizarDesconto(form) {\n let { data } = await ApiService.patch(\n `Titulo/contas-receber/atualizar-desconto`,\n form\n );\n return data.data;\n },\n async removerDesconto(form) {\n let { data } = await ApiService.patch(\n 'Titulo/contas-receber/remover-desconto',\n form\n );\n return data;\n },\n async liberarPortal(form) {\n let { data } = await ApiService.patch(\n `Titulo/contas-receber/liberar-portal`,\n form\n );\n return data;\n },\n async bloquearPortal(form) {\n let { data } = await ApiService.patch(\n `Titulo/contas-receber/bloquear-portal`,\n form\n );\n return data;\n },\n async cancelarTitulo(form) {\n let { data } = await ApiService.patch(\n `Titulo/contas-receber/cancelar-titulo`,\n form\n );\n return data;\n },\n async cancelarBoleto(ids) {\n let { data } = await ApiService.patch(\n `Titulo/contas-receber/cancelar-boleto`,\n ids\n );\n return data;\n },\n // RELATORIOS\n async imprimirCartaCobranca(filtro) {\n let { data } = await ApiService.get(`${urlBase}/imprimir-carta-cobranca`, {\n params: filtro,\n });\n return data;\n },\n async imprimirInadimplencia(filtro) {\n let { data } = await ApiService.get(`${urlBase}/imprimir-inadimplencia`, {\n params: filtro,\n });\n return data;\n },\n async imprimirRecibo(form) {\n let { data } = await ApiService.post(\n `LancamentoCaixa/imprimir-recibo`,\n form\n );\n return data;\n },\n async obterPorFiltroLista(filtro) {\n let { data } = await ApiService.post(\n `${urlBase}/obter-por-filtro-lista`,\n null,\n { params: filtro }\n );\n return data;\n },\n async gerarRelatorioAnaliseRetroativa(filtro) {\n let { data } = await ApiService.get(\n `${urlBase}/imprimir-analise-retroativa`,\n { params: filtro }\n );\n return data;\n },\n async gerarExtrato(filtro) {\n let { data } = await ApiService.get(`${urlBase}/imprimir-extrato`, {\n params: helpers.normalizarFiltros(filtro),\n });\n return data;\n },\n};\n\nexport default ContaReceberService;\n"],"sourceRoot":""}