{"version":3,"sources":["webpack:///./src/views/financeiro/relatorios/RelatorioFaturamento/Index.vue?b60f","webpack:///./src/components/mixins/permissoes.js","webpack:///./src/views/financeiro/relatorios/RelatorioFaturamento/Index.vue","webpack:///./src/views/financeiro/relatorios/RelatorioFaturamento/TituloRelatorioFaturamento.vue","webpack:///src/views/financeiro/relatorios/RelatorioFaturamento/TituloRelatorioFaturamento.vue","webpack:///./src/views/financeiro/relatorios/RelatorioFaturamento/TituloRelatorioFaturamento.vue?7a88","webpack:///./src/views/financeiro/relatorios/RelatorioFaturamento/TituloRelatorioFaturamento.vue?04c6","webpack:///src/views/financeiro/relatorios/RelatorioFaturamento/Index.vue","webpack:///./src/views/financeiro/relatorios/RelatorioFaturamento/Index.vue?bb45","webpack:///./src/views/financeiro/relatorios/RelatorioFaturamento/Index.vue?af9f","webpack:///./src/common/services/fluxo-caixa/fluxo-caixa.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","periodoInicial","callback","$$v","$set","expression","periodoFinal","staticClass","on","gerarRelatorioPdf","_v","_s","_e","staticRenderFns","breadcrumbs","components","Topbar","titulo","component","mixins","Permissoes","TituloRelatorioFaturamento","InputDateOnlyBtn","template","validarFiltro","$store","dispatch","START_LOADING","FluxoCaixaService","gerarRelatorioFaturamentoPdf","then","documento","bytes","pdf","base64ToArrayBuffer","blob","Blob","type","link","document","createElement","href","window","URL","createObjectURL","download","nomeArquivo","click","catch","err","mensagem","showErrors","finally","STOP_LOADING","helpers","validarFormulario","$refs","apiBasePath","paginacao","campoOrdenado","ordem","chave","undefined","ApiService","get","params","CampoOrdenado","OrdenacaoAscendente","itens","flatMap","item","tipo","historicoLancamento","_rowVariant","saldo","saldoAnterior","dadosAgrupados","saldoFinal","delete","form","post","put","matriculaId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AAekG,OAAWiB,KAAM,GAAEvB,EAAesB,GACvD,OAAOlH,GAET,aAAakH,GACX,IAAI,KAAElH,SAAekG,OAAWkB,IAAK,GAAExB,EAAesB,GACtD,OAAOlH,GAET,yCAAyCmC,EAAQ0D,GAC/C,IAAI,KAAE7F,SAAekG,OAAWC,IAC3BP,EAAF,0CACD,CACEQ,OAAQ,IACHjE,KACA0D,KAIT,OAAO7F,GAGT,6BAA6BqH,EAAaC,GACxC,IAAI,KAAEtH,SAAekG,OAAWC,IAC3BP,EAAF,sCACD,CACEQ,OAAQ,CACNiB,cACAC,iBAIN,OAAOtH,GAGT,mCAAmCmC,GACjC,IAAI,KAAEnC,SAAekG,OAAWC,IAC3BP,EAAF,gCACD,CACEQ,OAAQ,IACHjE,KAIT,OAAOnC,GAET,yCAAyCmC,GACvC,IAAI,KAAEnC,SAAekG,OAAWC,IAC3BP,EAAF,qCACD,CACEQ,OAAQ,IACHjE,KAIT,OAAOnC,IAII+D","file":"js/chunk-3bb5ab34.42d137e1.js","sourcesContent":["export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=2cf3544a&prod&scoped=true&lang=css&\"","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-relatorio-faturamento'),_c('b-row',[_c('b-col',{attrs:{\"md\":\"3\"}},[_c('input-date-only-btn',{ref:\"peridioInicio\",attrs:{\"label\":_vm.$t('FINANCEIRO.PERIODO_INICIAL'),\"required\":\"\"},model:{value:(_vm.filtro.periodoInicial),callback:function ($$v) {_vm.$set(_vm.filtro, \"periodoInicial\", $$v)},expression:\"filtro.periodoInicial\"}})],1),_c('b-col',{attrs:{\"md\":\"3\"}},[_c('input-date-only-btn',{ref:\"periodoFim\",attrs:{\"label\":_vm.$t('FINANCEIRO.PERIODO_FINAL'),\"required\":\"\"},model:{value:(_vm.filtro.periodoFinal),callback:function ($$v) {_vm.$set(_vm.filtro, \"periodoFinal\", $$v)},expression:\"filtro.periodoFinal\"}})],1),_c('b-col',{attrs:{\"md\":\"auto\"}},[(_vm.podeVisualizar)?_c('b-button',{staticClass:\"ajuste-fino-btn w-100\",attrs:{\"variant\":\"info\"},on:{\"click\":_vm.gerarRelatorioPdf}},[_vm._v(\" \"+_vm._s(_vm.$t('GERAL.GERAR_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_FATURAMENTO'),\"subtitulo\":_vm.$t('FINANCEIRO.RELATORIO_FATURAMENTO_DESCRICAO'),\"breadcrumbs\":_vm.breadcrumbs}})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./TituloRelatorioFaturamento.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!./TituloRelatorioFaturamento.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TituloRelatorioFaturamento.vue?vue&type=template&id=4265d677&\"\nimport script from \"./TituloRelatorioFaturamento.vue?vue&type=script&lang=js&\"\nexport * from \"./TituloRelatorioFaturamento.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\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=2cf3544a&scoped=true&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=2cf3544a&prod&scoped=true&lang=css&\"\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 \"2cf3544a\",\n null\n \n)\n\nexport default component.exports","import ApiService from '@/common/api/api.service';\n\nlet apiBasePath = 'LancamentoCaixa';\nconst FluxoCaixaService = {\n // FUNÇÕES DE BUSCA:\n async listarPorFiltroPaginado(filtro, paginacao, campoOrdenado, ordem) {\n for (let chave in filtro) {\n if (filtro[chave] == undefined || filtro[chave] == '') {\n delete filtro[chave];\n }\n }\n\n let { data } = await ApiService.get(\n `${apiBasePath}/obter-fluxo-caixa-por-filtro`,\n {\n params: {\n ...paginacao,\n ...filtro,\n CampoOrdenado: campoOrdenado,\n OrdenacaoAscendente: ordem,\n },\n }\n );\n\n data.data.itens = data.data.itens.flatMap(item => [\n {\n tipo: 'saldoAnterior',\n historicoLancamento: 'Saldo anterior',\n _rowVariant: 'warning fw-bold',\n saldo: item.saldoAnterior,\n },\n ...item.dadosAgrupados,\n {\n tipo: 'saldoAtualizado',\n historicoLancamento: 'Saldo atualizado',\n _rowVariant: 'warning',\n saldo: item.saldoFinal,\n },\n ]);\n\n return data;\n },\n async excluir(id) {\n let { data } = await ApiService.delete(`${apiBasePath}/${id}`);\n return data;\n },\n async imprimirRecibo(form) {\n let { data } = await ApiService.post(\n `${apiBasePath}/imprimir-recibo`,\n form\n );\n return data;\n },\n async imprimirExtrato(form) {\n let { data } = await ApiService.get(\n `${apiBasePath}/relatorio-fluxo-de-caixa`,\n {\n params: {\n ...form,\n },\n }\n );\n return data;\n },\n async realizarTransferenciaEntreContas(form) {\n let { data } = await ApiService.put(`${apiBasePath}/transferencia`, form);\n return data;\n },\n async criar(form) {\n let { data } = await ApiService.post(`${apiBasePath}`, form);\n return data;\n },\n async editar(form) {\n let { data } = await ApiService.put(`${apiBasePath}`, form);\n return data;\n },\n async obterLancamentosPorPeriodoPaginado(filtro, paginacao) {\n let { data } = await ApiService.get(\n `${apiBasePath}/obter-lancamentos-por-periodo-paginado`,\n {\n params: {\n ...filtro,\n ...paginacao,\n },\n }\n );\n return data;\n },\n // Relatorios\n async gerarImpostoDeRendaPdf(matriculaId, anoLetivoId) {\n let { data } = await ApiService.get(\n `${apiBasePath}/relatorio-declaracao-imposto-renda`,\n {\n params: {\n matriculaId,\n anoLetivoId,\n },\n }\n );\n return data;\n },\n\n async gerarRelatorioFaturamentoPdf(filtro) {\n let { data } = await ApiService.get(\n `${apiBasePath}/gerar-relatorio-faturamento/`,\n {\n params: {\n ...filtro,\n },\n }\n );\n return data;\n },\n async gerarRelatorioLancamentoPorPeriodo(filtro) {\n let { data } = await ApiService.get(\n `${apiBasePath}/relatorio-lancamentos-por-periodo`,\n {\n params: {\n ...filtro,\n },\n }\n );\n return data;\n },\n};\n\nexport default FluxoCaixaService;\n"],"sourceRoot":""}