{"version":3,"sources":["webpack:///./src/components/emissaoNfse/CartaCorrecaoNotaFiscal.vue?faad","webpack:///./src/components/emissaoNfse/AnaliseCancelamentoNotaFiscal.vue?3976","webpack:///./src/models/nfse/NotaFiscal.js","webpack:///./src/assets/css/consultaNfse.css?52ef","webpack:///./src/views/ConsultaNfse.vue?edae","webpack:///./src/components/emissaoNfse/ExportarNotasFiscais.vue?e1f6","webpack:///./src/components/emissaoNfse/ExportarNfseMaiorPeriodo.vue?7b2b","webpack:///src/components/emissaoNfse/ExportarNfseMaiorPeriodo.vue","webpack:///./src/components/emissaoNfse/ExportarNfseMaiorPeriodo.vue?a900","webpack:///./src/components/emissaoNfse/ExportarNfseMaiorPeriodo.vue?3180","webpack:///src/components/emissaoNfse/ExportarNotasFiscais.vue","webpack:///./src/components/emissaoNfse/ExportarNotasFiscais.vue?f58f","webpack:///./src/components/emissaoNfse/ExportarNotasFiscais.vue","webpack:///./src/components/emissaoNfse/AnaliseCancelamentoNotaFiscal.vue?3220","webpack:///src/components/emissaoNfse/AnaliseCancelamentoNotaFiscal.vue","webpack:///./src/components/emissaoNfse/AnaliseCancelamentoNotaFiscal.vue?7d51","webpack:///./src/components/emissaoNfse/AnaliseCancelamentoNotaFiscal.vue?6647","webpack:///./src/components/emissaoNfse/CartaCorrecaoNotaFiscal.vue?5df8","webpack:///./src/services/nfse/cartacorrecao.service.js","webpack:///./src/models/nfse/CartaCorrecao.js","webpack:///src/components/emissaoNfse/CartaCorrecaoNotaFiscal.vue","webpack:///./src/components/emissaoNfse/CartaCorrecaoNotaFiscal.vue?8789","webpack:///./src/components/emissaoNfse/CartaCorrecaoNotaFiscal.vue?96ca","webpack:///src/views/ConsultaNfse.vue","webpack:///./src/views/ConsultaNfse.vue?bc70","webpack:///./src/views/ConsultaNfse.vue","webpack:///./src/components/emissaoNfse/EnviarEmailNotaFiscal.vue?142f","webpack:///./src/components/emissaoNfse/ConsultaDeclaracoesNotaFiscal.vue?8636","webpack:///src/components/emissaoNfse/ConsultaDeclaracoesNotaFiscal.vue","webpack:///./src/components/emissaoNfse/ConsultaDeclaracoesNotaFiscal.vue?535e","webpack:///./src/components/emissaoNfse/ConsultaDeclaracoesNotaFiscal.vue?adc2","webpack:///./src/services/nfse/notafiscalavulsa.service.js","webpack:///./src/services/tributario/contribuinte.servico.service.js","webpack:///./src/components/emissaoNfse/ConsultaDeclaracoesNotaFiscal.vue?5e25","webpack:///./src/services/tributario/regime.service.js","webpack:///./src/components/emissaoNfse/EnviarEmailNotaFiscal.vue?a440","webpack:///src/components/emissaoNfse/EnviarEmailNotaFiscal.vue","webpack:///./src/components/emissaoNfse/EnviarEmailNotaFiscal.vue?5abb","webpack:///./src/components/emissaoNfse/EnviarEmailNotaFiscal.vue?bb00","webpack:///./src/components/emissaoNfse/ExportarNfseMaiorPeriodo.vue?2120"],"names":["NotaFiscal","this","id","numero","dataHoraEmissao","dataEmissao","dataFatoGerador","ano","mes","discriminacaoServico","valorServico","valorDesconto","valorDescontoIncond","valorDescontoCond","valorDescontosDiversos","valorCredito","valorLiquido","valorBaseCalculo","aliquota","valorIss","valorInss","valorIr","valorCsll","valorPis","valorCofins","outrasRetencoes","tipoRecolhimento","pagaIssqnSomenteMunicipio","idNaturezaOperacao","idRegimeTributacao","regimeTrbPgIss","naturezaOperPgIss","optanteSs","incentivadorFiscal","pagaIss","codigoVerificacao","rpsLoteId","rpsLote","rpsNumero","rpsSerie","rpsDataEmissao","rpsTipo","numeroArt","numeroCei","dataVigenciaInicial","dataVigenciaFinal","version","localPrestacao","valorIrrf","valorSestSenat","notaAvulsa","idMunicPrestacao","idCliente","idUsuario","idFichaRespostaPai","idFluxoInstanciaAtividade","idCntPrestador","idSerie","idPrestadorDados","idTomadorDados","idIntermediarioDados","idAtividade","idServicoItem","idNotaSubstituida","render","_vm","_h","$createElement","_c","_self","staticClass","_m","attrs","erros","on","$event","type","indexOf","_k","keyCode","key","pesquisar","model","value","callback","$$v","filtroNumero","expression","filtroRpsNumero","directives","name","rawName","dataFatoGeradorIni","dataFatoGeradorFim","filteredPessoas","searchPessoa","selectedPessoa","filtroSituacoes","filtroSituacao","filteredIntermediario","searchIntermediario","selectedIntermediario","_e","loading","imprimirConsultaNotaFiscal","_v","devedorContumaz","imprimirNotaFiscalAgrupadas","imprimirRelacaoRetencoesNfse","imprimirConsultaNotaFiscalAvulsaDam","imprimirLivroFiscal","imprimirRelacaoChaveValidacao","exportar","ref","nfseList","scopedSlots","_u","fn","proxy","staticStyle","imprimirExcel","slotProps","verificaDamGerado","data","exibirEmissaoDam","damPago","situacao","idBolDevedorContumaz","carregarVencimentoBoleto","_s","labelDam","exibirImpressao","visualizar","download","exibirExportarXml","downloadXml","exibirEnviarEmail","enviarEmail","exibirCartaCorrecao","exibirBotaoCartaCorrecao","inativo","cartaCorrecaoNotaFiscal","cancelarNotaFiscal","currentUser","usuario","cancelarNotaFiscalDireta","substituirNotaFiscal","consultaDeclaracoesNfse","idBolAdmin","analiseCancelamento","confirmaDesfazerCancelamento","style","width","displayAtivaNota","desfazerCancelamento","displayVencBoleto","overflow","keyVencBoleto","dataVencimento","damGerado","gerarDamNotaAvulsa","imprimirBoleto","habilitarPix","criarPagamentoPix","imprimirBoletoPix","consultarPagamentoPix","showCancDAMPetro","cancelarDamNotaAvulsa","hideVencBoleto","showPix","optionsPix","pixGerado","valorFormatado","qrCode","copiarPix","showBloqSubstituicaoNota","mensagemSubstituicaoPrazo","domProps","target","composing","obsSubstituicao","emitirTermo","staticRenderFns","showExportarNotas","filteredServicos","searchServico","item","detail","selectedServico","downloadListagemXml","exportarMaiorPeriodo","showExportarNfsePeriodo","message","summary","exportsList","status","downloadExportacao","solicitarExportacao","created","emiteNotaAvulsa","consultaSolicitacoes","$root","$on","methods","setTimeout","configuracao","idBolHabilitaCnaeNf","msg","contribuinte","idContribuinte","diffDays","$emit","$toast","add","group","severity","life","processando","console","log","show","component","components","$parent","computed","showAnaliseCancelarNota","textoHeader","nota","$set","tipo","notaFiscalSituacao","deferir","indeferir","exibirDialogAnaliseCancelarNota","showCartaCorrecaoListagem","cartasCorrecao","cancelarCartaCorrecaoNfse","novaCarta","notaFiscal","ocultarDialogCartaCorrecaoListagem","showCartaCorrecao","selectedPessoaPrestador","editarPrestador","editarTomador","selectedPessoaIntermediario","editarIntermediario","_b","money","criarCartaCorrecaoNfse","ocultarDialogCartaCorrecao","API_URL","CartaCorrecaoService","LoginService","subscribe","headers","token","cartaCorrecao","currentUserValue","axios","post","JSON","stringify","get","cartaId","CartaCorrecao","idNotaFiscal","notaAnterior","notaNovo","TomadorCadastro","apresentacao","observacaoClienteNfse","limparDadosCartaCorrecao","pesquisarCartas","exibirDialogCartaCorrecao","exibirListagemCarta","observacao","Pessoa","desabilitarEdicaoTomador","ExportarNotasFiscais","CancelarNotaFiscal","EnviarEmailNotaFiscal","CartaCorrecaoNotaFiscal","ConsultaDeclaracoesNotaFiscal","AnaliseCancelamentoNotaFiscal","QRCanvas","display","filtroEmissao","filtrosEmissao","listID","nfseId","idNotaAvulsaSelecionada","cellSize","exibirConsultaDeclaracao","utilizarTermoSubstituicao","showCopiaNota","showFilterIntermediario","cancDamPetrolina","mounted","document","getElementById","focus","idBolModeloFechamento","idBolUtilizarPix","idBolObservacaoNfse","Date","diasPrazoSubstituicao","nfPrazoDiasSubstituicao","exibeIntermediario","navigator","clipboard","writeText","imprimirConsultaTipo","imprimirNotaFiscalAvulsaAgrupadas","response","dataGeracao","validacao","$router","push","setMonth","dataAtual","exportCSV","$refs","dt","idBolIntermediario","showDeclaracoes","declaracoesList","ocultarDialogDeclaracoes","consultaDeclaracao","messageList","NotaFiscalAvulsaService","idNfs","vencimento","idNota","idNotaAvulsa","idCalculoParcelado","ContribuinteServicoService","filtro","then","elements","RegimeService","showEnviarEmail","emails","comentarios","enviarEmailNfse","exibirDialogCancelarNota"],"mappings":"iHAAA,yBAAqgB,EAAG,G,4DCAxgB,yBAA2gB,EAAG,G,kDCAxgBA,EACJ,aAAc,uBACZC,KAAKC,GAAK,KACVD,K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,EAAG,SAAS,CAACE,YAAY,wCAAwCE,MAAM,CAAC,KAAO,SAAS,MAAQ,SAAS,KAAO,eAAeE,GAAG,CAAC,MAAQ,SAASC,GAAQV,EAAImR,iBAAkB,OAAW,UAAU,IACluD9J,EAAkB,G,wBC6DtB,GACE5F,KAAM,wBAEN4G,QAHF,WAGA,WACIrM,KAAKwM,MAAMC,IAAI,0BAA0B,SAA7C,GACM,EAAN,eACM,EAAN,+BAIE/E,KAVF,WAWI,MAAO,CACLyN,iBAAiB,EACjB3E,aAAc,KACd4E,OAAQ,KACRC,YAAa,OAIjB3I,QAAS,CACP6I,yBADJ,WAEMvV,KAAKmV,iBAAkB,GAGzBG,gBALJ,WAKA,WACUtV,KAAKoV,QACPpV,KAAK8N,QAAQN,aAAY,GACzBxN,KAAK8N,QAAQtJ,MAAQ,GAEjBxE,KAAKoV,QACjB,sEACA,MACA,YACU,QAAV,OACU,EAAV,wDAEA,YAAU,IAAV,GACA,iEACU,QAAV,mBAGA,iBACU,EAAV,mBACU,EAAV,4BAGQpV,KAAKwM,MAAMU,MACnB,aACA,iDAMEa,SAAU,CACRzH,QADJ,WAEM,OAAOtG,KAAK8N,QAAQxH,WCtHoV,I,wBCQ1WsH,EAAY,eACd,EACA7J,EACAsH,GACA,EACA,KACA,WACA,MAIa,OAAAuC,E,2CCnBf,yBAAsgB,EAAG","file":"js/consulta.nfse.79efa166.js","sourcesContent":["import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CartaCorrecaoNotaFiscal.vue?vue&type=style&index=0&id=11a7b16a&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CartaCorrecaoNotaFiscal.vue?vue&type=style&index=0&id=11a7b16a&scoped=true&lang=css&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AnaliseCancelamentoNotaFiscal.vue?vue&type=style&index=0&id=0c46e00a&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AnaliseCancelamentoNotaFiscal.vue?vue&type=style&index=0&id=0c46e00a&scoped=true&lang=css&\"","class NotaFiscal {\r\n  constructor() {\r\n    this.id = null\r\n    this.numero = ''\r\n    this.dataHoraEmissao = ''\r\n    this.dataEmissao = ''\r\n    this.dataFatoGerador = ''\r\n    this.ano = ''\r\n    this.mes = ''\r\n    this.discriminacaoServico = ''\r\n    this.valorServico = 0\r\n    this.valorDesconto = 0\r\n    this.valorDescontoIncond = 0\r\n    this.valorDescontoCond = 0\r\n    this.valorDescontosDiversos = 0\r\n    this.valorCredito = 0\r\n    this.valorLiquido = 0\r\n    this.valorBaseCalculo = 0\r\n    this.aliquota = 0\r\n    this.valorIss = 0\r\n    this.valorInss = 0\r\n    this.valorIr = 0\r\n    this.valorCsll = 0\r\n    this.valorPis = 0\r\n    this.valorCofins = 0\r\n    this.outrasRetencoes = 0\r\n    this.tipoRecolhimento = ''\r\n    this.pagaIssqnSomenteMunicipio = ''\r\n    this.idNaturezaOperacao = ''\r\n    this.idRegimeTributacao = ''\r\n    this.regimeTrbPgIss = ''\r\n    this.naturezaOperPgIss = ''\r\n    this.optanteSs = ''\r\n    this.incentivadorFiscal = ''\r\n    this.pagaIss = ''\r\n    this.codigoVerificacao = ''\r\n    this.rpsLoteId = ''\r\n    this.rpsLote = ''\r\n    this.rpsNumero = ''\r\n    this.rpsSerie = ''\r\n    this.rpsDataEmissao = ''\r\n    this.rpsTipo = ''\r\n    this.numeroArt = ''\r\n    this.numeroCei = ''\r\n    this.dataVigenciaInicial = ''\r\n    this.dataVigenciaFinal = ''\r\n    this.version = ''\r\n    this.localPrestacao = ''\r\n    this.valorIrrf = 0\r\n    this.valorSestSenat = 0\r\n    this.notaAvulsa = ''\r\n    \r\n    // Joins...\r\n    this.idMunicPrestacao = null\r\n    this.idCliente = null\r\n    this.idUsuario = null\r\n    this.idFichaRespostaPai = null\r\n    this.idFluxoInstanciaAtividade = null\r\n    this.idCntPrestador = null\r\n    this.idSerie = null\r\n    this.idPrestadorDados = null\r\n    this.idTomadorDados = null\r\n    this.idIntermediarioDados = null\r\n    this.idAtividade = null\r\n    this.idServicoItem = null\r\n    this.idNotaSubstituida = null\r\n  }\r\n}\r\n\r\nexport default NotaFiscal\r\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!./consultaNfse.css?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!./consultaNfse.css?vue&type=style&index=0&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container-fluid\"},[_c('div',[_c('div',{staticClass:\"card\"},[_vm._m(0),_c('div',{staticClass:\"card-body\"},[_c('exportar-notas-fiscais'),_c('error-list',{attrs:{\"erros\":_vm.erros}}),_c('cancelar-nota-fiscal'),_c('enviar-email-nota-fiscal'),_c('carta-correcao-nota-fiscal'),_c('consulta-declaracoes-nota-fiscal'),_c('analise-cancelamento-nota-fiscal'),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-2 col-lg-1 mb-3\"},[_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"type\":\"text\",\"id\":\"filtroNumero\",\"placeholder\":\"Número\",\"autocomplete\":\"off\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.pesquisar($event)}},model:{value:(_vm.filtroNumero),callback:function ($$v) {_vm.filtroNumero=$$v},expression:\"filtroNumero\"}})],1)]),_c('div',{staticClass:\"col-md-1 col-lg-1 mb-3\"},[_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"type\":\"text\",\"id\":\"filtroRpsNumero\",\"title\":\"Número RPS\",\"placeholder\":\"Número RPS\",\"autocomplete\":\"off\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.pesquisar($event)}},model:{value:(_vm.filtroRpsNumero),callback:function ($$v) {_vm.filtroRpsNumero=$$v},expression:\"filtroRpsNumero\"}})],1)]),_c('div',{staticClass:\"col-md-4 col-lg-2 mb-3\"},[_c('span',{staticClass:\"p-fluid\"},[_c('Calendar',{directives:[{name:\"maska\",rawName:\"v-maska\",value:('##/##/####'),expression:\"'##/##/####'\"}],attrs:{\"id\":\"dataIni\",\"name\":\"dataFim\",\"showIcon\":true,\"dateFormat\":\"dd/mm/yy\",\"placeholder\":\"Data Inicial\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.pesquisar($event)}},model:{value:(_vm.dataFatoGeradorIni),callback:function ($$v) {_vm.dataFatoGeradorIni=$$v},expression:\"dataFatoGeradorIni\"}})],1)]),_c('div',{staticClass:\"col-md-4 col-lg-2 mb-3\"},[_c('span',{staticClass:\"p-fluid\"},[_c('Calendar',{directives:[{name:\"maska\",rawName:\"v-maska\",value:('##/##/####'),expression:\"'##/##/####'\"}],attrs:{\"id\":\"dataFim\",\"name\":\"dataFim\",\"showIcon\":true,\"dateFormat\":\"dd/mm/yy\",\"placeholder\":\"Data Final\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.pesquisar($event)}},model:{value:(_vm.dataFatoGeradorFim),callback:function ($$v) {_vm.dataFatoGeradorFim=$$v},expression:\"dataFatoGeradorFim\"}})],1)]),_c('div',{staticClass:\"col-md-12 col-lg-4 mb-3\"},[_c('span',{staticClass:\"p-fluid\"},[_c('AutoComplete',{attrs:{\"id\":\"tomador\",\"dropdown\":true,\"suggestions\":_vm.filteredPessoas,\"field\":\"detail\",\"placeholder\":\"CPF/CNPJ/Nome Tomador\"},on:{\"complete\":function($event){return _vm.searchPessoa($event)},\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.pesquisar($event)}},model:{value:(_vm.selectedPessoa),callback:function ($$v) {_vm.selectedPessoa=$$v},expression:\"selectedPessoa\"}})],1)]),_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('span',{staticClass:\"p-fluid\"},[_c('Dropdown',{attrs:{\"id\":\"situacao\",\"options\":_vm.filtroSituacoes,\"optionLabel\":\"name\",\"title\":\"Selecione uma Situação\",\"placeholder\":\"Selecione uma Situação\"},model:{value:(_vm.filtroSituacao),callback:function ($$v) {_vm.filtroSituacao=$$v},expression:\"filtroSituacao\"}})],1)])]),(_vm.showFilterIntermediario)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12 col-lg-4 mb-3\"},[_c('span',{staticClass:\"p-fluid\"},[_c('AutoComplete',{attrs:{\"id\":\"intermediario\",\"dropdown\":true,\"suggestions\":_vm.filteredIntermediario,\"field\":\"detail\",\"placeholder\":\"CPF/CNPJ/Nome Intermediário\"},on:{\"complete\":function($event){return _vm.searchIntermediario($event)},\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.pesquisar($event)}},model:{value:(_vm.selectedIntermediario),callback:function ($$v) {_vm.selectedIntermediario=$$v},expression:\"selectedIntermediario\"}})],1)])]):_vm._e(),_c('div',{staticClass:\"mb-2\"},[_c('Button',{staticClass:\"p-button-primary mr-2\",attrs:{\"label\":\"Pesquisar\",\"type\":\"button\",\"icon\":\"pi pi-search\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.pesquisar()}}}),_c('Button',{staticClass:\"btn btn-primary mr-2\",attrs:{\"type\":\"button\",\"id\":\"dropdownMenuButton\",\"icon\":\"pi pi-angle-down\",\"label\":\"Imprimir\",\"data-toggle\":\"dropdown\",\"title\":\"Imprimir\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\",\"disabled\":_vm.loading}}),_c('div',{staticClass:\"dropdown-menu\",attrs:{\"aria-labelledby\":\"dropdownMenuButton\"}},[_c('button',{staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.imprimirConsultaNotaFiscal()}}},[_c('span',{staticClass:\"pi pi-print mr-2\"}),_vm._v(\"Notas Fiscais\\n            \")]),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.notaAvulsa && !_vm.devedorContumaz),expression:\"!notaAvulsa && !devedorContumaz\"}],staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.imprimirNotaFiscalAgrupadas()}}},[_c('span',{staticClass:\"pi pi-print mr-2\"}),_vm._v(\"Relação de Notas Fiscais\\n            \")]),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.notaAvulsa && !_vm.devedorContumaz),expression:\"!notaAvulsa && !devedorContumaz\"}],staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.imprimirRelacaoRetencoesNfse()}}},[_c('span',{staticClass:\"pi pi-print mr-2\"}),_vm._v(\"Relação de Retenções por Notas Fiscais\\n            \")]),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.notaAvulsa),expression:\"notaAvulsa\"}],staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.imprimirConsultaNotaFiscalAvulsaDam()}}},[_c('span',{staticClass:\"pi pi-print mr-2\"}),_vm._v(\"Relação de DAM de Notas Fiscais Avulsas\\n            \")]),_c('button',{staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.imprimirLivroFiscal()}}},[_c('span',{staticClass:\"pi pi-print mr-2\"}),_vm._v(\"Livro Fiscal\\n            \")]),_c('button',{staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.imprimirRelacaoChaveValidacao()}}},[_c('span',{staticClass:\"pi pi-print mr-2\"}),_vm._v(\"Relação de Chaves de Validação\\n            \")])]),_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.notaAvulsa),expression:\"!notaAvulsa\"}],staticClass:\"p-button-primary mr-2\",attrs:{\"label\":\"Exportar Notas Fiscais\",\"type\":\"button\",\"icon\":\"pi pi-download\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.exportar()}}}),_c('router-link',{attrs:{\"to\":\"/consultaNfseRps\"}},[_c('Button',{attrs:{\"type\":\"button\",\"icon\":\"pi pi-file\",\"label\":\"Lotes de RPS\",\"title\":\"Novo\",\"disabled\":_vm.loading}})],1)],1),_c('hr'),_c('div',{staticClass:\"row pr-3 pl-3\"},[_c('DataTable',{ref:\"dt\",attrs:{\"value\":_vm.nfseList,\"paginator\":true,\"rows\":10,\"autoLayout\":true},scopedSlots:_vm._u([{key:\"empty\",fn:function(){return [_vm._v(\"Nenhum resultado encontrado.\")]},proxy:true},{key:\"footer\",fn:function(){return [_c('div',{staticStyle:{\"text-align\":\"right\"}},[_c('Button',{attrs:{\"icon\":\"pi pi-external-link\",\"label\":\"Exportar para XLS\"},on:{\"click\":function($event){return _vm.imprimirExcel()}}})],1)]},proxy:true}])},[_c('Column',{scopedSlots:_vm._u([{key:\"body\",fn:function(slotProps){return [_c('div',{staticClass:\"dropdown\"},[_c('Button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\",\"id\":\"dropdownMenuButton\",\"icon\":\"pi pi-angle-down\",\"data-toggle\":\"dropdown\",\"title\":\"Opções\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"},on:{\"click\":function($event){return _vm.verificaDamGerado(slotProps.data.id)}}}),_c('div',{staticClass:\"dropdown-menu\",attrs:{\"aria-labelledby\":\"dropdownMenuButton\"}},[_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.exibirEmissaoDam(slotProps.data.damPago, slotProps.data.situacao, slotProps.data.idBolDevedorContumaz)),expression:\"exibirEmissaoDam(slotProps.data.damPago, slotProps.data.situacao, slotProps.data.idBolDevedorContumaz)\"}],staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.carregarVencimentoBoleto(\n                          slotProps.data.dataFatoGerador,\n                          slotProps.data.id\n                        )}}},[_c('span',{staticClass:\"pi pi-fw pi-calendar mr-2\"}),_vm._v(_vm._s(_vm.labelDam)+\"\\n                    \")]),(_vm.exibirImpressao(slotProps.data.damPago))?_c('button',{staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.visualizar(slotProps.data.id)}}},[_c('span',{staticClass:\"pi pi-search mr-2\"}),_vm._v(\"Visualizar\\n                    \")]):_vm._e(),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.exibirImpressao(slotProps.data.damPago)),expression:\"exibirImpressao(slotProps.data.damPago)\"}],staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.download(slotProps.data.id)}}},[_c('span',{staticClass:\"pi pi-download mr-2\"}),_vm._v(\"Download\\n                    \")]),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.exibirExportarXml(slotProps.data.damPago, slotProps.data.idBolDevedorContumaz)),expression:\"exibirExportarXml(slotProps.data.damPago, slotProps.data.idBolDevedorContumaz)\"}],staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.downloadXml(slotProps.data.id)}}},[_c('span',{staticClass:\"pi pi-download mr-2\"}),_vm._v(\"Exportar XML\\n                    \")]),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.exibirEnviarEmail(slotProps.data.damPago, slotProps.data.idBolDevedorContumaz)),expression:\"exibirEnviarEmail(slotProps.data.damPago, slotProps.data.idBolDevedorContumaz)\"}],staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading ||\n                      slotProps.data.situacao == 'Cancelada' ||\n                      slotProps.data.situacao == 'Substituída'},on:{\"click\":function($event){return _vm.enviarEmail(slotProps.data.id)}}},[_c('span',{staticClass:\"pi pi-envelope mr-2\"}),_vm._v(\"Enviar por\\n                      E-mail\\n                    \")]),_c('div',{staticClass:\"dropdown-divider\"}),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.exibirCartaCorrecao && _vm.exibirBotaoCartaCorrecao(slotProps.data.damPago, slotProps.data.idBolDevedorContumaz)),expression:\"exibirCartaCorrecao && exibirBotaoCartaCorrecao(slotProps.data.damPago, slotProps.data.idBolDevedorContumaz)\"}],staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading ||\n                      slotProps.data.situacao == 'Cancelada' ||\n                      slotProps.data.situacao == 'Substituída' ||\n                      _vm.inativo},on:{\"click\":function($event){return _vm.cartaCorrecaoNotaFiscal(slotProps.data)}}},[_c('span',{staticClass:\"pi pi-pencil mr-2\"}),_vm._v(\"Carta de Correção\\n                    \")]),_c('div',{staticClass:\"dropdown-divider\"}),_c('button',{staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading ||\n                      slotProps.data.situacao == 'Cancelada' ||\n                      slotProps.data.situacao == 'Substituída' ||\n                      slotProps.data.situacao ==\n                      'Em análise de Cancelamento' ||\n                      _vm.inativo},on:{\"click\":function($event){return _vm.cancelarNotaFiscal(slotProps.data)}}},[_c('span',{staticClass:\"pi pi-times mr-2\"}),_vm._v(\"Cancelar\\n                    \")]),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.currentUser.usuario.idBolAdmin\n                      ),expression:\"currentUser.usuario.idBolAdmin\\n                      \"}],staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading ||\n                        slotProps.data.situacao == 'Cancelada' ||\n                        slotProps.data.situacao == 'Substituída' ||\n                        _vm.inativo},on:{\"click\":function($event){return _vm.cancelarNotaFiscalDireta(slotProps.data)}}},[_c('span',{staticClass:\"pi pi-times mr-2\"}),_vm._v(\"Cancelar Nota\\n                      Prazo Vencido\\n                    \")]),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.notaAvulsa != true),expression:\"notaAvulsa != true\"}],staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading ||\n                      slotProps.data.situacao == 'Cancelada' ||\n                      slotProps.data.situacao == 'Substituída' ||\n                      slotProps.data.situacao ==\n                      'Em análise de Cancelamento' ||\n                      _vm.inativo},on:{\"click\":function($event){return _vm.substituirNotaFiscal(slotProps.data)}}},[_c('span',{staticClass:\"pi pi-refresh mr-2\"}),_vm._v(\"Substituir\\n                    \")]),_c('div',{staticClass:\"dropdown-divider\"}),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.exibirConsultaDeclaracao),expression:\"exibirConsultaDeclaracao\"}],staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.consultaDeclaracoesNfse(slotProps.data.id)}}},[_c('span',{staticClass:\"pi pi-file-o mr-2\"}),_vm._v(\"Consulta de Declarações\\n                    \")]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.notaAvulsa != true &&\n                      _vm.currentUser.usuario.idBolAdmin),expression:\"notaAvulsa != true &&\\n                      currentUser.usuario.idBolAdmin\"}],staticClass:\"dropdown-divider\"}),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.notaAvulsa != true &&\n                      _vm.currentUser.usuario.idBolAdmin),expression:\"notaAvulsa != true &&\\n                      currentUser.usuario.idBolAdmin\"}],staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading ||\n                        slotProps.data.situacao == 'Cancelada' ||\n                        slotProps.data.situacao == 'Substituída' ||\n                        slotProps.data.situacao ==\n                        'Em análise de Cancelamento' ||\n                        _vm.inativo},on:{\"click\":function($event){return _vm.analiseCancelamento(slotProps.data)}}},[_c('span',{staticClass:\"pi pi-pencil mr-2\"}),_vm._v(\"Análise Cancelamento/Substituição\\n                    \")]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.currentUser.usuario.idBolAdmin && slotProps.data.situacao === 'Cancelada'),expression:\"currentUser.usuario.idBolAdmin && slotProps.data.situacao === 'Cancelada'\"}],staticClass:\"dropdown-divider\"}),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.currentUser.usuario.idBolAdmin && slotProps.data.situacao === 'Cancelada'),expression:\"currentUser.usuario.idBolAdmin && slotProps.data.situacao === 'Cancelada'\"}],staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading || _vm.inativo},on:{\"click\":function($event){return _vm.confirmaDesfazerCancelamento(slotProps.data.id)}}},[_c('span',{staticClass:\"pi pi-pencil mr-2\"}),_vm._v(\"Desfazer Cancelamento Nota Fiscal\\n                    \")])])],1)]}}])}),_c('Column',{attrs:{\"field\":\"numero\",\"header\":\"Número\",\"bodyStyle\":\"text-align:right\"}}),_c('Column',{attrs:{\"field\":\"rpsNumero\",\"header\":\"Número RPS\",\"bodyStyle\":\"text-align:right\"}}),_c('Column',{attrs:{\"field\":\"competenciaFormatada\",\"header\":\"Competência\",\"bodyStyle\":\"text-align:center\"}}),_c('Column',{attrs:{\"field\":\"dataGeracaoFormatada\",\"header\":\"Geração\",\"bodyStyle\":\"text-align:center\"}}),_c('Column',{attrs:{\"headerStyle\":\"min-width: 10em\",\"field\":\"valorFormatado\",\"header\":\"Valor\",\"bodyStyle\":\"text-align:right\"}}),_c('Column',{attrs:{\"headerStyle\":\"min-width: 20em\",\"field\":\"tomadorDadosDetail\",\"header\":\"Tomador\"}}),_c('Column',{attrs:{\"field\":\"situacao\",\"header\":\"Situação\",\"bodyStyle\":\"text-align:center\"}})],1)],1)],1)])]),_c('Dialog',{style:({ width: '30vw' }),attrs:{\"header\":\"Aviso\",\"visible\":_vm.displayAtivaNota,\"modal\":true},on:{\"update:visible\":function($event){_vm.displayAtivaNota=$event}}},[_vm._v(\"\\n    Confirma a reativação da nota fiscal?\\n    \"),_c('hr'),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',[_c('Button',{staticClass:\"mr-2\",attrs:{\"label\":\"Sim\",\"icon\":\"pi pi-check\"},on:{\"click\":function($event){return _vm.desfazerCancelamento()}}})],1),_c('div',[_c('Button',{staticClass:\"p-button-secondary\",attrs:{\"label\":\"Não\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.displayAtivaNota = false}}})],1)])])]),_c('Dialog',{style:({ width: '42vw' }),attrs:{\"visible\":_vm.displayVencBoleto,\"contentStyle\":{ overflow: 'visible' },\"modal\":true},on:{\"update:visible\":function($event){_vm.displayVencBoleto=$event}}},[_c('h1',{staticClass:\"titulo-header\"},[_vm._v(\"\\n      DAM Nota Fiscal\\n      \"),_c('Button',{staticClass:\"p-button-rounded p-button-text\",attrs:{\"id\":\"icon-close-modals\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.displayVencBoleto = false}}})],1),_c('br'),_c('div',{staticClass:\"col-md-4 mb-8\"},[_c('label',{attrs:{\"for\":\"dataVencBoleto\"}},[_vm._v(\"Data de Vencimento: *\")]),_c('span',{staticClass:\"p-fluid\"},[_c('Calendar',{directives:[{name:\"maska\",rawName:\"v-maska\",value:('##/##/####'),expression:\"'##/##/####'\"}],key:_vm.keyVencBoleto,attrs:{\"id\":\"dataVencBoleto\",\"name\":\"dataVencBoleto\",\"showIcon\":true,\"dateFormat\":\"dd/mm/yy\"},model:{value:(_vm.dataVencimento),callback:function ($$v) {_vm.dataVencimento=$$v},expression:\"dataVencimento\"}})],1)]),_c('hr'),_c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"mb-2\"},[_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.damGerado != 'S'),expression:\"damGerado != 'S'\"}],staticClass:\"mr-2\",attrs:{\"label\":\"Gerar DAM\",\"icon\":\"pi pi-check\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.gerarDamNotaAvulsa()}}})],1),_c('div',{staticClass:\"mb-2\"},[_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.damGerado == 'S'),expression:\"damGerado == 'S'\"}],staticClass:\"mr-2\",attrs:{\"label\":\"Imprimir DAM\",\"icon\":\"pi pi-print\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.imprimirBoleto()}}})],1)]),(_vm.damGerado == 'S' && _vm.habilitarPix)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"mb-2\"},[_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.damGerado == 'S' && _vm.habilitarPix),expression:\"damGerado == 'S' && habilitarPix\"}],staticClass:\"p-button-outlined mr-2\",staticStyle:{\"margin-right\":\"0.5em\"},attrs:{\"type\":\"button\",\"label\":\"Pagar com PIX\",\"title\":\"Pagar com PIX\",\"icon\":\"pi pix-icon\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.criarPagamentoPix()}}})],1),_c('div',{staticClass:\"mb-2\"},[_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.damGerado == 'S'),expression:\"damGerado == 'S'\"}],staticClass:\"p-button-outlined mr-2\",attrs:{\"label\":\"Imprimir DAM PIX\",\"icon\":\"pi pix-icon\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.imprimirBoletoPix()}}})],1),_c('div',{staticClass:\"mb-2\"},[_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.damGerado == 'S' && _vm.habilitarPix),expression:\"damGerado == 'S' && habilitarPix\"}],staticClass:\"mr-2\",staticStyle:{\"margin-right\":\"0.5em\"},attrs:{\"title\":\"Consultar Pagamento PIX\",\"label\":\"Consultar Pagamento PIX\",\"icon\":\"pi pi-search\"},on:{\"click\":function($event){return _vm.consultarPagamentoPix()}}})],1)]):_vm._e(),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"mb-2\"},[_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.damGerado == 'S' && _vm.showCancDAMPetro),expression:\"damGerado == 'S' && showCancDAMPetro\"}],staticClass:\"p-button-danger mr-2\",attrs:{\"label\":\"Cancelar DAM\",\"icon\":\"pi pi-print\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.cancelarDamNotaAvulsa()}}}),_c('Button',{staticClass:\"p-button-secondary\",attrs:{\"label\":\"Fechar\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){return _vm.hideVencBoleto()}}})],1)])])]),_c('Dialog',{style:({ width: '40vw' }),attrs:{\"visible\":_vm.showPix,\"modal\":true},on:{\"update:visible\":function($event){_vm.showPix=$event}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('Button',{staticClass:\"p-button-outlined mr-2\",attrs:{\"icon\":\"pi pix-icon\"}}),_c('h3',[_vm._v(\"Pagar com PIX\")])]},proxy:true},{key:\"footer\",fn:function(){return [_c('Button',{staticClass:\"p-button-danger\",attrs:{\"label\":\"Fechar\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.showPix = false}}})]},proxy:true}])},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-6 mb-2\"},[_c('QRCanvas',{attrs:{\"options\":_vm.optionsPix}})],1),_c('div',{staticClass:\"col-md-6 mb-2\"},[_c('div',{staticStyle:{\"padding-top\":\"20px\"}},[_vm._v(\"\\n            Utilize o App de sua Instituição Financeira, na opção PIX escolha\\n            pagar com QR Code, confirme os dados e realize o Pagamento. \"),_c('br'),_c('br'),_c('span',{staticStyle:{\"font-weight\":\"bold\"}},[_vm._v(\"Valor Total:\\n              \"+_vm._s(this.pixGerado ? this.pixGerado.valorFormatado : 0))])])])]),(this.pixGerado && this.pixGerado.qrCode)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12 mb-2\"},[_c('Button',{attrs:{\"label\":\"Copiar Código PIX\",\"icon\":\"pi pi-copy\"},on:{\"click\":function($event){return _vm.copiarPix()}}})],1)]):_vm._e()])]),_c('Dialog',{staticClass:\"test-box\",attrs:{\"visible\":_vm.showBloqSubstituicaoNota,\"modal\":true,\"closable\":false},on:{\"update:visible\":function($event){_vm.showBloqSubstituicaoNota=$event}}},[_c('h1',{staticClass:\"titulo-header\"},[_vm._v(\"\\n      Substituição de Nota Fiscal\\n      \"),_c('Button',{staticClass:\"p-button-rounded p-button-text\",attrs:{\"id\":\"icon-close-modals\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.showBloqSubstituicaoNota = false}}})],1),_c('br'),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12 mb-2 mensagem-cancelamento\"},[_c('p',{staticClass:\"mensagem-substituicao\"},[_vm._v(_vm._s(_vm.mensagemSubstituicaoPrazo))])])]),(_vm.utilizarTermoSubstituicao)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12 mb-2\"},[_c('label',{attrs:{\"for\":\"tipoTomador\"}},[_vm._v(\"Observação: *\")]),_c('span',{staticClass:\"p-fluid\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.obsSubstituicao),expression:\"obsSubstituicao\"}],attrs:{\"rows\":\"5\",\"maxlength\":\"255\"},domProps:{\"value\":(_vm.obsSubstituicao)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.obsSubstituicao=$event.target.value}}})])])]):_vm._e()]),_c('hr'),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-danger\",attrs:{\"type\":\"button\",\"label\":\"Fechar\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.showBloqSubstituicaoNota = false}}}),(_vm.utilizarTermoSubstituicao)?_c('Button',{staticClass:\"p-button-primary mr-2 p-button-success\",attrs:{\"href\":\"#topo\",\"type\":\"button\",\"label\":\"Emitir Termo de Substituição\",\"icon\":\"pi pi-file\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.emitirTermo()}}}):_vm._e()],1)])])])],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card-header\",attrs:{\"id\":\"topo\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col col-xs-2\"},[_c('h4',{staticClass:\"panel-title\"},[_c('span',{staticClass:\"title\"},[_vm._v(\"Consulta e gerenciamento das Notas Fiscais de Serviço\\n                emitidas.\")]),_c('br'),_c('span',{staticClass:\"navigation\"},[_vm._v(\"Nota Fiscal > Consulta\")])])])])])}]\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_c('exportar-nfse-maior-periodo'),_c('Dialog',{staticClass:\"test-box\",attrs:{\"header\":\"Exportar Notas Fiscais\",\"visible\":_vm.showExportarNotas,\"contentStyle\":{ overflow: 'visible', width: '600px' },\"modal\":true,\"closable\":false},on:{\"update:visible\":function($event){_vm.showExportarNotas=$event}}},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\",attrs:{\"id\":\"topo\"}},[_c('div',{staticClass:\"col-md-4 col-lg-6 mb-3\"},[_c('span',{staticClass:\"p-fluid\"},[_c('Calendar',{directives:[{name:\"maska\",rawName:\"v-maska\",value:('##/##/####'),expression:\"'##/##/####'\"}],attrs:{\"id\":\"dataIni\",\"name\":\"dataFim\",\"showIcon\":true,\"dateFormat\":\"dd/mm/yy\",\"placeholder\":\"Data Inicial*\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.pesquisar($event)}},model:{value:(_vm.dataFatoGeradorIni),callback:function ($$v) {_vm.dataFatoGeradorIni=$$v},expression:\"dataFatoGeradorIni\"}})],1)]),_c('div',{staticClass:\"col-md-4 col-lg-6 mb-3\"},[_c('span',{staticClass:\"p-fluid\"},[_c('Calendar',{directives:[{name:\"maska\",rawName:\"v-maska\",value:('##/##/####'),expression:\"'##/##/####'\"}],attrs:{\"id\":\"dataFim\",\"name\":\"dataFim\",\"showIcon\":true,\"dateFormat\":\"dd/mm/yy\",\"placeholder\":\"Data Final*\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.pesquisar($event)}},model:{value:(_vm.dataFatoGeradorFim),callback:function ($$v) {_vm.dataFatoGeradorFim=$$v},expression:\"dataFatoGeradorFim\"}})],1)])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12 col-lg-12 mb-3\"},[_c('span',{staticClass:\"p-fluid\"},[_c('AutoComplete',{attrs:{\"id\":\"tomador\",\"dropdown\":true,\"suggestions\":_vm.filteredPessoas,\"field\":\"detail\",\"placeholder\":\"Pesquisar CPF/CNPJ/Nome Tomador\"},on:{\"complete\":function($event){return _vm.searchPessoa($event)},\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.pesquisar($event)}},model:{value:(_vm.selectedPessoa),callback:function ($$v) {_vm.selectedPessoa=$$v},expression:\"selectedPessoa\"}})],1)])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12 col-lg-12 mb-3\"},[_c('span',{staticClass:\"p-fluid\"},[_c('AutoComplete',{attrs:{\"id\":\"servico\",\"dropdown\":true,\"suggestions\":_vm.filteredServicos,\"field\":\"detail\",\"placeholder\":\"Pesquisar Serviço\"},on:{\"complete\":function($event){return _vm.searchServico($event)}},scopedSlots:_vm._u([{key:\"item\",fn:function(slotProps){return [_c('div',{staticClass:\"p-fluid\",staticStyle:{\"max-width\":\"50vw\"}},[_vm._v(\"\\n                      \"+_vm._s(slotProps.item.detail)+\"\\n                    \")])]}}]),model:{value:(_vm.selectedServico),callback:function ($$v) {_vm.selectedServico=$$v},expression:\"selectedServico\"}})],1)])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12 mb-2\"},[_c('span',{staticClass:\"p-fluid\"},[_c('Dropdown',{attrs:{\"id\":\"situacao\",\"options\":_vm.filtroSituacoes,\"optionLabel\":\"name\",\"placeholder\":\"Selecione uma Situação\"},model:{value:(_vm.filtroSituacao),callback:function ($$v) {_vm.filtroSituacao=$$v},expression:\"filtroSituacao\"}})],1)])])]),_c('hr'),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-success\",attrs:{\"href\":\"#topo\",\"type\":\"button\",\"label\":\"Exportar Notas Fiscais\",\"icon\":\"pi pi-download\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.downloadListagemXml()}}})],1),_c('div',[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-danger\",attrs:{\"type\":\"button\",\"label\":\"Fechar\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.showExportarNotas = false}}})],1),_c('div',[_c('Button',{staticClass:\"p-button-primary mr-2 p-button\",attrs:{\"href\":\"#topo\",\"type\":\"button\",\"label\":\"Exportar Período Maior\",\"icon\":\"pi pi-download\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.exportarMaiorPeriodo()}}})],1)])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_c('Dialog',{staticClass:\"test-box\",attrs:{\"header\":\"Exportar Notas Fiscais Maior Período\",\"visible\":_vm.showExportarNfsePeriodo,\"contentStyle\":{ overflow: 'visible', width: '1000px' },\"modal\":true,\"closable\":false},on:{\"update:visible\":function($event){_vm.showExportarNfsePeriodo=$event}}},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\",staticStyle:{\"margin-right\":\"380px\"},attrs:{\"id\":\"topo\"}},[_c('div',{staticClass:\"col-md-4 col-lg-6 mb-3\"},[_c('span',{staticClass:\"p-fluid\"},[_c('Calendar',{directives:[{name:\"maska\",rawName:\"v-maska\",value:('##/##/####'),expression:\"'##/##/####'\"}],attrs:{\"id\":\"dataIni\",\"name\":\"dataIni\",\"showIcon\":true,\"dateFormat\":\"dd/mm/yy\",\"placeholder\":\"Data Inicial*\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.pesquisar($event)}},model:{value:(_vm.dataFatoGeradorIni),callback:function ($$v) {_vm.dataFatoGeradorIni=$$v},expression:\"dataFatoGeradorIni\"}})],1)]),_c('div',{staticClass:\"col-md-4 col-lg-6 mb-3\"},[_c('span',{staticClass:\"p-fluid\"},[_c('Calendar',{directives:[{name:\"maska\",rawName:\"v-maska\",value:('##/##/####'),expression:\"'##/##/####'\"}],attrs:{\"id\":\"dataFin\",\"name\":\"dataFin\",\"showIcon\":true,\"dateFormat\":\"dd/mm/yy\",\"placeholder\":\"Data Final*\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.pesquisar($event)}},model:{value:(_vm.dataFatoGeradorFim),callback:function ($$v) {_vm.dataFatoGeradorFim=$$v},expression:\"dataFatoGeradorFim\"}})],1)])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12 col-lg-12 mb-3\"},[_c('span',{staticClass:\"p-fluid\"},[_c('AutoComplete',{staticStyle:{\"width\":\"50vw\",\"margin-right\":\"140px\"},attrs:{\"id\":\"tomador\",\"dropdown\":true,\"suggestions\":_vm.filteredPessoas,\"field\":\"detail\",\"placeholder\":\"Pesquisar CPF/CNPJ/Nome Tomador\"},on:{\"complete\":function($event){return _vm.searchPessoa($event)},\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.pesquisar($event)}},model:{value:(_vm.selectedPessoa),callback:function ($$v) {_vm.selectedPessoa=$$v},expression:\"selectedPessoa\"}})],1)])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12 col-lg-12 mb-3\"},[_c('span',{staticClass:\"p-fluid\"},[_c('AutoComplete',{staticStyle:{\"width\":\"50vw\",\"margin-right\":\"140px\"},attrs:{\"id\":\"servico\",\"dropdown\":true,\"suggestions\":_vm.filteredServicos,\"field\":\"detail\",\"placeholder\":\"Pesquisar Serviço\"},on:{\"complete\":function($event){return _vm.searchServico($event)}},scopedSlots:_vm._u([{key:\"item\",fn:function(slotProps){return [_c('div',{staticClass:\"p-fluid\",staticStyle:{\"max-width\":\"50vw\"}},[_vm._v(\"\\n                  \"+_vm._s(slotProps.item.detail)+\"\\n                \")])]}}]),model:{value:(_vm.selectedServico),callback:function ($$v) {_vm.selectedServico=$$v},expression:\"selectedServico\"}})],1)])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12 mb-2\"},[_c('span',{staticClass:\"p-fluid\"},[_c('Dropdown',{staticStyle:{\"width\":\"50vw\",\"margin-right\":\"140px\"},attrs:{\"id\":\"situacao\",\"options\":_vm.filtroSituacoes,\"optionLabel\":\"name\",\"placeholder\":\"Selecione uma Situação\"},model:{value:(_vm.filtroSituacao),callback:function ($$v) {_vm.filtroSituacao=$$v},expression:\"filtroSituacao\"}})],1)])]),_c('Toast',{staticStyle:{\"width\":\"700px\"},attrs:{\"position\":\"bottom-center\",\"group\":\"bc\"},scopedSlots:_vm._u([{key:\"message\",fn:function(slotProps){return [_c('div',{staticClass:\"flex flex-column\"},[_c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"pi pi-info-circle\",staticStyle:{\"font-size\":\"3rem\"}}),_c('h4',{staticStyle:{\"font-weight\":\"bold\"}},[_vm._v(_vm._s(slotProps.message.summary))]),_c('p',{staticClass:\"msg-export\"},[_vm._v(_vm._s(slotProps.message.detail))]),_c('p',{staticClass:\"msg-export\"},[_vm._v(\"\\n                Assim que a exportação for finalizada, você receberá um e-mail de confirmação.\\n              \")])])])]}}])}),_c('div',{staticStyle:{\"margin-top\":\"20px\"}}),_c('TabView',[_c('TabPanel',{attrs:{\"header\":\"Status de Exportações\"}},[_c('DataTable',{staticClass:\"p-datatable-responsive\",staticStyle:{\"min-width\":\"880px\"},attrs:{\"value\":_vm.exportsList,\"paginator\":true,\"rows\":4,\"autoLayout\":true}},[_c('Column',{attrs:{\"headerStyle\":\"width: 12em\",\"bodyStyle\":\"text-align: center\",\"header\":\"Exportação\"},scopedSlots:_vm._u([{key:\"body\",fn:function(slotProps){return [_c('Button',{staticStyle:{\"margin-right\":\".5em\"},attrs:{\"disabled\":slotProps.data.status !== 'Concluído',\"type\":\"button\",\"icon\":\"pi pi-download\"},on:{\"click\":function($event){return _vm.downloadExportacao(slotProps.data.id)}}})]}}])}),_c('Column',{attrs:{\"field\":\"dataSolicitacaoFormatada\",\"header\":\"Data Solicitação\"}}),_c('Column',{attrs:{\"field\":\"dataInicial\",\"header\":\"Data Início\"}}),_c('Column',{attrs:{\"field\":\"dataFinal\",\"header\":\"Data Término\"}}),_c('Column',{attrs:{\"field\":\"status\",\"header\":\"Status\"}})],1)],1)],1)],1),_c('hr'),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-success\",attrs:{\"href\":\"#topo\",\"type\":\"button\",\"label\":\"Exportar Notas Fiscais\",\"icon\":\"pi pi-download\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.solicitarExportacao()}}})],1),_c('div',[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-danger\",attrs:{\"type\":\"button\",\"label\":\"Fechar\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.showExportarNfsePeriodo = false}}})],1)])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n  <span>\r\n    <Dialog\r\n      class=\"test-box\"\r\n      header=\"Exportar Notas Fiscais Maior Período\"\r\n      :visible.sync=\"showExportarNfsePeriodo\"\r\n      :contentStyle=\"{ overflow: 'visible', width: '1000px' }\"\r\n      :modal=\"true\"\r\n      :closable=\"false\"\r\n    >\r\n      <div class=\"container\">\r\n        <div id=\"topo\" class=\"row\" style=\"margin-right: 380px;\">\r\n          <div class=\"col-md-4 col-lg-6 mb-3\">\r\n            <span class=\"p-fluid\">\r\n              <Calendar\r\n                id=\"dataIni\"\r\n                name=\"dataIni\"\r\n                v-model=\"dataFatoGeradorIni\"\r\n                :showIcon=\"true\"\r\n                dateFormat=\"dd/mm/yy\"\r\n                placeholder=\"Data Inicial*\"\r\n                @keyup.enter=\"pesquisar\"\r\n                v-maska=\"'##/##/####'\"\r\n              />\r\n            </span>\r\n          </div>\r\n          <div class=\"col-md-4 col-lg-6 mb-3\">\r\n            <span class=\"p-fluid\">\r\n              <Calendar\r\n                id=\"dataFin\"\r\n                name=\"dataFin\"\r\n                v-model=\"dataFatoGeradorFim\"\r\n                :showIcon=\"true\"\r\n                dateFormat=\"dd/mm/yy\"\r\n                placeholder=\"Data Final*\"\r\n                @keyup.enter=\"pesquisar\"\r\n                v-maska=\"'##/##/####'\"\r\n              />\r\n            </span>\r\n          </div>\r\n        </div>\r\n        <div class=\"row\">\r\n          <div class=\"col-md-12 col-lg-12 mb-3\">\r\n            <span class=\"p-fluid\">\r\n              <AutoComplete\r\n                id=\"tomador\"\r\n                v-model=\"selectedPessoa\"\r\n                :dropdown=\"true\"\r\n                :suggestions=\"filteredPessoas\"\r\n                @complete=\"searchPessoa($event)\"\r\n                @keyup.enter=\"pesquisar\"\r\n                field=\"detail\"\r\n                placeholder=\"Pesquisar CPF/CNPJ/Nome Tomador\"\r\n                style=\"width: 50vw; margin-right: 140px;\"\r\n              />\r\n            </span>\r\n          </div>\r\n        </div>\r\n        <div class=\"row\">\r\n          <div class=\"col-md-12 col-lg-12 mb-3\">\r\n            <span class=\"p-fluid\">\r\n              <AutoComplete\r\n                id=\"servico\"\r\n                v-model=\"selectedServico\"\r\n                :dropdown=\"true\"\r\n                :suggestions=\"filteredServicos\"\r\n                field=\"detail\"\r\n                @complete=\"searchServico($event)\"\r\n                placeholder=\"Pesquisar Serviço\"\r\n                style=\"width: 50vw; margin-right: 140px;\"\r\n              >\r\n                <template #item=\"slotProps\">\r\n                  <div class=\"p-fluid\" style=\"max-width: 50vw\">\r\n                    {{ slotProps.item.detail }}\r\n                  </div>\r\n                </template>\r\n              </AutoComplete>\r\n            </span>\r\n          </div>\r\n        </div>\r\n          <div class=\"row\">\r\n            <div class=\"col-md-12 mb-2\">\r\n              <span class=\"p-fluid\">\r\n                <Dropdown id=\"situacao\" v-model=\"filtroSituacao\" :options=\"filtroSituacoes\" optionLabel=\"name\"\r\n                  placeholder=\"Selecione uma Situação\"\r\n                  style=\"width: 50vw; margin-right: 140px;\" />\r\n              </span>\r\n            </div>\r\n        </div>\r\n\r\n        <Toast style=\"width: 700px;\" position=\"bottom-center\" group=\"bc\">\r\n          <template #message=\"slotProps\">\r\n            <div class=\"flex flex-column\">\r\n              <div class=\"text-center\">\r\n                <i class=\"pi pi-info-circle\" style=\"font-size: 3rem\"></i>\r\n                <h4 style=\"font-weight: bold\">{{slotProps.message.summary}}</h4>\r\n                <p class=\"msg-export\">{{slotProps.message.detail}}</p>\r\n                <p class=\"msg-export\">\r\n                  Assim que a exportação for finalizada, você receberá um e-mail de confirmação.\r\n                </p>\r\n              </div>\r\n            </div>\r\n          </template>\r\n        </Toast>\r\n\r\n        <div style=\"margin-top: 20px\"></div>\r\n        <TabView>\r\n          <TabPanel header=\"Status de Exportações\">\r\n            <DataTable style=\"min-width: 880px\" :value=\"exportsList\" :paginator=\"true\" :rows=\"4\" class=\"p-datatable-responsive\"\r\n              :autoLayout=\"true\">\r\n              <Column headerStyle=\"width: 12em\" bodyStyle=\"text-align: center\" header=\"Exportação\">\r\n                <template #body=\"slotProps\">\r\n                  <Button \r\n                    :disabled=\"slotProps.data.status !== 'Concluído'\" \r\n                    type=\"button\" \r\n                    icon=\"pi pi-download\" \r\n                    style=\"margin-right: .5em\" \r\n                    @click=\"downloadExportacao(slotProps.data.id)\"\r\n                  >\r\n                  </Button>\r\n                </template>\r\n              </Column>\r\n              <Column field=\"dataSolicitacaoFormatada\" header=\"Data Solicitação\"></Column>\r\n              <Column field=\"dataInicial\" header=\"Data Início\"></Column>\r\n              <Column field=\"dataFinal\" header=\"Data Término\"></Column>\r\n              <Column field=\"status\" header=\"Status\"></Column>\r\n            </DataTable>\r\n          </TabPanel>\r\n        </TabView>\r\n      </div>\r\n\r\n      <hr />\r\n\r\n      <div class=\"container\">\r\n        <div class=\"row\">\r\n          <div>\r\n            <Button\r\n              @click=\"solicitarExportacao()\"\r\n              href=\"#topo\"\r\n              type=\"button\"\r\n              label=\"Exportar Notas Fiscais\"\r\n              class=\"p-button-primary mr-2 p-button-success\"\r\n              icon=\"pi pi-download\"\r\n              :disabled=\"loading\"\r\n            />\r\n          </div>\r\n\r\n          <div>\r\n            <Button\r\n              @click=\"showExportarNfsePeriodo = false\"\r\n              type=\"button\"\r\n              label=\"Fechar\"\r\n              class=\"p-button-primary mr-2 p-button-danger\"\r\n              icon=\"pi pi-times\"\r\n            />\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </Dialog>\r\n  </span>\r\n</template>\r\n\r\n<script>\r\nimport { maska } from 'maska'\r\nimport ContribuinteServicoService from \"@/services/tributario/contribuinte.servico.service\";\r\nimport NotaFiscalService from \"@/services/nfse/notafiscal.service\";\r\nimport PessoaService from \"@/services/nfse/pessoa.service\";\r\nimport LoginService from \"@/services/acesso/login.service\";\r\nimport ReportService from \"@/services/report.service\";\r\n\r\nexport default {\r\n  directives: { maska },\r\n  name: \"ExportarNfseMaiorPeriodo\",\r\n\r\n  created() {\r\n    this.currentUser = LoginService.currentUserValue;\r\n    this.notaAvulsa = this.currentUser.emiteNotaAvulsa;\r\n\r\n    this.consultaSolicitacoes();\r\n\r\n    this.$root.$on(\"notaFiscal:exportarMaiorPeriodo\", () => {\r\n      this.showExportarNfsePeriodo = true;\r\n      this.dataFatoGeradorIni = null;\r\n      this.dataFatoGeradorFim = null;\r\n      this.selectedPessoa = null;\r\n      this.filteredPessoas = null;\r\n      this.selectedServico = null;\r\n      this.filteredServicos = null;\r\n    });\r\n  },\r\n\r\n  data() {\r\n    return {\r\n      loading: false,\r\n      showExportarNfsePeriodo: false,\r\n      currentUser: null,\r\n      dataFatoGeradorIni: null,\r\n      dataFatoGeradorFim: null,\r\n      selectedPessoa: null,\r\n      filteredPessoas: null,\r\n      selectedServico: null,\r\n      filteredServicos: null,\r\n      notaAvulsa: null,\r\n      filtroSituacao: \"\",\r\n      filtroSituacoes: [\r\n        { name: \"Todos\", key: \"T\" },\r\n        { name: \"Ativa\", key: \"A\" },\r\n        { name: \"Cancelada\", key: \"C\" },\r\n        { name: \"Substituida\", key: \"S\" }\r\n      ],\r\n      exportsList: []\r\n    };\r\n  },\r\n\r\n  methods: {\r\n    searchPessoa(event) {\r\n      setTimeout(async () => {\r\n        this.filteredPessoas = await PessoaService.findAllByConttribuinteFiltro(\r\n          event.query,\r\n          \"\"\r\n        );\r\n      }, 550);\r\n    },\r\n    searchServico(event) {\r\n      if (this.currentUser.configuracao.idBolHabilitaCnaeNf == \"N\") {\r\n        if (this.notaAvulsa) {\r\n          // Se for nota avulsa exibir todos os serviços\r\n          setTimeout(async () => {\r\n            this.filteredServicos =\r\n              await ContribuinteServicoService.findAllNfAvulsa(\r\n                event.query,\r\n                this.currentUser.contribuinte.idContribuinte\r\n              );\r\n          }, 250);\r\n        } else {\r\n          setTimeout(async () => {\r\n            this.filteredServicos =\r\n              await ContribuinteServicoService.findAllServicosByContribuinteFiltro(\r\n                event.query,\r\n                this.currentUser.contribuinte.idContribuinte\r\n              );\r\n          }, 250);\r\n        }\r\n      }\r\n    },\r\n    consultaSolicitacoes(){\r\n      NotaFiscalService.findSolicitExportNfse(\r\n        this.currentUser.contribuinte.idContribuinte\r\n      ).then(\r\n        (data) => {\r\n          this.exportsList = data.data;\r\n          console.log(this.exportsList);\r\n        }\r\n      )\r\n    },\r\n    solicitarExportacao() {\r\n      var msg = null;\r\n      if (!this.currentUser.contribuinte.idContribuinte) {\r\n        msg = \"É necessário informar o contribuinte!\";\r\n      } else if (!this.dataFatoGeradorIni) {\r\n        msg = \"É necessário informar a data Inicial!\";\r\n      } else if (!this.dataFatoGeradorFim) {\r\n        msg = \"É necessário informar a data Final!\";\r\n      } else if(!this.filtroSituacao && !this.filtroSituacao.key){\r\n        msg = \"É necessário informar uma Situação!\"\r\n      }else{\r\n        const dataIni = new Date(this.dataFatoGeradorIni);\r\n        const dataFim = new Date(this.dataFatoGeradorFim);\r\n        const diffTime = dataFim - dataIni;\r\n        const diffDays = diffTime / (1000 * 60 * 60 * 24);\r\n\r\n        if (diffDays < 90) {\r\n          msg = \"Para exportações de até 90 dias, é mais viável utilizar a Exportação Normal.\";\r\n        }\r\n      }\r\n\r\n      if (!msg) {\r\n        this.$toast.add({\r\n          group: \"bc\",\r\n          severity: \"info\",\r\n          summary: \"Exportação em Andamento\",\r\n          detail:\r\n            \"A exportação foi iniciada e será processada em fila. Esse processo pode levar algumas horas para ser concluído, se houver grande volume de dados e à execução em rotina.\",\r\n          life: 15000,\r\n        });\r\n\r\n        this.processando(true);\r\n        console.log(this.filtroSituacao);\r\n        console.log(this.filtroSituacao.key);\r\n        console.log(this.dataFatoGeradorFim);\r\n        NotaFiscalService.solicitarExportacoNfse(\r\n          this.currentUser.contribuinte.idContribuinte,\r\n          this.currentUser.usuario.idUsuario,\r\n          this.dataFatoGeradorIni,\r\n          this.dataFatoGeradorFim,\r\n          (this.selectedPessoa && this.selectedPessoa.documento ? this.selectedPessoa.documento : \"\"),\r\n          (this.selectedServico && this.selectedServico.idServico ? this.selectedServico.idServico.idServicoItem : \"\"),\r\n          (this.filtroSituacao && this.filtroSituacao.key != \"T\" ? this.filtroSituacao.key : null )\r\n        )\r\n          .then(\r\n            (data) => {\r\n              this.$root.$emit(\"alert:success\", \"Exportação Solicitada com Sucesso!\");\r\n              console.log(data);\r\n              this.consultaSolicitacoes();\r\n            },\r\n            (error) => {\r\n              console.log(error);\r\n            }\r\n          )\r\n          .then(() => {\r\n            this.processando(false);\r\n          });\r\n      } else {\r\n        this.$root.$emit(\"alert:warn\", msg);\r\n      }\r\n    },\r\n    downloadExportacao(idSolicitacao){\r\n      ReportService.downloadExportacoesMaiorPer(\r\n        idSolicitacao,\r\n        this.$root\r\n      ).then(\r\n          (data) => {\r\n            console.log(data);\r\n          },\r\n          (error) => {\r\n            console.log(error);\r\n          }\r\n      ).then(() => {\r\n          this.processando(false);\r\n        });\r\n    },\r\n    processando(show) {\r\n      if (show) {\r\n        this.loading = true;\r\n        this.$root.$emit(\"loading:show\");\r\n      } else {\r\n        this.loading = false;\r\n        this.$root.$emit(\"loading:hide\");\r\n      }\r\n    },\r\n  },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n  .msg-export{\r\n    margin-top: 10px;\r\n    text-align: left;\r\n  }\r\n</style>","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExportarNfseMaiorPeriodo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExportarNfseMaiorPeriodo.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ExportarNfseMaiorPeriodo.vue?vue&type=template&id=0d6d4992&scoped=true&\"\nimport script from \"./ExportarNfseMaiorPeriodo.vue?vue&type=script&lang=js&\"\nexport * from \"./ExportarNfseMaiorPeriodo.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ExportarNfseMaiorPeriodo.vue?vue&type=style&index=0&id=0d6d4992&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  \"0d6d4992\",\n  null\n  \n)\n\nexport default component.exports","<template>\r\n  <span>\r\n    <exportar-nfse-maior-periodo />\r\n    <Dialog\r\n      class=\"test-box\"\r\n      header=\"Exportar Notas Fiscais\"\r\n      :visible.sync=\"showExportarNotas\"\r\n      :contentStyle=\"{ overflow: 'visible', width: '600px' }\"\r\n      :modal=\"true\"\r\n      :closable=\"false\"\r\n    >\r\n      <div class=\"container\">\r\n        <div id=\"topo\" class=\"row\">\r\n          <div class=\"col-md-4 col-lg-6 mb-3\">\r\n            <span class=\"p-fluid\">\r\n              <Calendar\r\n                id=\"dataIni\"\r\n                name=\"dataFim\"\r\n                v-model=\"dataFatoGeradorIni\"\r\n                :showIcon=\"true\"\r\n                dateFormat=\"dd/mm/yy\"\r\n                placeholder=\"Data Inicial*\"\r\n                @keyup.enter=\"pesquisar\"\r\n                v-maska=\"'##/##/####'\"\r\n              />\r\n            </span>\r\n          </div>\r\n          <div class=\"col-md-4 col-lg-6 mb-3\">\r\n            <span class=\"p-fluid\">\r\n              <Calendar\r\n                id=\"dataFim\"\r\n                name=\"dataFim\"\r\n                v-model=\"dataFatoGeradorFim\"\r\n                :showIcon=\"true\"\r\n                dateFormat=\"dd/mm/yy\"\r\n                placeholder=\"Data Final*\"\r\n                @keyup.enter=\"pesquisar\"\r\n                v-maska=\"'##/##/####'\"\r\n              />\r\n            </span>\r\n          </div>\r\n        </div>\r\n        <div class=\"row\">\r\n          <div class=\"col-md-12 col-lg-12 mb-3\">\r\n            <span class=\"p-fluid\">\r\n              <AutoComplete\r\n                id=\"tomador\"\r\n                v-model=\"selectedPessoa\"\r\n                :dropdown=\"true\"\r\n                :suggestions=\"filteredPessoas\"\r\n                @complete=\"searchPessoa($event)\"\r\n                @keyup.enter=\"pesquisar\"\r\n                field=\"detail\"\r\n                placeholder=\"Pesquisar CPF/CNPJ/Nome Tomador\"\r\n              />\r\n            </span>\r\n          </div>\r\n        </div>\r\n        <div class=\"row\">\r\n            <div class=\"col-md-12 col-lg-12 mb-3\">\r\n              <span class=\"p-fluid\">\r\n                <AutoComplete\r\n                  id=\"servico\"\r\n                  v-model=\"selectedServico\"\r\n                  :dropdown=\"true\"\r\n                  :suggestions=\"filteredServicos\"\r\n                  field=\"detail\"\r\n                  @complete=\"searchServico($event)\"\r\n                  placeholder=\"Pesquisar Serviço\"\r\n                >\r\n                  <template #item=\"slotProps\">\r\n                    <div class=\"p-fluid\" style=\"max-width: 50vw\">\r\n                      {{ slotProps.item.detail }}\r\n                    </div>\r\n                  </template>\r\n                </AutoComplete>\r\n              </span>\r\n            </div>\r\n          </div>\r\n          <div class=\"row\">\r\n          <div class=\"col-md-12 mb-2\">\r\n            <span class=\"p-fluid\">\r\n              <Dropdown id=\"situacao\" v-model=\"filtroSituacao\" :options=\"filtroSituacoes\" optionLabel=\"name\"\r\n                placeholder=\"Selecione uma Situação\" />\r\n            </span>\r\n\t\t\t\t\t</div>\r\n        </div>\r\n      </div>\r\n\r\n      <hr />\r\n\r\n      <div class=\"container\">\r\n        <div class=\"row\">\r\n          <div>\r\n            <Button\r\n              @click=\"downloadListagemXml()\"\r\n              href=\"#topo\"\r\n              type=\"button\"\r\n              label=\"Exportar Notas Fiscais\"\r\n              class=\"p-button-primary mr-2 p-button-success\"\r\n              icon=\"pi pi-download\"\r\n              :disabled=\"loading\"\r\n            />\r\n          </div>\r\n\r\n          <div>\r\n            <Button\r\n              @click=\"showExportarNotas = false\"\r\n              type=\"button\"\r\n              label=\"Fechar\"\r\n              class=\"p-button-primary mr-2 p-button-danger\"\r\n              icon=\"pi pi-times\"\r\n            />\r\n          </div>\r\n\r\n          <div>\r\n            <Button\r\n              @click=\"exportarMaiorPeriodo()\"\r\n              href=\"#topo\"\r\n              type=\"button\"\r\n              label=\"Exportar Período Maior\"\r\n              class=\"p-button-primary mr-2 p-button\"\r\n              icon=\"pi pi-download\"\r\n              :disabled=\"loading\"\r\n            />\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </Dialog>\r\n  </span>\r\n</template>\r\n\r\n<script>\r\nimport { maska } from 'maska'\r\nimport ContribuinteServicoService from \"@/services/tributario/contribuinte.servico.service\";\r\nimport PessoaService from \"@/services/nfse/pessoa.service\";\r\nimport LoginService from \"@/services/acesso/login.service\";\r\nimport ReportService from \"@/services/report.service\";\r\nimport ExportarNfseMaiorPeriodo from './ExportarNfseMaiorPeriodo.vue';\r\n\r\nexport default {\r\n  directives: { maska },\r\n  name: \"ExportarNotasFiscais\",\r\n  components: { ExportarNfseMaiorPeriodo },\r\n\r\n  created() {\r\n    this.currentUser = LoginService.currentUserValue;\r\n    this.notaAvulsa = this.currentUser.emiteNotaAvulsa;\r\n\r\n    this.$root.$on(\"notaFiscal:exportar\", () => {\r\n      this.showExportarNotas = true;\r\n      this.dataFatoGeradorIni = null;\r\n      this.dataFatoGeradorFim = null;\r\n      this.selectedPessoa = null;\r\n      this.filteredPessoas = null;\r\n      this.selectedServico = null;\r\n      this.filteredServicos = null;\r\n    });\r\n  },\r\n\r\n  data() {\r\n    return {\r\n      showExportarNotas: false,\r\n      currentUser: null,\r\n      dataFatoGeradorIni: null,\r\n      dataFatoGeradorFim: null,\r\n      selectedPessoa: null,\r\n      filteredPessoas: null,\r\n      selectedServico: null,\r\n      filteredServicos: null,\r\n      notaAvulsa: null,\r\n      filtroSituacao: \"\",\r\n      filtroSituacoes: [\r\n        { name: \"Todos\", key: \"T\" },\r\n        { name: \"Ativa\", key: \"A\" },\r\n        { name: \"Cancelada\", key: \"C\" },\r\n        { name: \"Substituida\", key: \"S\" }\r\n      ],\r\n    };\r\n  },\r\n\r\n  methods: {\r\n    searchPessoa(event) {\r\n      setTimeout(async () => {\r\n        this.filteredPessoas = await PessoaService.findAllByConttribuinteFiltro(\r\n          event.query,\r\n          \"\"\r\n        );\r\n      }, 550);\r\n    },\r\n    searchServico(event) {\r\n      if (this.currentUser.configuracao.idBolHabilitaCnaeNf == \"N\") {\r\n        if (this.notaAvulsa) {\r\n          // Se for nota avulsa exibir todos os serviços\r\n          setTimeout(async () => {\r\n            this.filteredServicos =\r\n              await ContribuinteServicoService.findAllNfAvulsa(\r\n                event.query,\r\n                this.currentUser.contribuinte.idContribuinte\r\n              );\r\n          }, 250);\r\n        } else {\r\n          setTimeout(async () => {\r\n            this.filteredServicos =\r\n              await ContribuinteServicoService.findAllServicosByContribuinteFiltro(\r\n                event.query,\r\n                this.currentUser.contribuinte.idContribuinte\r\n              );\r\n          }, 250);\r\n        }\r\n      } else {\r\n        // Buscar lista de CNAE, posteriormente...\r\n      }\r\n    },\r\n    downloadListagemXml() {\r\n      var msg = null;\r\n      if (!this.currentUser.contribuinte.idContribuinte) {\r\n        msg = \"É necessário informar o contribuinte!\";\r\n      } else if (!this.dataFatoGeradorIni) {\r\n        msg = \"É necessário informar a data Inicial!\";\r\n      } else if (!this.dataFatoGeradorFim) {\r\n        msg = \"É necessário informar a data Final!\";\r\n      } else if(!this.filtroSituacao && !this.filtroSituacao.key){\r\n        msg = \"É necessário informar uma Situação!\"\r\n      }\r\n\r\n      if (!msg) {\r\n        this.processando(true);\r\n        ReportService.downloadListXmlCompleto(\r\n          this.currentUser.contribuinte.idContribuinte,\r\n          this.dataFatoGeradorIni,\r\n          this.dataFatoGeradorFim,\r\n          (this.selectedPessoa && this.selectedPessoa.documento ? this.selectedPessoa.documento : \"\"),\r\n          (this.selectedServico && this.selectedServico.idServico ? this.selectedServico.idServico.idServicoItem : \"\"),\r\n          this.$root,\r\n          (this.filtroSituacao && this.filtroSituacao.key != 'T' ? this.filtroSituacao.key : null )\r\n        )\r\n          .then(\r\n            (data) => {\r\n              console.log(data);\r\n            },\r\n            (error) => {\r\n              console.log(error);\r\n            }\r\n          )\r\n          .then(() => {\r\n            this.processando(false);\r\n          });\r\n      } else {\r\n        this.$root.$emit(\"alert:warn\", msg);\r\n      }\r\n    },\r\n    \r\n    exportarMaiorPeriodo(){\r\n      this.$root.$emit(\"notaFiscal:exportarMaiorPeriodo\");\r\n    },\r\n\r\n    processando(show) {\r\n      if (show) {\r\n        this.$parent.loading = true;\r\n        this.$root.$emit(\"loading:show\");\r\n      } else {\r\n        this.$parent.loading = false;\r\n        this.$root.$emit(\"loading:hide\");\r\n      }\r\n    },\r\n  },\r\n\r\n  computed: {\r\n    loading() {\r\n      return this.$parent.loading;\r\n    },\r\n  },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n</style>","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExportarNotasFiscais.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExportarNotasFiscais.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ExportarNotasFiscais.vue?vue&type=template&id=8b299724&scoped=true&\"\nimport script from \"./ExportarNotasFiscais.vue?vue&type=script&lang=js&\"\nexport * from \"./ExportarNotasFiscais.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  \"8b299724\",\n  null\n  \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_c('Dialog',{staticClass:\"test-box\",attrs:{\"visible\":_vm.showAnaliseCancelarNota,\"modal\":true,\"closable\":false},on:{\"update:visible\":function($event){_vm.showAnaliseCancelarNota=$event}}},[_c('h1',{staticClass:\"titulo-header\"},[_vm._v(\"\\n      \"+_vm._s(_vm.textoHeader)+\"\\n      \"),_c('Button',{staticClass:\"p-button-rounded p-button-text\",attrs:{\"id\":\"icon-close-modals\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.showAnaliseCancelarNota = false}}})],1),_c('br'),(_vm.notaFiscalSituacao)?_c('div',[_c('div',{staticClass:\"row\",attrs:{\"id\":\"topo\"}},[_c('div',{staticClass:\"col-md-5 mb-2\"},[_c('label',{attrs:{\"for\":\"num\"}},[_vm._v(\"Número: \")]),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"disabled\":\"true\"},model:{value:(_vm.nota.numero),callback:function ($$v) {_vm.$set(_vm.nota, \"numero\", $$v)},expression:\"nota.numero\"}})],1)])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12 mb-2\"},[_c('label',{attrs:{\"for\":\"desc\"}},[_vm._v(\"Descrição Solicitação de \"+_vm._s(_vm.tipo)+\": \")]),_c('span',{staticClass:\"p-fluid\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.notaFiscalSituacao.observacao),expression:\"notaFiscalSituacao.observacao\"}],attrs:{\"rows\":\"5\",\"disabled\":\"true\"},domProps:{\"value\":(_vm.notaFiscalSituacao.observacao)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.notaFiscalSituacao, \"observacao\", $event.target.value)}}})])])])]):_vm._e(),_c('hr'),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-success\",attrs:{\"href\":\"#topo\",\"type\":\"button\",\"label\":\"Deferir\",\"icon\":\"pi pi-check\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.deferir()}}}),_c('Button',{staticClass:\"p-button-primary mr-2\",attrs:{\"href\":\"#topo\",\"type\":\"button\",\"label\":\"Indeferir\",\"icon\":\"pi pi-times\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.indeferir()}}})],1),_c('div',[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-danger\",attrs:{\"type\":\"button\",\"label\":\"Fechar\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.showAnaliseCancelarNota = false}}})],1)])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n  <span>\r\n    <!-- Dialog para análise de solicitações de cancelamento de notas fiscais -->\r\n    <Dialog class=\"test-box\" \r\n      :visible.sync=\"showAnaliseCancelarNota\" :modal=\"true\" :closable=\"false\">\r\n      <h1 class=\"titulo-header\">\r\n        {{textoHeader}}\r\n        <Button id=\"icon-close-modals\" icon=\"pi pi-times\" class=\"p-button-rounded p-button-text\" @click=\"showAnaliseCancelarNota = false\"/>\r\n      </h1><br/>\r\n      <div  v-if=\"notaFiscalSituacao\">\r\n\r\n        <div id=\"topo\" class=\"row\">\r\n          <div class=\"col-md-5 mb-2\">\r\n            <label for=\"num\">Número: </label>\r\n            <span class=\"p-fluid\">\r\n              <InputText v-model=\"nota.numero\" disabled=\"true\" />\r\n            </span>\r\n          </div>\r\n        </div>\r\n        <div class=\"row\">\r\n          <div class=\"col-md-12 mb-2\">\r\n            <label for=\"desc\">Descrição Solicitação de {{ tipo }}: </label>\r\n            <span class=\"p-fluid\">\r\n              <textarea v-model=\"notaFiscalSituacao.observacao\" rows=\"5\" disabled=\"true\" />\r\n            </span>\r\n          </div>\r\n        </div>\r\n\r\n      </div>\r\n\r\n      <hr />\r\n\r\n      <div class=\"container\">\r\n        <div class=\"row\">\r\n          <div>\r\n            <Button @click=\"deferir()\" href=\"#topo\" type=\"button\" label=\"Deferir\"\r\n              class=\"p-button-primary mr-2 p-button-success\" icon=\"pi pi-check\" :disabled=\"loading\" />\r\n\r\n            <Button @click=\"indeferir()\" href=\"#topo\" type=\"button\" label=\"Indeferir\" class=\"p-button-primary mr-2\"\r\n              icon=\"pi pi-times\" :disabled=\"loading\" />\r\n          </div>\r\n\r\n          <div>\r\n            <Button @click=\"showAnaliseCancelarNota = false\" type=\"button\" label=\"Fechar\"\r\n              class=\"p-button-primary mr-2 p-button-danger\" icon=\"pi pi-times\" />\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </Dialog>\r\n  </span>\r\n</template>\r\n\r\n<script>\r\nimport NotaFiscalService from \"@/services/nfse/notafiscal.service\";\r\nimport LoginService from \"@/services/acesso/login.service\";\r\n\r\nexport default {\r\n  name: \"AnaliseCancelamentoNotaFiscal\",\r\n\r\n  created() {\r\n    this.currentUser = LoginService.currentUserValue;\r\n\r\n    this.$root.$on(\"notaFiscal:analiseCancelamento\", (dadosNotaFiscal) => {\r\n      this.nota = dadosNotaFiscal.nota;\r\n      this.notaFiscalSituacao = dadosNotaFiscal.notaSituacao;\r\n      this.tipo = (this.notaFiscalSituacao.idSituacaoRecolhimento && this.notaFiscalSituacao.idSituacaoRecolhimento === 'SA' ? 'Substituição' : 'Cancelamento');\r\n      this.textoHeader = \"Análise Solicitação de \"+this.tipo+\" Nota Fiscal\";\r\n\r\n      this.exibirDialogAnaliseCancelarNota(true);\r\n\r\n    });\r\n  },\r\n\r\n  data() {\r\n    return {\r\n      tipo:\"\",\r\n      textoHeader:\"\",\r\n      currentUser: null,\r\n      nota: null,\r\n      notaFiscalSituacao: null,\r\n      showAnaliseCancelarNota: false\r\n    };\r\n  },\r\n\r\n  methods: {\r\n    // Exibe o dialog de análise\r\n    exibirDialogAnaliseCancelarNota(showAnaliseCancelarNota) {\r\n      this.showAnaliseCancelarNota = showAnaliseCancelarNota;\r\n    },\r\n    // Defere a solicitação de cancelamento\r\n    deferir() {\r\n      this.$parent.processando(true);\r\n      NotaFiscalService.definirAnaliseCancelamentoNotaFiscal(this.nota.id, this.notaFiscalSituacao.id, 'D')\r\n        .then((response) => {\r\n          this.$root.$emit(\r\n            \"alert:info\",\r\n            response.data\r\n          );\r\n\r\n        },\r\n          (error) => {\r\n            const erro = error.response.data;\r\n\r\n            if (erro) {\r\n              this.$root.$emit(\r\n                \"alert:warn\",\r\n                erro\r\n              );\r\n            }\r\n          })\r\n        .then(() => {\r\n          this.$parent.processando(false);\r\n          this.exibirDialogAnaliseCancelarNota(false);\r\n        });\r\n    },\r\n    // Indefere a solicitação de cancelamento\r\n    indeferir() {\r\n      this.$parent.processando(true);\r\n      NotaFiscalService.definirAnaliseCancelamentoNotaFiscal(this.nota.id, this.notaFiscalSituacao.id, 'I')\r\n        .then((response) => {\r\n          this.$root.$emit(\r\n            \"alert:info\",\r\n            response.data\r\n          );\r\n          if (this.$parent.$options.name == \"ConsultaNfse\") {\r\n            this.$parent.pesquisar();\r\n          }\r\n\r\n        },\r\n          (error) => {\r\n            const erro = error.response.data;\r\n\r\n            if (erro) {\r\n              this.$root.$emit(\r\n                \"alert:warn\",\r\n                erro\r\n              );\r\n            }\r\n          })\r\n        .then(() => {\r\n          this.$parent.processando(false);\r\n        });\r\n    }\r\n  },\r\n\r\n  computed: {\r\n    loading() {\r\n      return this.$parent.loading;\r\n    }\r\n  },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\ntextarea {\r\n  width: 100%;\r\n  border-radius: 12px;\r\n}\r\n\r\n.mensagem-cancelamento {\r\n  color: red;\r\n  font-weight: bold;\r\n}\r\n</style>","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AnaliseCancelamentoNotaFiscal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AnaliseCancelamentoNotaFiscal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AnaliseCancelamentoNotaFiscal.vue?vue&type=template&id=0c46e00a&scoped=true&\"\nimport script from \"./AnaliseCancelamentoNotaFiscal.vue?vue&type=script&lang=js&\"\nexport * from \"./AnaliseCancelamentoNotaFiscal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AnaliseCancelamentoNotaFiscal.vue?vue&type=style&index=0&id=0c46e00a&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  \"0c46e00a\",\n  null\n  \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_c('tomador-cadastro',{attrs:{\"tipoEmissao\":\"P\"}}),_c('Dialog',{attrs:{\"header\":\"Listagem Carta de Correção de Nota Fiscal\",\"visible\":_vm.showCartaCorrecaoListagem,\"modal\":true,\"closable\":false},on:{\"update:visible\":function($event){_vm.showCartaCorrecaoListagem=$event}}},[_c('h1',{staticClass:\"titulo-header\"},[_vm._v(\"\\n      Listagem Carta de Correção de Nota Fiscal\\n      \"),_c('Button',{staticClass:\"p-button-rounded p-button-text\",attrs:{\"id\":\"icon-close-modals\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.showCartaCorrecaoListagem = false}}})],1),_c('br'),_c('div',{staticClass:\"scrolable-dialog\"},[_c('div',{staticClass:\"row\",attrs:{\"id\":\"topoListagem\"}},[_c('div',{staticClass:\"col-md-12 mb-3\"},[_c('DataTable',{staticClass:\"p-datatable-responsive\",attrs:{\"value\":_vm.cartasCorrecao,\"paginator\":true,\"rows\":10,\"autoLayout\":true}},[_c('Column',{scopedSlots:_vm._u([{key:\"body\",fn:function(slotProps){return [_c('div',{staticClass:\"dropdown\"},[_c('Button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\",\"id\":\"dropdownMenuButton\",\"icon\":\"pi pi-angle-down\",\"data-toggle\":\"dropdown\",\"title\":\"Opções\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}}),_c('div',{staticClass:\"dropdown-menu\",attrs:{\"aria-labelledby\":\"dropdownMenuButton\"}},[_c('button',{staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.visualizar(slotProps.data.id)}}},[_c('span',{staticClass:\"pi pi-search mr-2\"}),_vm._v(\"Imprimir\\n                    \")]),_c('button',{staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.cancelarCartaCorrecaoNfse(slotProps.data.id)}}},[_c('span',{staticClass:\"pi pi-times mr-2\"}),_vm._v(\"Cancelar\\n                    \")])])],1)]}}])}),_c('Column',{attrs:{\"field\":\"dataFormatada\",\"header\":\"Data\"}}),_c('Column',{attrs:{\"field\":\"situacaoFormatada\",\"header\":\"Situação\"}})],1)],1)])]),_c('hr'),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-success\",attrs:{\"href\":\"#topoListagem\",\"type\":\"button\",\"label\":\"Nova Carta de Correção\",\"icon\":\"pi pi-plus\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.novaCarta(_vm.notaFiscal)}}})],1),_c('div',[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-danger\",attrs:{\"type\":\"button\",\"label\":\"Fechar\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){return _vm.ocultarDialogCartaCorrecaoListagem()}}})],1)])])]),_c('Dialog',{attrs:{\"header\":\"Carta de Correção de Nota Fiscal\",\"visible\":_vm.showCartaCorrecao,\"modal\":true},on:{\"update:visible\":function($event){_vm.showCartaCorrecao=$event}}},[_c('h1',{staticClass:\"titulo-header\"},[_vm._v(\"\\n      Carta de Correção de Nota Fiscal\\n      \"),_c('Button',{staticClass:\"p-button-rounded p-button-text\",attrs:{\"id\":\"icon-close-modals\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.showCartaCorrecao = false}}})],1),_c('br'),_c('div',[_c('div',{staticClass:\"row\",attrs:{\"id\":\"topo\"}},[_c('div',{staticClass:\"col-md-12 mb-3\"},[_c('label',[_vm._v(\"Prestador:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('div',{staticClass:\"p-inputgroup\"},[_c('InputText',{attrs:{\"type\":\"text\",\"disabled\":\"\"},model:{value:(_vm.selectedPessoaPrestador.detail),callback:function ($$v) {_vm.$set(_vm.selectedPessoaPrestador, \"detail\", $$v)},expression:\"selectedPessoaPrestador.detail\"}}),_c('Button',{attrs:{\"id\":\"btnEditarPrestador\",\"type\":\"button\",\"label\":\"Editar Dados\",\"icon\":\"pi pi-pencil\",\"title\":\"Editar Dados Prestador\"},on:{\"click\":function($event){return _vm.editarPrestador()}}})],1)])])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12 mb-3\"},[_c('label',[_vm._v(\"Tomador:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('div',{staticClass:\"p-inputgroup\"},[_c('InputText',{attrs:{\"type\":\"text\",\"disabled\":\"\"},model:{value:(_vm.selectedPessoa.detail),callback:function ($$v) {_vm.$set(_vm.selectedPessoa, \"detail\", $$v)},expression:\"selectedPessoa.detail\"}}),_c('Button',{attrs:{\"id\":\"btnEditarTomador\",\"type\":\"button\",\"label\":\"Editar\",\"icon\":\"pi pi-pencil\",\"title\":\"Editar Tomador\",\"disabled\":_vm.selectedPessoa.tipo == 'N'},on:{\"click\":function($event){return _vm.editarTomador()}}})],1)])])]),(_vm.selectedPessoaIntermediario && _vm.selectedPessoaIntermediario.detail)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12 mb-3\"},[_c('label',[_vm._v(\"Intermediário:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('div',{staticClass:\"p-inputgroup\"},[_c('InputText',{attrs:{\"type\":\"text\",\"disabled\":\"\"},model:{value:(_vm.selectedPessoaIntermediario.detail),callback:function ($$v) {_vm.$set(_vm.selectedPessoaIntermediario, \"detail\", $$v)},expression:\"selectedPessoaIntermediario.detail\"}}),_c('Button',{attrs:{\"id\":\"btnEditarIntermediario\",\"type\":\"button\",\"label\":\"Editar Intermediario\",\"icon\":\"pi pi-pencil\",\"title\":\"Editar Tomador\"},on:{\"click\":function($event){return _vm.editarIntermediario()}}})],1)])])]):_vm._e(),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12 mb-3\"},[_c('label',{attrs:{\"for\":\"descServico\"}},[_vm._v(\"Discriminação dos Serviços:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.notaFiscal.discriminacaoServico),expression:\"notaFiscal.discriminacaoServico\"}],attrs:{\"rows\":\"5\"},domProps:{\"value\":(_vm.notaFiscal.discriminacaoServico)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.notaFiscal, \"discriminacaoServico\", $event.target.value)}}})])])]),(_vm.observacaoClienteNfse)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12 mb-3\"},[_c('label',{attrs:{\"for\":\"descServico\"}},[_vm._v(\"Observação:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.notaFiscal.observacao),expression:\"notaFiscal.observacao\"}],attrs:{\"rows\":\"5\"},domProps:{\"value\":(_vm.notaFiscal.observacao)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.notaFiscal, \"observacao\", $event.target.value)}}})])])]):_vm._e(),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-3 mb-3\"},[_c('label',{attrs:{\"for\":\"descServico\"}},[_vm._v(\"Número RPS:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"maxlength\":\"20\"},model:{value:(_vm.notaFiscal.rpsNumero),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"rpsNumero\", $$v)},expression:\"notaFiscal.rpsNumero\"}})],1)]),_c('div',{staticClass:\"col-md-3 mb-3\"},[_c('label',{attrs:{\"for\":\"descServico\"}},[_vm._v(\"Série RPS:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"maxlength\":\"5\"},model:{value:(_vm.notaFiscal.rpsSerie),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"rpsSerie\", $$v)},expression:\"notaFiscal.rpsSerie\"}})],1)]),_c('div',{staticClass:\"col-md-3 mb-3\"},[_c('label',{attrs:{\"for\":\"descServico\"}},[_vm._v(\"Tipo RPS:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"maxlength\":\"1\"},model:{value:(_vm.notaFiscal.rpsTipo),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"rpsTipo\", $$v)},expression:\"notaFiscal.rpsTipo\"}})],1)])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md mb-3\"},[_c('label',{attrs:{\"for\":\"inss\"}},[_vm._v(\"Inss:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"inss\",\"name\":\"inss\"},model:{value:(_vm.notaFiscal.valorInss),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"valorInss\", $$v)},expression:\"notaFiscal.valorInss\"}},'money',_vm.money,false))],1)]),(_vm.notaFiscal.notaAvulsa === 'S')?[_c('div',{staticClass:\"col-md mb-2\"},[_c('label',{attrs:{\"for\":\"ir\"}},[_vm._v(\"Sest/Senat:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"ir\",\"name\":\"ir\"},model:{value:(_vm.notaFiscal.valorSestSenat),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"valorSestSenat\", $$v)},expression:\"notaFiscal.valorSestSenat\"}},'money',_vm.money,false))],1)]),_c('div',{staticClass:\"col-md mb-2\"},[_c('label',{attrs:{\"for\":\"ir\"}},[_vm._v(\"Irrf:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"ir\",\"name\":\"ir\"},model:{value:(_vm.notaFiscal.valorIrrf),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"valorIrrf\", $$v)},expression:\"notaFiscal.valorIrrf\"}},'money',_vm.money,false))],1)])]:[_c('div',{staticClass:\"col-md mb-2\"},[_c('label',{attrs:{\"for\":\"ir\"}},[_vm._v(\"Ir:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"ir\",\"name\":\"ir\"},model:{value:(_vm.notaFiscal.valorIr),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"valorIr\", $$v)},expression:\"notaFiscal.valorIr\"}},'money',_vm.money,false))],1)]),_c('div',{staticClass:\"col-md mb-2\"},[_c('label',{attrs:{\"for\":\"csll\"}},[_vm._v(\"Csll:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"csll\",\"name\":\"csll\"},model:{value:(_vm.notaFiscal.valorCsll),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"valorCsll\", $$v)},expression:\"notaFiscal.valorCsll\"}},'money',_vm.money,false))],1)]),_c('div',{staticClass:\"col-md mb-2\"},[_c('label',{attrs:{\"for\":\"pis\"}},[_vm._v(\"Pis:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"pis\",\"name\":\"pis\"},model:{value:(_vm.notaFiscal.valorPis),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"valorPis\", $$v)},expression:\"notaFiscal.valorPis\"}},'money',_vm.money,false))],1)]),_c('div',{staticClass:\"col-md mb-2\"},[_c('label',{attrs:{\"for\":\"cofins\"}},[_vm._v(\"Cofins:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"cofins\",\"name\":\"cofins\"},model:{value:(_vm.notaFiscal.valorCofins),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"valorCofins\", $$v)},expression:\"notaFiscal.valorCofins\"}},'money',_vm.money,false))],1)])]],2)]),_c('hr'),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-success\",attrs:{\"href\":\"#topo\",\"type\":\"button\",\"label\":\"Criar Carta de Correção\",\"icon\":\"pi pi-check\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.criarCartaCorrecaoNfse()}}})],1),_c('div',[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-danger\",attrs:{\"type\":\"button\",\"label\":\"Fechar\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){return _vm.ocultarDialogCartaCorrecao()}}})],1)])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import axios from 'axios';\r\nimport LoginService from '../acesso/login.service'\r\n\r\nconst API_URL = process.env.VUE_APP_BASE_URL + '/api/nfse/cartaCorrecao/';\r\n\r\nclass CartaCorrecaoService {\r\n    constructor() {\r\n        this.idCliente = null;\r\n        this.idContribuinte = null;\r\n        this.idUsuario = null;\r\n        LoginService.currentUser.subscribe(data => {\r\n            this.headers = {\r\n                'Content-Type':'application/json',\r\n                'authorization':'Bearer ' + (data ? data.token:'')\r\n            };\r\n        });\r\n    }\r\n\r\n    save(cartaCorrecao) {\r\n        this.idUsuario = LoginService.currentUserValue.usuario.idUsuario;\r\n        return axios.post(API_URL + 'create?idUsuario=' + this.idUsuario, JSON.stringify(cartaCorrecao),\r\n        {headers: this.headers});\r\n    }\r\n\r\n    buscarCartasNfse(id){\r\n        return axios.get(API_URL + 'buscarCartasNfse?id=' + id,\r\n        {headers: this.headers});\r\n    }\r\n\r\n    podeEmitirCarta(id, idCliente){\r\n        return axios.get(API_URL + 'podeEmitirCarta?id=' + id+'&idCliente='+idCliente,\r\n        {headers: this.headers});\r\n    }\r\n\r\n    cancelar(id, idCliente) {\r\n        return axios.post(API_URL + 'cancelar?id=' + id+'&idCliente='+idCliente, null,\r\n        {headers: this.headers});\r\n    }\r\n\r\n    consultaCartaCorrecao(cartaId){\r\n        return axios.post(API_URL + 'consultaCartaCorrecao?id=' + cartaId, null,\r\n            {headers: this.headers});\r\n    }\r\n\r\n    consultaCartaCorrecaoForaDoPrazo(id){\r\n        return axios.post(API_URL + 'consultaCartaCorrecaoForaDoPrazo?id=' + id, null,\r\n            {headers: this.headers});\r\n    }\r\n\r\n\r\n}\r\n\r\nexport default new CartaCorrecaoService();","class CartaCorrecao {\r\n  constructor() {\r\n    this.idNotaFiscal = null\r\n\r\n    this.notaAnterior = {\r\n      idTomadorDados: null,\r\n      discriminacaoServico: '',\r\n      valorInss: 0,\r\n      valorIr: 0,\r\n      valorCsll: 0,\r\n      valorPis: 0,\r\n      valorCofins: 0\r\n    }\r\n\r\n    this.notaNovo = {\r\n      idTomadorDados: null,\r\n      discriminacaoServico: '',\r\n      valorInss: 0,\r\n      valorIr: 0,\r\n      valorCsll: 0,\r\n      valorPis: 0,\r\n      valorCofins: 0\r\n    }\r\n  }\r\n}\r\n\r\nexport default CartaCorrecao\r\n","<template>\r\n  <span>\r\n    <tomador-cadastro tipoEmissao=\"P\" />\r\n\r\n    <Dialog header=\"Listagem Carta de Correção de Nota Fiscal\" :visible.sync=\"showCartaCorrecaoListagem\" :modal=\"true\"\r\n      :closable=\"false\">\r\n      <h1 class=\"titulo-header\">\r\n        Listagem Carta de Correção de Nota Fiscal\r\n        <Button id=\"icon-close-modals\" icon=\"pi pi-times\" class=\"p-button-rounded p-button-text\"\r\n          @click=\"showCartaCorrecaoListagem = false\" />\r\n      </h1><br />\r\n      <div class=\"scrolable-dialog\">\r\n        <div id=\"topoListagem\" class=\"row\">\r\n          <div class=\"col-md-12 mb-3\">\r\n            <DataTable :value=\"cartasCorrecao\" :paginator=\"true\" :rows=\"10\" class=\"p-datatable-responsive\"\r\n              :autoLayout=\"true\">\r\n              <Column>\r\n                <template #body=\"slotProps\">\r\n                  <div class=\"dropdown\">\r\n                    <Button class=\"btn btn-primary\" type=\"button\" id=\"dropdownMenuButton\" icon=\"pi pi-angle-down\"\r\n                      data-toggle=\"dropdown\" title=\"Opções\" aria-haspopup=\"true\" aria-expanded=\"false\"></Button>\r\n                    <div class=\"dropdown-menu\" aria-labelledby=\"dropdownMenuButton\">\r\n                      <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading\"\r\n                        @click=\"visualizar(slotProps.data.id)\">\r\n                        <span class=\"pi pi-search mr-2\"></span>Imprimir\r\n                      </button>\r\n                      <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading\"\r\n                        @click=\"cancelarCartaCorrecaoNfse(slotProps.data.id)\">\r\n                        <span class=\"pi pi-times mr-2\"></span>Cancelar\r\n                      </button>\r\n                    </div>\r\n                  </div>\r\n                </template>\r\n              </Column>\r\n              <Column field=\"dataFormatada\" header=\"Data\"></Column>\r\n              <Column field=\"situacaoFormatada\" header=\"Situação\"></Column>\r\n            </DataTable>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <hr />\r\n\r\n      <div class=\"container\">\r\n        <div class=\"row\">\r\n          <div>\r\n            <Button @click=\"novaCarta(notaFiscal)\" href=\"#topoListagem\" type=\"button\" label=\"Nova Carta de Correção\"\r\n              class=\"p-button-primary mr-2 p-button-success\" icon=\"pi pi-plus\" :disabled=\"loading\" />\r\n          </div>\r\n\r\n          <div>\r\n            <Button @click=\"ocultarDialogCartaCorrecaoListagem()\" type=\"button\" label=\"Fechar\"\r\n              class=\"p-button-primary mr-2 p-button-danger\" icon=\"pi pi-times\" />\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </Dialog>\r\n    <Dialog header=\"Carta de Correção de Nota Fiscal\" :visible.sync=\"showCartaCorrecao\" :modal=\"true\">\r\n      <h1 class=\"titulo-header\">\r\n        Carta de Correção de Nota Fiscal\r\n        <Button id=\"icon-close-modals\" icon=\"pi pi-times\" class=\"p-button-rounded p-button-text\"\r\n          @click=\"showCartaCorrecao = false\" />\r\n      </h1><br />\r\n      <div >\r\n        <div id=\"topo\" class=\"row\">\r\n          <div class=\"col-md-12 mb-3\">\r\n            <label>Prestador:</label>\r\n            <span class=\"p-fluid\">\r\n              <div class=\"p-inputgroup\">\r\n                <InputText v-model=\"selectedPessoaPrestador.detail\" type=\"text\" disabled />\r\n                <Button @click=\"editarPrestador()\" id=\"btnEditarPrestador\" type=\"button\" label=\"Editar Dados\"\r\n                  icon=\"pi pi-pencil\" title=\"Editar Dados Prestador\" />\r\n              </div>\r\n            </span>\r\n          </div>\r\n        </div>\r\n        <div class=\"row\">\r\n          <div class=\"col-md-12 mb-3\">\r\n            <label>Tomador:</label>\r\n            <span class=\"p-fluid\">\r\n              <div class=\"p-inputgroup\">\r\n                <InputText v-model=\"selectedPessoa.detail\" type=\"text\" disabled />\r\n                <Button @click=\"editarTomador()\" id=\"btnEditarTomador\" type=\"button\" label=\"Editar\" icon=\"pi pi-pencil\"\r\n                  title=\"Editar Tomador\" :disabled=\"selectedPessoa.tipo == 'N'\" />\r\n              </div>\r\n            </span>\r\n          </div>\r\n        </div>\r\n        <div class=\"row\" v-if=\"selectedPessoaIntermediario && selectedPessoaIntermediario.detail\">\r\n          <div class=\"col-md-12 mb-3\">\r\n            <label>Intermediário:</label>\r\n            <span class=\"p-fluid\">\r\n              <div class=\"p-inputgroup\">\r\n                <InputText v-model=\"selectedPessoaIntermediario.detail\" type=\"text\" disabled />\r\n                <Button @click=\"editarIntermediario()\" id=\"btnEditarIntermediario\" type=\"button\"\r\n                  label=\"Editar Intermediario\" icon=\"pi pi-pencil\" title=\"Editar Tomador\" />\r\n              </div>\r\n            </span>\r\n          </div>\r\n        </div>\r\n\r\n        <div class=\"row\">\r\n          <div class=\"col-md-12 mb-3\">\r\n            <label for=\"descServico\">Discriminação dos Serviços:</label>\r\n            <span class=\"p-fluid\">\r\n              <textarea v-model=\"notaFiscal.discriminacaoServico\" rows=\"5\" />\r\n            </span>\r\n          </div>\r\n        </div>\r\n\r\n        <div class=\"row\" v-if=\"observacaoClienteNfse\">\r\n          <div class=\"col-md-12 mb-3\">\r\n            <label for=\"descServico\">Observação:</label>\r\n            <span class=\"p-fluid\">\r\n              <textarea v-model=\"notaFiscal.observacao\" rows=\"5\" />\r\n            </span>\r\n          </div>\r\n        </div>\r\n\r\n        <div class=\"row\">\r\n          <div class=\"col-md-3 mb-3\">\r\n            <label for=\"descServico\">Número RPS:</label>\r\n            <span class=\"p-fluid\">\r\n              <InputText v-model=\"notaFiscal.rpsNumero\" maxlength=\"20\" />\r\n            </span>\r\n          </div>\r\n          <div class=\"col-md-3 mb-3\">\r\n            <label for=\"descServico\">Série RPS:</label>\r\n            <span class=\"p-fluid\">\r\n              <InputText v-model=\"notaFiscal.rpsSerie\" maxlength=\"5\" />\r\n            </span>\r\n          </div>\r\n          <div class=\"col-md-3 mb-3\">\r\n            <label for=\"descServico\">Tipo RPS:</label>\r\n            <span class=\"p-fluid\">\r\n              <InputText v-model=\"notaFiscal.rpsTipo\" maxlength=\"1\" />\r\n            </span>\r\n          </div>\r\n        </div>\r\n\r\n        <div class=\"row\">\r\n          <div class=\"col-md mb-3\">\r\n            <label for=\"inss\">Inss:</label>\r\n            <span class=\"p-fluid\">\r\n              <money id=\"inss\" name=\"inss\" v-model=\"notaFiscal.valorInss\" v-bind=\"money\" class=\"p-inputtext input-right\">\r\n              </money>\r\n            </span>\r\n          </div>\r\n          <template v-if=\"notaFiscal.notaAvulsa === 'S'\">\r\n            <div class=\"col-md mb-2\">\r\n              <label for=\"ir\">Sest/Senat:</label>\r\n              <span class=\"p-fluid\">\r\n                <money id=\"ir\" name=\"ir\" v-model=\"notaFiscal.valorSestSenat\" v-bind=\"money\"\r\n                  class=\"p-inputtext input-right\"></money>\r\n              </span>\r\n            </div>\r\n            <div class=\"col-md mb-2\">\r\n              <label for=\"ir\">Irrf:</label>\r\n              <span class=\"p-fluid\">\r\n                <money id=\"ir\" name=\"ir\" v-model=\"notaFiscal.valorIrrf\" v-bind=\"money\" class=\"p-inputtext input-right\">\r\n                </money>\r\n              </span>\r\n            </div>\r\n          </template>\r\n          <template v-else>\r\n            <div class=\"col-md mb-2\">\r\n              <label for=\"ir\">Ir:</label>\r\n              <span class=\"p-fluid\">\r\n                <money id=\"ir\" name=\"ir\" v-model=\"notaFiscal.valorIr\" v-bind=\"money\" class=\"p-inputtext input-right\">\r\n                </money>\r\n              </span>\r\n            </div>\r\n            <div class=\"col-md mb-2\">\r\n              <label for=\"csll\">Csll:</label>\r\n              <span class=\"p-fluid\">\r\n                <money id=\"csll\" name=\"csll\" v-model=\"notaFiscal.valorCsll\" v-bind=\"money\"\r\n                  class=\"p-inputtext input-right\"></money>\r\n              </span>\r\n            </div>\r\n            <div class=\"col-md mb-2\">\r\n              <label for=\"pis\">Pis:</label>\r\n              <span class=\"p-fluid\">\r\n                <money id=\"pis\" name=\"pis\" v-model=\"notaFiscal.valorPis\" v-bind=\"money\" class=\"p-inputtext input-right\">\r\n                </money>\r\n              </span>\r\n            </div>\r\n            <div class=\"col-md mb-2\">\r\n              <label for=\"cofins\">Cofins:</label>\r\n              <span class=\"p-fluid\">\r\n                <money id=\"cofins\" name=\"cofins\" v-model=\"notaFiscal.valorCofins\" v-bind=\"money\"\r\n                  class=\"p-inputtext input-right\"></money>\r\n              </span>\r\n            </div>\r\n          </template>\r\n        </div>\r\n      </div>\r\n\r\n      <hr />\r\n\r\n      <div class=\"container\">\r\n        <div class=\"row\">\r\n          <div>\r\n            <Button @click=\"criarCartaCorrecaoNfse()\" href=\"#topo\" type=\"button\" label=\"Criar Carta de Correção\"\r\n              class=\"p-button-primary mr-2 p-button-success\" icon=\"pi pi-check\" :disabled=\"loading\" />\r\n          </div>\r\n\r\n          <div>\r\n            <Button @click=\"ocultarDialogCartaCorrecao()\" type=\"button\" label=\"Fechar\"\r\n              class=\"p-button-primary mr-2 p-button-danger\" icon=\"pi pi-times\" />\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </Dialog>\r\n  </span>\r\n</template>\r\n\r\n<script>\r\nimport CartaCorrecaoService from \"@/services/nfse/cartacorrecao.service\";\r\nimport TomadorCadastro from \"@/views/TomadorCadastro\";\r\nimport Pessoa from \"@/models/nfse/Pessoa\";\r\nimport CartaCorrecao from \"@/models/nfse/CartaCorrecao\";\r\nimport NotaFiscal from \"@/models/nfse/NotaFiscal\";\r\nimport money from \"@/conf/config.money\";\r\nimport LoginService from \"@/services/acesso/login.service\";\r\nimport ReportService from \"@/services/report.service\";\r\n\r\nexport default {\r\n  name: \"CartaCorrecaoNotaFiscal\",\r\n\r\n  components: {\r\n    TomadorCadastro,\r\n  },\r\n\r\n  data() {\r\n    return {\r\n      money: money,\r\n      apresentacao:false,\r\n      cartasCorrecao: [],\r\n      showCartaCorrecao: false,\r\n      showCartaCorrecaoListagem: false,\r\n      notaFiscal: null,\r\n      selectedPessoaPrestador: null,\r\n      selectedPessoaIntermediario: null,\r\n      selectedPessoa: null,\r\n      cartaCorrecao: null,\r\n      currentUser: null,\r\n      observacaoClienteNfse: false\r\n    };\r\n  },\r\n\r\n  created() {\r\n    this.apresentacao = (this.$apresentacao ? this.$apresentacao : false);\r\n    this.limparDadosCartaCorrecao();\r\n\r\n    this.$root.$on(\"notaFiscal:cartaCorrecao\", (nota) => {\r\n      this.limparDadosCartaCorrecao();\r\n\r\n      this.notaFiscal = nota;\r\n\r\n      this.pesquisarCartas();\r\n\r\n\r\n    });\r\n  },\r\n\r\n  methods: {\r\n    pesquisarCartas(){\r\n      this.cartasCorrecao = [];\r\n      CartaCorrecaoService.buscarCartasNfse(this.notaFiscal.id)\r\n        .then(\r\n          (response) => {\r\n            this.cartasCorrecao = response.data;\r\n          },\r\n          (error) => {\r\n            console.log(error);\r\n          }\r\n        )\r\n        .then(() => {\r\n          if (this.cartasCorrecao == null || this.cartasCorrecao.length <= 0) {\r\n            this.novaCarta(this.notaFiscal);\r\n          } else {\r\n            this.exibirListagemCarta();\r\n          }\r\n        });\r\n    },\r\n    novaCarta(nota) {\r\n      this.currentUser = LoginService.currentUserValue;\r\n      this.$parent.processando(true);\r\n      CartaCorrecaoService.podeEmitirCarta(nota.id, this.currentUser.usuario.idCliente)\r\n        .then(\r\n          (response) => {\r\n            let retorno = response.data;\r\n            if(retorno != 'OK'){\r\n\r\n              if(this.apresentacao){\r\n                CartaCorrecaoService.consultaCartaCorrecaoForaDoPrazo(nota.id);\r\n              }\r\n\r\n              this.$root.$emit(\"alert:error\", 'Não é possível emitir uma nova Carta de Correção, pois atingiu o prazo máximo!');\r\n              return;\r\n            }\r\n\r\n            this.selectedPessoaPrestador = nota.prestadorDados;\r\n            this.selectedPessoa = nota.tomadorDados;\r\n            this.selectedPessoaIntermediario = nota.intermediarioDados;\r\n            this.cartaCorrecao.idNotaFiscal = this.notaFiscal.id;\r\n            this.cartaCorrecao.notaAvulsa = this.notaFiscal.notaAvulsa;\r\n\r\n            this.cartaCorrecao.notaAnterior.idPrestadorDados = this.selectedPessoaPrestador.id;\r\n            this.cartaCorrecao.notaAnterior.idTomadorDados = this.selectedPessoa.id;\r\n            this.cartaCorrecao.notaAnterior.idIntermediarioDados = (this.selectedPessoaIntermediario && this.selectedPessoaIntermediario.id ? this.selectedPessoaIntermediario.id : null);\r\n            this.cartaCorrecao.notaAnterior.discriminacaoServico = this.notaFiscal.discriminacaoServico;\r\n            this.cartaCorrecao.notaAnterior.observacao = this.notaFiscal.observacao;\r\n            this.cartaCorrecao.notaAnterior.valorInss = this.notaFiscal.valorInss;\r\n            this.cartaCorrecao.notaAnterior.valorIr = this.notaFiscal.valorIr;\r\n            this.cartaCorrecao.notaAnterior.valorCsll = this.notaFiscal.valorCsll;\r\n            this.cartaCorrecao.notaAnterior.valorPis = this.notaFiscal.valorPis;\r\n            this.cartaCorrecao.notaAnterior.valorCofins = this.notaFiscal.valorCofins;\r\n            this.cartaCorrecao.notaAnterior.valorIrrf = this.notaFiscal.valorIrrf;\r\n            this.cartaCorrecao.notaAnterior.valorSestSenat = this.notaFiscal.valorSestSenat;\r\n            this.cartaCorrecao.notaAnterior.rpsSerie = this.notaFiscal.rpsSerie;\r\n            this.cartaCorrecao.notaAnterior.rpsTipo = this.notaFiscal.rpsTipo;\r\n            this.cartaCorrecao.notaAnterior.rpsNumero = this.notaFiscal.rpsNumero;\r\n            this.observacaoClienteNfse = this.currentUser.configuracao.idBolObservacaoNfse === \"S\";\r\n\r\n            this.exibirDialogCartaCorrecao();\r\n          },\r\n          (error) => {\r\n            const erros = error.response.data;\r\n            this.$parent.erros.push(...erros);\r\n          }\r\n        )\r\n        .then(() => {\r\n          this.$parent.processando(false);\r\n        });\r\n\r\n\r\n    },\r\n\r\n    exibirDialogCartaCorrecao() {\r\n      this.showCartaCorrecao = true;\r\n      this.showCartaCorrecaoListagem = false;\r\n    },\r\n\r\n    exibirListagemCarta() {\r\n      this.showCartaCorrecao = false;\r\n      this.showCartaCorrecaoListagem = true;\r\n    },\r\n\r\n    ocultarDialogCartaCorrecao() {\r\n      this.limparDadosCartaCorrecao();\r\n      this.showCartaCorrecao = false;\r\n    },\r\n\r\n    ocultarDialogCartaCorrecaoListagem() {\r\n      this.limparDadosCartaCorrecao();\r\n      this.showCartaCorrecaoListagem = false;\r\n    },\r\n\r\n    editarTomador() {\r\n      this.$root.$emit(\"notaFiscal:editarTomador\");\r\n    },\r\n\r\n    editarIntermediario() {\r\n      this.$root.$emit(\"notaFiscal:editarIntermediario\");\r\n    },\r\n\r\n    editarPrestador() {\r\n      this.$root.$emit(\"notaFiscal:editarPrestador\");\r\n    },\r\n\r\n    criarCartaCorrecaoNfse() {\r\n      this.cartaCorrecao.notaNovo.idPrestadorDados = this.selectedPessoaPrestador.id;\r\n      this.cartaCorrecao.notaNovo.idTomadorDados = this.selectedPessoa.id;\r\n      this.cartaCorrecao.notaNovo.idIntermediarioDados = (this.selectedPessoaIntermediario && this.selectedPessoaIntermediario.id ? this.selectedPessoaIntermediario.id : null);\r\n\r\n      this.cartaCorrecao.notaNovo.discriminacaoServico = this.notaFiscal.discriminacaoServico;\r\n      this.cartaCorrecao.notaNovo.observacao = this.notaFiscal.observacao;\r\n      this.cartaCorrecao.notaNovo.valorInss = this.notaFiscal.valorInss;\r\n      this.cartaCorrecao.notaNovo.valorIr = this.notaFiscal.valorIr;\r\n      this.cartaCorrecao.notaNovo.valorCsll = this.notaFiscal.valorCsll;\r\n      this.cartaCorrecao.notaNovo.valorPis = this.notaFiscal.valorPis;\r\n      this.cartaCorrecao.notaNovo.valorCofins = this.notaFiscal.valorCofins;\r\n      this.cartaCorrecao.notaNovo.valorIrrf = this.notaFiscal.valorIrrf;\r\n      this.cartaCorrecao.notaNovo.valorSestSenat = this.notaFiscal.valorSestSenat;\r\n      this.cartaCorrecao.notaNovo.rpsSerie = this.notaFiscal.rpsSerie;\r\n      this.cartaCorrecao.notaNovo.rpsTipo = this.notaFiscal.rpsTipo;\r\n      this.cartaCorrecao.notaNovo.rpsNumero = this.notaFiscal.rpsNumero;\r\n\r\n      this.$parent.processando(true);\r\n      this.$parent.erros = [];\r\n\r\n      CartaCorrecaoService.save(this.cartaCorrecao)\r\n        .then(\r\n          (data) => {\r\n            const carta = data.data;\r\n\r\n            var mensagem =\r\n              carta.situacao == \"E\"\r\n                ? \"A Carta de Correção foi criada e encaminhada para análise!\"\r\n                : \"Os dados da Nota Fiscal foram atualizados!\";\r\n\r\n            this.$root.$emit(\"alert:success\", mensagem);\r\n\r\n            if (this.$parent.$options.name == \"ConsultaNfse\") {\r\n              this.$parent.pesquisar();\r\n            }\r\n          },\r\n          (error) => {\r\n            const erros = error.response.data;\r\n            this.$parent.erros.push(...erros);\r\n          }\r\n        )\r\n        .then(() => {\r\n          this.ocultarDialogCartaCorrecao();\r\n          this.$parent.processando(false);\r\n        });\r\n    },\r\n\r\n    cancelarCartaCorrecaoNfse(id) {\r\n\r\n      this.$parent.processando(true);\r\n      this.currentUser = LoginService.currentUserValue;\r\n      CartaCorrecaoService.cancelar(id, this.currentUser.usuario.idCliente)\r\n        .then(\r\n          (response) => {\r\n            this.cartaCorrecao = response.data;\r\n\r\n            this.$root.$emit(\"alert:success\", 'Carta de Correção Cancelada com Sucesso!');\r\n\r\n          },\r\n          (error) => {\r\n            const erro = error.response.data;\r\n            this.$root.$emit(\"alert:error\", erro);\r\n          }\r\n        )\r\n        .then(() => {\r\n          this.$parent.processando(false);\r\n        });\r\n    },\r\n\r\n    limparDadosCartaCorrecao() {\r\n      this.selectedPessoaPrestador = new Pessoa();\r\n      this.selectedPessoa = new Pessoa();\r\n      this.selectedPessoaIntermediario = new Pessoa();\r\n      this.notaFiscal = new NotaFiscal();\r\n      this.cartaCorrecao = new CartaCorrecao();\r\n    },\r\n    visualizar(cartaId) {\r\n      this.$parent.processando(true);\r\n\r\n      if(this.apresentacao){\r\n        CartaCorrecaoService.consultaCartaCorrecao(cartaId);\r\n      }\r\n\r\n      ReportService.imprimir('nfs_carta_correcao_nota', [\r\n        {\r\n          param: \"id\",\r\n          string: cartaId,\r\n        }\r\n\r\n      ])\r\n        .then(\r\n          (data) => {\r\n            console.log(data);\r\n          },\r\n          (error) => {\r\n            this.$root.$emit(\"alert:warn\", \"Erro ao exibir a visualização!\");\r\n            console.log(error);\r\n          }\r\n        )\r\n        .then(() => {\r\n          this.$parent.processando(false);\r\n        });\r\n    },\r\n  },\r\n\r\n  computed: {\r\n    loading() {\r\n      return this.$parent.loading;\r\n    },\r\n\r\n    desabilitarEdicaoTomador() {\r\n      return !!this.selectedPessoa.idContribuinte;\r\n    },\r\n  },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.scrolable-dialog {\r\n  padding-right: 25px;\r\n  width: 90vw;\r\n  max-height: 65vh;\r\n  overflow-y: auto;\r\n  overflow-x: hidden;\r\n}\r\n\r\ntextarea {\r\n  width: 100%;\r\n  border-radius: 12px;\r\n}\r\n</style>","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CartaCorrecaoNotaFiscal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CartaCorrecaoNotaFiscal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CartaCorrecaoNotaFiscal.vue?vue&type=template&id=11a7b16a&scoped=true&\"\nimport script from \"./CartaCorrecaoNotaFiscal.vue?vue&type=script&lang=js&\"\nexport * from \"./CartaCorrecaoNotaFiscal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./CartaCorrecaoNotaFiscal.vue?vue&type=style&index=0&id=11a7b16a&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  \"11a7b16a\",\n  null\n  \n)\n\nexport default component.exports","<template>\r\n  <div class=\"container-fluid\">\r\n    <div>\r\n      <div class=\"card\">\r\n        <div id=\"topo\" class=\"card-header\">\r\n          <div class=\"row\">\r\n            <div class=\"col col-xs-2\">\r\n              <h4 class=\"panel-title\">\r\n                <span class=\"title\">Consulta e gerenciamento das Notas Fiscais de Serviço\r\n                  emitidas.</span>\r\n                <br />\r\n                <span class=\"navigation\">Nota Fiscal > Consulta</span>\r\n              </h4>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"card-body\">\r\n          <exportar-notas-fiscais />\r\n          <error-list :erros=\"erros\" />\r\n          <cancelar-nota-fiscal />\r\n          <enviar-email-nota-fiscal />\r\n          <carta-correcao-nota-fiscal />\r\n          <consulta-declaracoes-nota-fiscal />\r\n          <analise-cancelamento-nota-fiscal />\r\n\r\n          <div class=\"row\">\r\n            <div class=\"col-md-2 col-lg-1 mb-3\">\r\n              <span class=\"p-fluid\">\r\n                <InputText type=\"text\" id=\"filtroNumero\" v-model=\"filtroNumero\" placeholder=\"Número\" autocomplete=\"off\"\r\n                  @keyup.enter=\"pesquisar\" />\r\n              </span>\r\n            </div>\r\n            <div class=\"col-md-1 col-lg-1 mb-3\">\r\n              <span class=\"p-fluid\">\r\n                <InputText type=\"text\" id=\"filtroRpsNumero\" v-model=\"filtroRpsNumero\" title=\"Número RPS\"\r\n                  placeholder=\"Número RPS\" autocomplete=\"off\" @keyup.enter=\"pesquisar\" />\r\n              </span>\r\n            </div>\r\n            <div class=\"col-md-4 col-lg-2 mb-3\">\r\n              <span class=\"p-fluid\">\r\n                <Calendar id=\"dataIni\" name=\"dataFim\" v-model=\"dataFatoGeradorIni\" :showIcon=\"true\"\r\n                  dateFormat=\"dd/mm/yy\" placeholder=\"Data Inicial\" @keyup.enter=\"pesquisar\" v-maska=\"'##/##/####'\" />\r\n              </span>\r\n            </div>\r\n            <div class=\"col-md-4 col-lg-2 mb-3\">\r\n              <span class=\"p-fluid\">\r\n                <Calendar id=\"dataFim\" name=\"dataFim\" v-model=\"dataFatoGeradorFim\" :showIcon=\"true\"\r\n                  dateFormat=\"dd/mm/yy\" placeholder=\"Data Final\" @keyup.enter=\"pesquisar\" v-maska=\"'##/##/####'\" />\r\n              </span>\r\n            </div>\r\n            <div class=\"col-md-12 col-lg-4 mb-3\">\r\n              <span class=\"p-fluid\">\r\n                <AutoComplete id=\"tomador\" v-model=\"selectedPessoa\" :dropdown=\"true\" :suggestions=\"filteredPessoas\"\r\n                  @complete=\"searchPessoa($event)\" @keyup.enter=\"pesquisar\" field=\"detail\"\r\n                  placeholder=\"CPF/CNPJ/Nome Tomador\" />\r\n              </span>\r\n            </div>\r\n            <div class=\"col-md-2 mb-2\">\r\n              <span class=\"p-fluid\">\r\n                <Dropdown id=\"situacao\" v-model=\"filtroSituacao\" :options=\"filtroSituacoes\" optionLabel=\"name\"\r\n                  title=\"Selecione uma Situação\" placeholder=\"Selecione uma Situação\" />\r\n              </span>\r\n            </div>\r\n          </div>\r\n\r\n          <div class=\"row\" v-if=\"showFilterIntermediario\">\r\n            <div class=\"col-md-12 col-lg-4 mb-3\">\r\n              <span class=\"p-fluid\">\r\n                <AutoComplete id=\"intermediario\" v-model=\"selectedIntermediario\" :dropdown=\"true\"\r\n                  :suggestions=\"filteredIntermediario\" @complete=\"searchIntermediario($event)\" @keyup.enter=\"pesquisar\"\r\n                  field=\"detail\" placeholder=\"CPF/CNPJ/Nome Intermediário\" />\r\n              </span>\r\n            </div>\r\n          </div>\r\n\r\n          <div class=\"mb-2\">\r\n            <Button @click=\"pesquisar()\" label=\"Pesquisar\" type=\"button\" class=\"p-button-primary mr-2\"\r\n              icon=\"pi pi-search\" :disabled=\"loading\" />\r\n            <Button class=\"btn btn-primary mr-2\" type=\"button\" id=\"dropdownMenuButton\" icon=\"pi pi-angle-down\"\r\n              label=\"Imprimir\" data-toggle=\"dropdown\" title=\"Imprimir\" aria-haspopup=\"true\" aria-expanded=\"false\"\r\n              :disabled=\"loading\"></Button>\r\n            <div class=\"dropdown-menu\" aria-labelledby=\"dropdownMenuButton\">\r\n              <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading\" @click=\"imprimirConsultaNotaFiscal()\">\r\n                <span class=\"pi pi-print mr-2\"></span>Notas Fiscais\r\n              </button>\r\n              <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading\" v-show=\"!notaAvulsa && !devedorContumaz\"\r\n                @click=\"imprimirNotaFiscalAgrupadas()\">\r\n                <span class=\"pi pi-print mr-2\"></span>Relação de Notas Fiscais\r\n              </button>\r\n              <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading\" v-show=\"!notaAvulsa && !devedorContumaz\"\r\n                @click=\"imprimirRelacaoRetencoesNfse()\">\r\n                <span class=\"pi pi-print mr-2\"></span>Relação de Retenções por Notas Fiscais\r\n              </button>\r\n              <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading\" v-show=\"notaAvulsa\" @click=\"imprimirConsultaNotaFiscalAvulsaDam()\">\r\n                <span class=\"pi pi-print mr-2\"></span>Relação de DAM de Notas Fiscais Avulsas\r\n              </button>\r\n              <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading\" @click=\"imprimirLivroFiscal()\">\r\n                <span class=\"pi pi-print mr-2\"></span>Livro Fiscal\r\n              </button>\r\n              <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading\" @click=\"imprimirRelacaoChaveValidacao()\">\r\n                <span class=\"pi pi-print mr-2\"></span>Relação de Chaves de Validação\r\n              </button>\r\n            </div>\r\n\r\n            <Button @click=\"exportar()\" label=\"Exportar Notas Fiscais\" type=\"button\" class=\"p-button-primary mr-2\"\r\n              icon=\"pi pi-download\" :disabled=\"loading\" v-show=\"!notaAvulsa\" />\r\n            <router-link to=\"/consultaNfseRps\">\r\n              <Button type=\"button\" icon=\"pi pi-file\" label=\"Lotes de RPS\" title=\"Novo\" :disabled=\"loading\" />\r\n            </router-link>\r\n          </div>\r\n\r\n          <hr />\r\n\r\n          <div class=\"row pr-3 pl-3\">\r\n            <DataTable :value=\"nfseList\" :paginator=\"true\" :rows=\"10\" :autoLayout=\"true\" ref=\"dt\">\r\n              <template #empty>Nenhum resultado encontrado.</template>\r\n              <Column>\r\n                <template #body=\"slotProps\">\r\n                  <div class=\"dropdown\">\r\n                    <Button class=\"btn btn-primary\" type=\"button\" id=\"dropdownMenuButton\" icon=\"pi pi-angle-down\"\r\n                      data-toggle=\"dropdown\" title=\"Opções\" @click=\"verificaDamGerado(slotProps.data.id)\"\r\n                      aria-haspopup=\"true\" aria-expanded=\"false\"></Button>\r\n                    <div class=\"dropdown-menu\" aria-labelledby=\"dropdownMenuButton\">\r\n\r\n\r\n                      <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading\"\r\n                        v-show=\"exibirEmissaoDam(slotProps.data.damPago, slotProps.data.situacao, slotProps.data.idBolDevedorContumaz)\"\r\n                        @click=\"\r\n                          carregarVencimentoBoleto(\r\n                            slotProps.data.dataFatoGerador,\r\n                            slotProps.data.id\r\n                          )\r\n                          \">\r\n                        <span class=\"pi pi-fw pi-calendar mr-2\"></span>{{ labelDam }}\r\n                      </button>\r\n                      <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading\"\r\n                        v-if=\"exibirImpressao(slotProps.data.damPago)\" @click=\"visualizar(slotProps.data.id)\">\r\n                        <span class=\"pi pi-search mr-2\"></span>Visualizar\r\n                      </button>\r\n                      <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading\"\r\n                        v-show=\"exibirImpressao(slotProps.data.damPago)\" @click=\"download(slotProps.data.id)\">\r\n                        <span class=\"pi pi-download mr-2\"></span>Download\r\n                      </button>\r\n                      <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading\"\r\n                        @click=\"downloadXml(slotProps.data.id)\"\r\n                        v-show=\"exibirExportarXml(slotProps.data.damPago, slotProps.data.idBolDevedorContumaz)\">\r\n                        <span class=\"pi pi-download mr-2\"></span>Exportar XML\r\n                      </button>\r\n                      <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading ||\r\n                        slotProps.data.situacao == 'Cancelada' ||\r\n                        slotProps.data.situacao == 'Substituída'\r\n                        \" v-show=\"exibirEnviarEmail(slotProps.data.damPago, slotProps.data.idBolDevedorContumaz)\"\r\n                        @click=\"enviarEmail(slotProps.data.id)\">\r\n                        <span class=\"pi pi-envelope mr-2\"></span>Enviar por\r\n                        E-mail\r\n                      </button>\r\n\r\n                      <div class=\"dropdown-divider\" />\r\n\r\n                      <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading ||\r\n                        slotProps.data.situacao == 'Cancelada' ||\r\n                        slotProps.data.situacao == 'Substituída' ||\r\n                        inativo\r\n                        \"\r\n                        v-show=\"exibirCartaCorrecao && exibirBotaoCartaCorrecao(slotProps.data.damPago, slotProps.data.idBolDevedorContumaz)\"\r\n                        @click=\"cartaCorrecaoNotaFiscal(slotProps.data)\">\r\n                        <span class=\"pi pi-pencil mr-2\"></span>Carta de Correção\r\n                      </button>\r\n\r\n                      <div class=\"dropdown-divider\" />\r\n\r\n                      <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading ||\r\n                        slotProps.data.situacao == 'Cancelada' ||\r\n                        slotProps.data.situacao == 'Substituída' ||\r\n                        slotProps.data.situacao ==\r\n                        'Em análise de Cancelamento' ||\r\n                        inativo\r\n                        \" @click=\"cancelarNotaFiscal(slotProps.data)\">\r\n                        <span class=\"pi pi-times mr-2\"></span>Cancelar\r\n                      </button>\r\n                      <button class=\"dropdown-item\" type=\"button\" v-show=\"currentUser.usuario.idBolAdmin\r\n                        \" :disabled=\"loading ||\r\n                          slotProps.data.situacao == 'Cancelada' ||\r\n                          slotProps.data.situacao == 'Substituída' ||\r\n                          inativo\" @click=\"cancelarNotaFiscalDireta(slotProps.data)\">\r\n                        <span class=\"pi pi-times mr-2\"></span>Cancelar Nota\r\n                        Prazo Vencido\r\n                      </button>\r\n                      <button class=\"dropdown-item\" type=\"button\" v-show=\"notaAvulsa != true\" :disabled=\"loading ||\r\n                        slotProps.data.situacao == 'Cancelada' ||\r\n                        slotProps.data.situacao == 'Substituída' ||\r\n                        slotProps.data.situacao ==\r\n                        'Em análise de Cancelamento' ||\r\n                        inativo\r\n                        \" @click=\"substituirNotaFiscal(slotProps.data)\">\r\n                        <span class=\"pi pi-refresh mr-2\"></span>Substituir\r\n                      </button>\r\n                      <div class=\"dropdown-divider\" />\r\n                      <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading\" v-show=\"exibirConsultaDeclaracao\"\r\n                        @click=\"consultaDeclaracoesNfse(slotProps.data.id)\">\r\n                        <span class=\"pi pi-file-o mr-2\"></span>Consulta de Declarações\r\n                      </button>\r\n\r\n                      <div class=\"dropdown-divider\" v-show=\"notaAvulsa != true &&\r\n                        currentUser.usuario.idBolAdmin\" />\r\n                      <button class=\"dropdown-item\" type=\"button\" v-show=\"notaAvulsa != true &&\r\n                        currentUser.usuario.idBolAdmin\" :disabled=\"loading ||\r\n                          slotProps.data.situacao == 'Cancelada' ||\r\n                          slotProps.data.situacao == 'Substituída' ||\r\n                          slotProps.data.situacao ==\r\n                          'Em análise de Cancelamento' ||\r\n                          inativo\" @click=\"analiseCancelamento(slotProps.data)\">\r\n                        <span class=\"pi pi-pencil mr-2\"></span>Análise Cancelamento/Substituição\r\n                      </button>\r\n                      <div class=\"dropdown-divider\"\r\n                        v-show=\"currentUser.usuario.idBolAdmin && slotProps.data.situacao === 'Cancelada'\" />\r\n                      <button class=\"dropdown-item\" type=\"button\"\r\n                        v-show=\"currentUser.usuario.idBolAdmin && slotProps.data.situacao === 'Cancelada'\"\r\n                        :disabled=\"loading || inativo\" @click=\"confirmaDesfazerCancelamento(slotProps.data.id)\">\r\n                        <span class=\"pi pi-pencil mr-2\"></span>Desfazer Cancelamento Nota Fiscal\r\n                      </button>\r\n                    </div>\r\n                  </div>\r\n                </template>\r\n              </Column>\r\n              <Column field=\"numero\" header=\"Número\" bodyStyle=\"text-align:right\"></Column>\r\n              <Column field=\"rpsNumero\" header=\"Número RPS\" bodyStyle=\"text-align:right\"></Column>\r\n              <Column field=\"competenciaFormatada\" header=\"Competência\" bodyStyle=\"text-align:center\"></Column>\r\n              <Column field=\"dataGeracaoFormatada\" header=\"Geração\" bodyStyle=\"text-align:center\"></Column>\r\n              <Column headerStyle=\"min-width: 10em\" field=\"valorFormatado\" header=\"Valor\" bodyStyle=\"text-align:right\">\r\n              </Column>\r\n              <Column headerStyle=\"min-width: 20em\" field=\"tomadorDadosDetail\" header=\"Tomador\"></Column>\r\n              <Column field=\"situacao\" header=\"Situação\" bodyStyle=\"text-align:center\"></Column>\r\n              <template #footer>\r\n                <div style=\"text-align: right\">\r\n                  <Button icon=\"pi pi-external-link\" label=\"Exportar para XLS\" @click=\"imprimirExcel()\" />\r\n                </div>\r\n              </template>\r\n            </DataTable>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n    <Dialog header=\"Aviso\" :visible.sync=\"displayAtivaNota\" :style=\"{ width: '30vw' }\" :modal=\"true\">\r\n      Confirma a reativação da nota fiscal?\r\n      <hr />\r\n      <div class=\"container\">\r\n        <div class=\"row\">\r\n          <div>\r\n            <Button label=\"Sim\" icon=\"pi pi-check\" @click=\"desfazerCancelamento()\" class=\"mr-2\" />\r\n          </div>\r\n          <div>\r\n            <Button label=\"Não\" icon=\"pi pi-times\" @click=\"displayAtivaNota = false\" class=\"p-button-secondary\" />\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </Dialog>\r\n\r\n    <Dialog  :visible.sync=\"displayVencBoleto\" :style=\"{ width: '42vw' }\"\r\n      :contentStyle=\"{ overflow: 'visible' }\" :modal=\"true\">\r\n      <h1 class=\"titulo-header\">\r\n        DAM Nota Fiscal\r\n        <Button id=\"icon-close-modals\" icon=\"pi pi-times\" class=\"p-button-rounded p-button-text\" @click=\"displayVencBoleto = false\"/>\r\n      </h1><br/>\r\n      <div class=\"col-md-4 mb-8\">\r\n        <label for=\"dataVencBoleto\">Data de Vencimento: *</label>\r\n        <span class=\"p-fluid\">\r\n          <Calendar :key=\"keyVencBoleto\" id=\"dataVencBoleto\" name=\"dataVencBoleto\" v-model=\"dataVencimento\"\r\n            :showIcon=\"true\" dateFormat=\"dd/mm/yy\" v-maska=\"'##/##/####'\" />\r\n        </span>\r\n      </div>\r\n      <hr />\r\n      <div>\r\n        <div class=\"row\">\r\n          <div class=\"mb-2\">\r\n            <Button label=\"Gerar DAM\" icon=\"pi pi-check\" class=\"mr-2\" v-show=\"damGerado != 'S'\"\r\n              @click=\"gerarDamNotaAvulsa()\" :disabled=\"loading\" />\r\n          </div>\r\n          <div class=\"mb-2\">\r\n            <Button label=\"Imprimir DAM\" icon=\"pi pi-print\" v-show=\"damGerado == 'S'\" @click=\"imprimirBoleto()\"\r\n              :disabled=\"loading\" class=\"mr-2\" />\r\n          </div>\r\n        </div>\r\n        <div v-if=\"damGerado == 'S' && habilitarPix\" class=\"row\">\r\n          <div class=\"mb-2\">\r\n            <Button type=\"button\" label=\"Pagar com PIX\" title=\"Pagar com PIX\" class=\"p-button-outlined mr-2\"\r\n              icon=\"pi pix-icon\" style=\"margin-right: 0.5em\" :disabled=\"loading\" @click=\"criarPagamentoPix()\"\r\n              v-show=\"damGerado == 'S' && habilitarPix\"></Button>\r\n          </div>\r\n          <div class=\"mb-2\">\r\n            <Button label=\"Imprimir DAM PIX\" class=\"p-button-outlined mr-2\" icon=\"pi pix-icon\" v-show=\"damGerado == 'S'\"\r\n              @click=\"imprimirBoletoPix()\" :disabled=\"loading\" />\r\n          </div>\r\n          <div class=\"mb-2\">\r\n            <Button title=\"Consultar Pagamento PIX\" label=\"Consultar Pagamento PIX\" icon=\"pi pi-search\"\r\n              style=\"margin-right: 0.5em\" @click=\"consultarPagamentoPix()\" v-show=\"damGerado == 'S' && habilitarPix\"\r\n              class=\"mr-2\" />\r\n          </div>\r\n        </div>\r\n        <div class=\"row\">\r\n          <div class=\"mb-2\">\r\n            <Button label=\"Cancelar DAM\" icon=\"pi pi-print\" v-show=\"damGerado == 'S' && showCancDAMPetro\"\r\n              @click=\"cancelarDamNotaAvulsa()\" :disabled=\"loading\" class=\"p-button-danger mr-2\" />\r\n            <Button label=\"Fechar\" icon=\"pi pi-times\" @click=\"hideVencBoleto()\" class=\"p-button-secondary\" />\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </Dialog>\r\n    <Dialog :visible.sync=\"showPix\" :style=\"{ width: '40vw' }\" :modal=\"true\">\r\n      <template #header>\r\n        <Button class=\"p-button-outlined mr-2\" icon=\"pi pix-icon\" />\r\n        <h3>Pagar com PIX</h3>\r\n      </template>\r\n      <div class=\"card-body\">\r\n        <div class=\"row\">\r\n          <div class=\"col-md-6 mb-2\">\r\n            <QRCanvas :options=\"optionsPix\" />\r\n          </div>\r\n          <div class=\"col-md-6 mb-2\">\r\n            <div style=\"padding-top: 20px\">\r\n              Utilize o App de sua Instituição Financeira, na opção PIX escolha\r\n              pagar com QR Code, confirme os dados e realize o Pagamento. <br />\r\n              <br /><span style=\"font-weight: bold\">Valor Total:\r\n                {{ this.pixGerado ? this.pixGerado.valorFormatado : 0 }}</span>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"row\" v-if=\"this.pixGerado && this.pixGerado.qrCode\">\r\n          <div class=\"col-md-12 mb-2\">\r\n            <Button label=\"Copiar Código PIX\" icon=\"pi pi-copy\" @click=\"copiarPix()\" />\r\n          </div>\r\n        </div>\r\n      </div>\r\n\r\n      <template #footer>\r\n        <Button label=\"Fechar\" icon=\"pi pi-times\" @click=\"showPix = false\" class=\"p-button-danger\" />\r\n      </template>\r\n    </Dialog>\r\n    <Dialog class=\"test-box\" :visible.sync=\"showBloqSubstituicaoNota\" :modal=\"true\" :closable=\"false\">\r\n      <h1 class=\"titulo-header\">\r\n        Substituição de Nota Fiscal\r\n        <Button id=\"icon-close-modals\" icon=\"pi pi-times\" class=\"p-button-rounded p-button-text\"\r\n          @click=\"showBloqSubstituicaoNota = false\" />\r\n      </h1><br />\r\n      <div class=\"container\">\r\n        <div class=\"row\">\r\n          <div class=\"col-md-12 mb-2 mensagem-cancelamento\">\r\n            <p class=\"mensagem-substituicao\">{{ mensagemSubstituicaoPrazo }}</p>\r\n          </div>\r\n        </div>\r\n        <div class=\"row\" v-if=\"utilizarTermoSubstituicao\">\r\n          <div class=\"col-md-12 mb-2\">\r\n            <label for=\"tipoTomador\">Observação: *</label>\r\n            <span class=\"p-fluid\">\r\n              <textarea v-model=\"obsSubstituicao\" rows=\"5\" maxlength=\"255\" />\r\n            </span>\r\n          </div>\r\n        </div>\r\n      </div>\r\n\r\n      <hr />\r\n\r\n      <div class=\"container\">\r\n        <div class=\"row\">\r\n          <div>\r\n            <Button @click=\"showBloqSubstituicaoNota = false\" type=\"button\" label=\"Fechar\"\r\n              class=\"p-button-primary mr-2 p-button-danger\" icon=\"pi pi-times\" />\r\n            <Button @click=\"emitirTermo()\" href=\"#topo\" type=\"button\" label=\"Emitir Termo de Substituição\"\r\n              class=\"p-button-primary mr-2 p-button-success\" icon=\"pi pi-file\" :disabled=\"loading\"\r\n              v-if=\"utilizarTermoSubstituicao\" />\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </Dialog>\r\n  </div>\r\n</template>\r\n<script>\r\nimport { maska } from 'maska'\r\nimport RegimeService from '../services/tributario/regime.service';\r\nimport NotaFiscalService from \"../services/nfse/notafiscal.service\";\r\nimport NotaFiscalAvulsaService from \"../services/nfse/notafiscalavulsa.service\";\r\nimport PessoaService from \"../services/nfse/pessoa.service\";\r\nimport ExportarNotasFiscais from \"../components/emissaoNfse/ExportarNotasFiscais\";\r\nimport CancelarNotaFiscal from \"../components/emissaoNfse/CancelarNotaFiscal\";\r\nimport AnaliseCancelamentoNotaFiscal from \"../components/emissaoNfse/AnaliseCancelamentoNotaFiscal\";\r\nimport CartaCorrecaoNotaFiscal from \"../components/emissaoNfse/CartaCorrecaoNotaFiscal\";\r\nimport ConsultaDeclaracoesNotaFiscal from '../components/emissaoNfse/ConsultaDeclaracoesNotaFiscal';\r\nimport EnviarEmailNotaFiscal from \"../components/emissaoNfse/EnviarEmailNotaFiscal\";\r\nimport ReportService from \"../services/report.service\";\r\nimport money from \"../conf/config.money\";\r\nimport LoginService from \"../services/acesso/login.service\";\r\nimport { QRCanvas } from \"qrcanvas-vue\";\r\n\r\nexport default {\r\n  directives: { maska },\r\n  name: \"ConsultaNfse\",\r\n\r\n  components: {\r\n    ExportarNotasFiscais,\r\n    CancelarNotaFiscal,\r\n    EnviarEmailNotaFiscal,\r\n    CartaCorrecaoNotaFiscal,\r\n    ConsultaDeclaracoesNotaFiscal,\r\n    AnaliseCancelamentoNotaFiscal,\r\n    QRCanvas\r\n  },\r\n\r\n  data() {\r\n    return {\r\n      money: money,\r\n      inativo: false,\r\n      display: false,\r\n      displayAtivaNota: false,\r\n      loading: false,\r\n      exibirCartaCorrecao: true,\r\n      filtroEmissao: \"\",\r\n      filtrosEmissao: [\r\n        { name: \"Notas Prestadas\", key: \"P\" },\r\n        { name: \"Notas Tomadas\", key: \"T\" }\r\n      ],\r\n      filtroNumero: \"\",\r\n      filtroRpsNumero: \"\",\r\n      filtroSituacao: \"\",\r\n      filtroSituacoes: [\r\n        { name: \"Todos\", key: \"T\" },\r\n        { name: \"Ativa\", key: \"A\" },\r\n        { name: \"Cancelada\", key: \"C\" },\r\n        { name: \"Substituida\", key: \"S\" }\r\n      ],\r\n      erros: [],\r\n      nfseList: [],\r\n      listID: [],\r\n      nfseId: null,\r\n      currentUser: null,\r\n      dataFatoGeradorIni: null,\r\n      dataFatoGeradorFim: null,\r\n      filteredPessoas: null,\r\n      filteredIntermediario: null,\r\n      selectedPessoa: null,\r\n      selectedIntermediario: null,\r\n      notaAvulsa: null,\r\n      damGerado: null,\r\n      displayVencBoleto: false,\r\n      keyVencBoleto: 1,\r\n      dataVencimento: null,\r\n      idNotaAvulsaSelecionada: null,\r\n      observacaoClienteNfse: false,\r\n      habilitarPix: false,\r\n      showPix: false,\r\n      optionsPix: {\r\n        cellSize: 5,\r\n        data: \"hello\",\r\n      },\r\n      pixGerado: null,\r\n      devedorContumaz: false,\r\n      labelDam: \"DAM Nota Fiscal Avulsa\",\r\n      exibirConsultaDeclaracao: true,\r\n      mensagemSubstituicaoPrazo: null,\r\n      showBloqSubstituicaoNota: false,\r\n      utilizarTermoSubstituicao: false,\r\n      obsSubstituicao: \"\",\r\n      showCopiaNota: false,\r\n      showFilterIntermediario: false,\r\n      showCancDAMPetro: true,\r\n      cancDamPetrolina: false\r\n    };\r\n  },\r\n\r\n  mounted() {\r\n    document.getElementById(\"filtroNumero\").focus();\r\n  },\r\n\r\n  created() {\r\n    this.currentUser = LoginService.currentUserValue;\r\n    if (this.currentUser.configuracao && this.currentUser.configuracao.idBolModeloFechamento === 'E') {\r\n      this.exibirConsultaDeclaracao = false;\r\n    }\r\n    this.habilitarPix = this.currentUser.configuracao.idBolUtilizarPix === \"S\";\r\n    this.inativo =\r\n      this.currentUser && this.currentUser.contribuinte\r\n        ? !this.currentUser.contribuinte.ativo\r\n        : false;\r\n    this.notaAvulsa = this.currentUser.emiteNotaAvulsa;\r\n    console.log(\"NOTA AVULSA? \"+this.notaAvulsa);\r\n    console.log('teste');\r\n    console.log(this.notaAvulsa);\r\n    this.observacaoClienteNfse = this.currentUser.configuracao.idBolObservacaoNfse === \"S\";\r\n    this.dataVencimento = new Date();\r\n    this.devedorContumaz = (!this.notaAvulsa && (this.currentUser && this.currentUser.contribuinte && this.currentUser.contribuinte.devedorCostumaz && this.currentUser.contribuinte.devedorCostumaz === 'S'));\r\n    if (this.devedorContumaz) {\r\n      this.labelDam = \"DAM Nota Fiscal\";\r\n    }\r\n    this.pesquisar();\r\n    if (this.currentUser.usuario.idCliente === \"2471EF3C1697358D802D6B5151D4CF0B\" || this.currentUser.usuario.idCliente === \"479FD7C92756B652D3A061F3A370CC36\" || this.currentUser.usuario.idCliente === \"9DFDF7BDBB4580917C42BA8F7E4A5477\" || this.currentUser.usuario.idCliente === \"2cad11c7-32f8-4ebd-a049-7355df3f64f6\") {\r\n      this.exibirCartaCorrecao = false;\r\n    } else if (this.currentUser.configuracao.idBolCartaCorrecao && this.currentUser.configuracao.idBolCartaCorrecao === 'D') {\r\n      this.exibirCartaCorrecao = false;\r\n    }\r\n\r\n    if (this.currentUser.usuario.idCliente === \"3d6adeff-3f83-4033-8b16-3f5d42fccd1a\") {\r\n      this.showCancDAMPetro = false;\r\n      this.cancDamPetrolina = true;\r\n    }\r\n\r\n    this.filtroEmissao = this.filtrosEmissao[0];\r\n    setTimeout(async () => {\r\n      this.regimes = await RegimeService.findAllRegimes(\r\n        this.currentUser.usuario.idCliente\r\n      );\r\n    }, 250);\r\n    this.utilizarTermoSubstituicao = (this.$apresentacao ? this.$apresentacao : false);\r\n    this.diasPrazoSubstituicao = this.currentUser.configuracao.nfPrazoDiasSubstituicao || 0;\r\n\r\n    this.exibeIntermediario();\r\n  },\r\n\r\n  methods: {\r\n    copiarPix() {\r\n      navigator.clipboard.writeText(this.pixGerado.qrCode);\r\n    },\r\n    pesquisar() {\r\n      this.erros = [];\r\n      console.log(this.selectedIntermediario);\r\n      this.processando(true);\r\n\r\n      if (!this.dataFatoGeradorIni) {\r\n        this.dataFatoGeradorIni = null;\r\n      }\r\n      if (!this.dataFatoGeradorFim) {\r\n        this.dataFatoGeradorFim = null;\r\n      }\r\n\r\n      NotaFiscalService.listAllFiltroPesquisar(\r\n        this.selectedPessoa && this.selectedPessoa.documento\r\n          ? this.selectedPessoa.documento\r\n          : \"\",\r\n        this.selectedIntermediario && this.selectedIntermediario.id\r\n          ? this.selectedIntermediario.id\r\n          : \"\",\r\n        this.filtroNumero,\r\n        this.filtroRpsNumero,\r\n        this.dataFatoGeradorIni,\r\n        this.dataFatoGeradorFim,\r\n        this.notaAvulsa == true ? \"S\" : \"N\",\r\n        (this.filtroSituacao ? this.filtroSituacao.key : \"T\"),\r\n        this.aliquota\r\n      )\r\n        .then((response) => {\r\n          this.nfseList = response;\r\n          console.log(this.nfseList);\r\n        })\r\n        .then(() => {\r\n          this.processando(false);\r\n        });\r\n    },\r\n\r\n    visualizar(nfseId) {\r\n      this.processando(true);\r\n\r\n      let nomeRel = (this.observacaoClienteNfse ? \"NotaFiscalEletronicaObs\" : \"NotaFiscalEletronica\");\r\n\r\n      ReportService.imprimir(nomeRel, [\r\n        {\r\n          param: \"where\",\r\n          string: \" and nota_fiscal.id = '\" + nfseId + \"' \",\r\n        }\r\n\r\n      ])\r\n        .then(\r\n          (data) => {\r\n            console.log(data);\r\n          },\r\n          (error) => {\r\n            this.$root.$emit(\"alert:warn\", \"Erro ao exibir a visualização!\");\r\n            console.log(error);\r\n          }\r\n        )\r\n        .then(() => {\r\n          this.processando(false);\r\n        });\r\n    },\r\n\r\n    download(nfseId) {\r\n      this.processando(true);\r\n\r\n      let nomeRel = (this.observacaoClienteNfse ? \"NotaFiscalEletronicaObs\" : \"NotaFiscalEletronica\");\r\n\r\n      ReportService.download(nomeRel, [\r\n        {\r\n          param: \"where\",\r\n          string: \" and nota_fiscal.id = '\" + nfseId + \"' \",\r\n        }\r\n      ])\r\n        .then(\r\n          (data) => {\r\n            console.log(data);\r\n          },\r\n          (error) => {\r\n            this.$root.$emit(\"alert:warn\", \"Erro ao efetuar o download!\");\r\n            console.log(error);\r\n          }\r\n        )\r\n        .then(() => {\r\n          this.processando(false);\r\n        });\r\n    },\r\n\r\n    downloadXml(nfseId) {\r\n      this.processando(true);\r\n\r\n      ReportService.downloadXml(nfseId)\r\n        .then(\r\n          (data) => {\r\n            console.log(data);\r\n          },\r\n          (error) => {\r\n            this.$root.$emit(\"alert:warn\", \"Erro ao efetuar o download!\");\r\n            console.log(error);\r\n          }\r\n        )\r\n        .then(() => {\r\n          this.processando(false);\r\n        });\r\n    },\r\n    imprimirExcel() {\r\n      this.imprimirConsultaTipo('xls');\r\n    },\r\n    imprimirConsultaTipo(tipo) {\r\n      this.processando(true);\r\n      let ID_CNT_PRESTADOR = this.filtroEmissao.key === 'P' ? this.currentUser.contribuinte.idContribuinte : (this.selectedPrestador ? this.selectedPrestador.idContribuinte : null);\r\n      let DOC_TOMADOR = this.filtroEmissao.key === 'T' ? this.currentUser.contribuinte.documento : (this.selectedTomador ? this.selectedTomador.documento : null);\r\n      ReportService.imprimir(\"ConsultaNotaFiscalXls\", [\r\n        {\r\n          param: \"ID_CNT_PRESTADOR\",\r\n          string: ID_CNT_PRESTADOR\r\n        },\r\n        {\r\n          param: \"DOC_TOMADOR\",\r\n          string: DOC_TOMADOR\r\n        },\r\n        {\r\n          param: \"DATA_INICIAL\",\r\n          date: this.dataFatoGeradorIni\r\n        },\r\n        {\r\n          param: \"DATA_FINAL\",\r\n          date: this.dataFatoGeradorFim\r\n        },\r\n        {\r\n          param: \"P_SITUACAO\",\r\n          string: (this.filtroSituacao ? this.filtroSituacao.key : null)\r\n        }\r\n      ], tipo)\r\n        .then(\r\n          () => { },\r\n          error => {\r\n            this.$root.$emit(\"alert:warn\", \"Erro ao Imprimir!\");\r\n            console.log(error);\r\n          }\r\n        )\r\n        .then(() => {\r\n          this.processando(false);\r\n        });\r\n    },\r\n    imprimirRelacaoChaveValidacao() {\r\n      var msg = null;\r\n      if (!this.currentUser.contribuinte.idContribuinte) {\r\n        msg = \"É necessário informar o contribuinte!\";\r\n      } else if (!this.dataFatoGeradorIni) {\r\n        msg = \"É necessário informar a data Inicial!\";\r\n      } else if (!this.dataFatoGeradorFim) {\r\n        msg = \"É necessário informar a data Final!\";\r\n      }\r\n\r\n      if (!msg) {\r\n        this.processando(true);\r\n        ReportService.imprimir(\"RelacaoChavesValidacao\", [\r\n          {\r\n            param: \"ID_CNT_PRESTADOR\",\r\n            string: this.currentUser.contribuinte.idContribuinte,\r\n          },\r\n          {\r\n            param: \"DATA_INICIAL\",\r\n            date: this.dataFatoGeradorIni,\r\n          },\r\n          {\r\n            param: \"DATA_FINAL\",\r\n            date: this.dataFatoGeradorFim,\r\n          }])\r\n          .then(\r\n            () => { },\r\n            (error) => {\r\n              this.$root.$emit(\"alert:warn\", \"Erro ao Imprimir!\");\r\n              console.log(error);\r\n            }\r\n          )\r\n          .then(() => {\r\n            this.processando(false);\r\n          });\r\n      } else {\r\n        this.$root.$emit(\"alert:warn\", msg);\r\n      }\r\n\r\n    },\r\n    imprimirLivroFiscal() {\r\n      var msg = null;\r\n      if (!this.currentUser.contribuinte.idContribuinte) {\r\n        msg = \"É necessário informar o contribuinte!\";\r\n      } else if (!this.dataFatoGeradorIni) {\r\n        msg = \"É necessário informar a data Inicial!\";\r\n      } else if (!this.dataFatoGeradorFim) {\r\n        msg = \"É necessário informar a data Final!\";\r\n      }\r\n      \r\n      if (!msg) {\r\n        this.processando(true);\r\n        ReportService.imprimir(\"LivroFiscal\", [\r\n          {\r\n            param: \"ID_CNT_PRESTADOR\",\r\n            string: this.currentUser.contribuinte.idContribuinte,\r\n          },\r\n          {\r\n            param: \"DATA_INICIAL\",\r\n            date: this.dataFatoGeradorIni,\r\n          },\r\n          {\r\n            param: \"DATA_FINAL\",\r\n            date: this.dataFatoGeradorFim,\r\n          },\r\n          {\r\n            param: \"NOME_PRESTADOR\",\r\n            string: this.currentUser.contribuinte.nome,\r\n          },\r\n          {\r\n            param: \"CNPJ_PRESTADOR\",\r\n            string: this.currentUser.contribuinte.documento,\r\n          },\r\n          {\r\n            param: \"NOME_EMPRESA\",\r\n            string: this.currentUser.usuario.nomeCliente,\r\n          },\r\n          {\r\n            param: \"P_SITUACAO\",\r\n            string: (this.filtroSituacao && this.filtroSituacao.key != 'T' ? this.filtroSituacao.key : null),\r\n          },\r\n          {\r\n            param: \"ORDER_BY\",\r\n            string: this.currentUser.usuario.idCliente === \"25bb3c25-8e48-4dbe-8c1f-68b74553188c\" ? \"nota.data_fato_gerador\" : \"nota.id_cnt_prestador, nota.ano, nota.mes, nota.numero\",\r\n          },\r\n        ])\r\n          .then(\r\n            () => { },\r\n            (error) => {\r\n              this.$root.$emit(\"alert:warn\", \"Erro ao Imprimir!\");\r\n              console.log(error);\r\n            }\r\n          )\r\n          .then(() => {\r\n            this.processando(false);\r\n          });\r\n      } else {\r\n        this.$root.$emit(\"alert:warn\", msg);\r\n      }\r\n    },\r\n\r\n    imprimirConsultaNotaFiscal() {\r\n      var msg = null;\r\n      if (!this.currentUser.contribuinte.idContribuinte) {\r\n        msg = \"É necessário informar o contribuinte!\";\r\n      } else if (!this.dataFatoGeradorIni) {\r\n        msg = \"É necessário informar a data Inicial!\";\r\n      } else if (!this.dataFatoGeradorFim) {\r\n        msg = \"É necessário informar a data Final!\";\r\n      }\r\n      console.log(\"ID DO CONTRIBUINTE: \"+this.currentUser.contribuinte.idContribuinte);\r\n\r\n      if (!msg) {\r\n        this.processando(true);\r\n        ReportService.imprimir(\"ConsultaNotaFiscal\", [\r\n          {\r\n            param: \"ID_CNT_PRESTADOR\",\r\n            string: this.currentUser.contribuinte.idContribuinte,\r\n          },\r\n          {\r\n            param: \"DOC_TOMADOR\",\r\n            string:\r\n              this.selectedPessoa && this.selectedPessoa.documento\r\n                ? this.selectedPessoa.documento\r\n                : null,\r\n          },\r\n          {\r\n            param: \"DATA_INICIAL\",\r\n            date: this.dataFatoGeradorIni,\r\n          },\r\n          {\r\n            param: \"DATA_FINAL\",\r\n            date: this.dataFatoGeradorFim,\r\n          },\r\n          {\r\n            param: \"P_DETALHADO\",\r\n            string: \"S\",\r\n          },\r\n          {\r\n            param: \"P_SITUACAO\",\r\n            string: (this.filtroSituacao && this.filtroSituacao.key != 'T' ? this.filtroSituacao.key : null),\r\n          },\r\n        ])\r\n          .then(\r\n            () => { },\r\n            (error) => {\r\n              this.$root.$emit(\"alert:warn\", \"Erro ao Imprimir!\");\r\n              console.log(error);\r\n            }\r\n          )\r\n          .then(() => {\r\n            this.processando(false);\r\n          });\r\n      } else {\r\n        this.$root.$emit(\"alert:warn\", msg);\r\n      }\r\n    },\r\n\r\n    imprimirNotaFiscalAgrupadas() {\r\n      var msg = null;\r\n      if (!this.currentUser.contribuinte.idContribuinte) {\r\n        msg = \"É necessário informar o contribuinte!\";\r\n      } else if (!this.dataFatoGeradorIni) {\r\n        msg = \"É necessário informar a data Inicial!\";\r\n      } else if (!this.dataFatoGeradorFim) {\r\n        msg = \"É necessário informar a data Final!\";\r\n      }\r\n\r\n      if (!msg) {\r\n        this.processando(true);\r\n        ReportService.imprimir(\"NotaFiscalAgrupadas\", [\r\n          {\r\n            param: \"ID_CNT_PRESTADOR\",\r\n            string: this.currentUser.contribuinte.idContribuinte,\r\n          },\r\n          {\r\n            param: \"DOC_TOMADOR\",\r\n            string:\r\n              this.selectedPessoa && this.selectedPessoa.documento\r\n                ? this.selectedPessoa.documento\r\n                : null,\r\n          },\r\n          {\r\n            param: \"DATA_INICIAL\",\r\n            date: this.dataFatoGeradorIni,\r\n          },\r\n          {\r\n            param: \"DATA_FINAL\",\r\n            date: this.dataFatoGeradorFim,\r\n          },\r\n          {\r\n            param: \"P_SITUACAO\",\r\n            string: (this.filtroSituacao && this.filtroSituacao.key != 'T' ? this.filtroSituacao.key : null),\r\n          },\r\n        ])\r\n          .then(\r\n            () => { },\r\n            (error) => {\r\n              this.$root.$emit(\"alert:warn\", \"Erro ao Imprimir!\");\r\n              console.log(error);\r\n            }\r\n          )\r\n          .then(() => {\r\n            this.processando(false);\r\n          });\r\n      } else {\r\n        this.$root.$emit(\"alert:warn\", msg);\r\n      }\r\n    },\r\n\r\n    imprimirConsultaNotaFiscalAvulsaDam() {\r\n      var msg = null;\r\n      if (!this.currentUser.contribuinte.idContribuinte) {\r\n        msg = \"É necessário informar o contribuinte!\";\r\n      } else if (!this.dataFatoGeradorIni) {\r\n        msg = \"É necessário informar a data Inicial!\";\r\n      } else if (!this.dataFatoGeradorFim) {\r\n        msg = \"É necessário informar a data Final!\";\r\n      }\r\n\r\n      if (!msg) {\r\n        this.processando(true);\r\n        ReportService.imprimir(\"ConsultaNotaFiscalAvulsaDam\", [\r\n          {\r\n            param: \"ID_CNT_PRESTADOR\",\r\n            string: this.currentUser.contribuinte.idContribuinte,\r\n          },\r\n          {\r\n            param: \"DOC_TOMADOR\",\r\n            string:\r\n              this.selectedPessoa && this.selectedPessoa.documento\r\n                ? this.selectedPessoa.documento\r\n                : null,\r\n          },\r\n          {\r\n            param: \"DATA_INICIAL\",\r\n            date: this.dataFatoGeradorIni,\r\n          },\r\n          {\r\n            param: \"DATA_FINAL\",\r\n            date: this.dataFatoGeradorFim,\r\n          },\r\n          {\r\n            param: \"P_DETALHADO\",\r\n            string: \"S\",\r\n          },\r\n          {\r\n            param: \"P_SITUACAO\",\r\n            string: (this.filtroSituacao && this.filtroSituacao.key != 'T' ? this.filtroSituacao.key : null),\r\n          },\r\n        ])\r\n          .then(\r\n            () => { },\r\n            (error) => {\r\n              this.$root.$emit(\"alert:warn\", \"Erro ao Imprimir!\");\r\n              console.log(error);\r\n            }\r\n          )\r\n          .then(() => {\r\n            this.processando(false);\r\n          });\r\n      } else {\r\n        this.$root.$emit(\"alert:warn\", msg);\r\n      }\r\n    },\r\n\r\n    imprimirNotaFiscalAvulsaAgrupadas() {\r\n      var msg = null;\r\n      if (!this.currentUser.contribuinte.idContribuinte) {\r\n        msg = \"É necessário informar o contribuinte!\";\r\n      } else if (!this.dataFatoGeradorIni) {\r\n        msg = \"É necessário informar a data Inicial!\";\r\n      } else if (!this.dataFatoGeradorFim) {\r\n        msg = \"É necessário informar a data Final!\";\r\n      }\r\n\r\n      if (!msg) {\r\n        this.processando(true);\r\n        ReportService.imprimir(\"NotaFiscalAgrupadas\", [\r\n          {\r\n            param: \"ID_CNT_PRESTADOR\",\r\n            string: this.currentUser.contribuinte.idContribuinte,\r\n          },\r\n          {\r\n            param: \"DOC_TOMADOR\",\r\n            string:\r\n              this.selectedPessoa && this.selectedPessoa.documento\r\n                ? this.selectedPessoa.documento\r\n                : null,\r\n          },\r\n          {\r\n            param: \"DATA_INICIAL\",\r\n            date: this.dataFatoGeradorIni,\r\n          },\r\n          {\r\n            param: \"DATA_FINAL\",\r\n            date: this.dataFatoGeradorFim,\r\n          },\r\n          {\r\n            param: \"P_SITUACAO\",\r\n            string: (this.filtroSituacao && this.filtroSituacao.key != 'T' ? this.filtroSituacao.key : null),\r\n          },\r\n        ])\r\n          .then(\r\n            () => { },\r\n            (error) => {\r\n              this.$root.$emit(\"alert:warn\", \"Erro ao Imprimir!\");\r\n              console.log(error);\r\n            }\r\n          )\r\n          .then(() => {\r\n            this.processando(false);\r\n          });\r\n      } else {\r\n        this.$root.$emit(\"alert:warn\", msg);\r\n      }\r\n    },\r\n\r\n    imprimirRelacaoRetencoesNfse() {\r\n      var msg = null;\r\n      console.log(this.dataFatoGeradorIni);\r\n      if (!this.currentUser.contribuinte.idContribuinte) {\r\n        msg = \"É necessário informar o contribuinte!\";\r\n      } else if (!this.dataFatoGeradorIni) {\r\n        msg = \"É necessário informar a data Inicial!\";\r\n      } else if (!this.dataFatoGeradorFim) {\r\n        msg = \"É necessário informar a data Final!\";\r\n      }\r\n\r\n      if (!msg) {\r\n        this.processando(true);\r\n        ReportService.imprimir(\"ConsultaRetencoesNfse\", [\r\n          {\r\n            param: \"ID_CNT_PRESTADOR\",\r\n            string: this.currentUser.contribuinte.idContribuinte,\r\n            // string: \"bba1a08b-6ba2-480e-b134-8a5f61ca727a\"\r\n          },\r\n          {\r\n            param: \"DATA_INICIAL\",\r\n            date: this.dataFatoGeradorIni,\r\n            // date: '2018-01-01'\r\n          },\r\n          {\r\n            param: \"DATA_FINAL\",\r\n            date: this.dataFatoGeradorFim,\r\n            // date: '2024-12-02'\r\n          },\r\n          {\r\n            param: \"P_SITUACAO\",\r\n            string: (this.filtroSituacao && this.filtroSituacao.key != 'T' ? this.filtroSituacao.key : null),\r\n            // string: \"\"\r\n          },\r\n        ])\r\n          .then(\r\n            () => { },\r\n            (error) => {\r\n              this.$root.$emit(\"alert:warn\", \"Erro ao Imprimir!\");\r\n              console.log(error);\r\n            }\r\n          )\r\n          .then(() => {\r\n            this.processando(false);\r\n          });\r\n      } else {\r\n        this.$root.$emit(\"alert:warn\", msg);\r\n      }\r\n    },\r\n\r\n    searchPessoa(event) {\r\n      setTimeout(async () => {\r\n        this.filteredPessoas = await PessoaService.findAllByConttribuinteFiltro(\r\n          event.query,\r\n          \"\"\r\n        );\r\n      }, 550);\r\n    },\r\n\r\n    searchIntermediario(event) {\r\n      setTimeout(async () => {\r\n        this.filteredIntermediario = await PessoaService.findAllByConttribuinteFiltro(\r\n          event.query,\r\n          \"\"\r\n        );\r\n        console.log(this.filteredIntermediario);\r\n      }, 550);\r\n    },\r\n\r\n    enviarEmail(id) {\r\n      if (id) {\r\n        this.$root.$emit(\"notaFiscal:enviarEmail\", id);\r\n      }\r\n    },\r\n\r\n    cartaCorrecaoNotaFiscal(nota) {\r\n      if (nota) {\r\n        NotaFiscalService.findById(nota.id).then((response) => {\r\n          nota = response.data;\r\n          this.$root.$emit(\"notaFiscal:cartaCorrecao\", nota);\r\n        });\r\n      }\r\n    },\r\n\r\n    consultaDeclaracoesNfse(id) {\r\n      let tipo = \"N\";\r\n      if (id) {\r\n        this.$root.$emit(\"notaFiscal:consultaDeclaracoes\", tipo, id);\r\n      }\r\n    },\r\n\r\n    cancelarNotaFiscal(nota) {\r\n      if (nota) {\r\n        const notaFiscal = {\r\n          id: nota.id,\r\n          dataGeracao: nota.dataFatoGerador,\r\n          validacao: true,\r\n          cancDamPetrolina: this.cancDamPetrolina\r\n        };\r\n\r\n        this.$root.$emit(\"notaFiscal:cancelar\", notaFiscal);\r\n      }\r\n    },\r\n\r\n    exportar() {\r\n\r\n      this.$root.$emit(\"notaFiscal:exportar\");\r\n    },\r\n\r\n    cancelarNotaFiscalDireta(nota) {\r\n      if (nota) {\r\n        const notaFiscal = {\r\n          id: nota.id,\r\n          dataGeracao: nota.dataFatoGerador,\r\n          validacao: false,\r\n          cancDamPetrolina: this.cancDamPetrolina\r\n        };\r\n\r\n        this.$root.$emit(\"notaFiscal:cancelar\", notaFiscal);\r\n      }\r\n    },\r\n\r\n    substituirNotaFiscal(nota) {\r\n      this.processando(true);\r\n      this.erros = [];\r\n      let dataEmissao = this.moment(nota.dataFatoGerador).format(\r\n        \"YYYY-MM-DD\"\r\n      );\r\n\r\n      NotaFiscalService.validarSubstituicaoNotaFiscal(nota.id, nota.valorServico, dataEmissao)\r\n        .then((data) => {\r\n          if (data.data.length) {\r\n            this.erros.push(...data.data);\r\n          } else {\r\n            this.$router.push({\r\n              name: \"emissaoNfse\",\r\n              params: {\r\n                dadosSubstituicao: {\r\n                  id: nota.id,\r\n                  numero: nota.numero,\r\n                  data: nota.dataGeracaoFormatada,\r\n                  tomador: nota.tomadorDadosDetail,\r\n                  copiaNota: this.showCopiaNota\r\n                },\r\n              },\r\n            });\r\n          }\r\n        },\r\n          (error) => {\r\n            console.log(error);\r\n            this.nfseId = nota.id;\r\n            this.mensagemSubstituicaoPrazo = error.response.data;\r\n            this.obsSubstituicao = \"\";\r\n            this.showBloqSubstituicaoNota = true;\r\n          })\r\n        .then(() => {\r\n          this.processando(false);\r\n        });\r\n    },\r\n\r\n    confirmaDesfazerCancelamento(id) {\r\n      this.nfseId = id;\r\n      this.displayAtivaNota = true;\r\n    },\r\n\r\n    desfazerCancelamento() {\r\n      if (this.nfseId) {\r\n        this.processando(true);\r\n\r\n        NotaFiscalService.desfazerCancelamento(this.nfseId)\r\n          .then((response) => {\r\n            console.log(response);\r\n            this.pesquisar();\r\n            this.displayAtivaNota = false;\r\n            this.$root.$emit(\"alert:success\", \"Nota Fiscal reativada com sucesso!\");\r\n          },\r\n            (error) => {\r\n              this.$root.$emit(\"alert:warn\", \"Erro ao reativar nota fiscal!\");\r\n              this.damGerado = \"N\";\r\n              console.log(error);\r\n            })\r\n          .then(() => {\r\n            this.processando(false);\r\n          });\r\n      }\r\n    },\r\n    analiseCancelamento(nota) {\r\n      this.processando(true);\r\n\r\n      NotaFiscalService.validarAnaliseCancelamentoNfse(nota.id)\r\n        .then((response) => {\r\n          const dadosNotaFiscal = {\r\n            nota: nota,\r\n            notaSituacao: response.data\r\n          };\r\n          this.$root.$emit(\"notaFiscal:analiseCancelamento\", dadosNotaFiscal);\r\n\r\n        },\r\n          (error) => {\r\n            const erro = error.response.data;\r\n\r\n            if (erro) {\r\n              this.$root.$emit(\r\n                \"alert:warn\",\r\n                erro\r\n              );\r\n            }\r\n          })\r\n        .then(() => {\r\n          this.processando(false);\r\n        });\r\n    },\r\n\r\n    detail(nfseId) {\r\n      this.$router.push({ name: \"emissaoNfse\", params: { id: nfseId } });\r\n    },\r\n\r\n    processando(show) {\r\n      if (show) {\r\n        this.loading = true;\r\n        this.$root.$emit(\"loading:show\");\r\n      } else {\r\n        this.loading = false;\r\n        this.$root.$emit(\"loading:hide\");\r\n      }\r\n    },\r\n\r\n    verificaDamGerado() {\r\n      this.processando(true);\r\n      console.log(\"Verifica Dam Gerado!!\" + this.idNotaAvulsaSelecionada);\r\n      NotaFiscalAvulsaService.verificaDamGerado(this.idNotaAvulsaSelecionada)\r\n        .then(\r\n          (response) => {\r\n            this.damGerado = response.data;\r\n          },\r\n          (error) => {\r\n            this.$root.$emit(\"alert:warn\", \"Erro ao verificar DAM!\");\r\n            this.damGerado = \"N\";\r\n            console.log(error);\r\n          }\r\n        )\r\n        .then(() => {\r\n          this.processando(false);\r\n        });\r\n    },\r\n\r\n    gerarDamNotaAvulsa() {\r\n      if (!this.dataVencimento) {\r\n        this.$root.$emit(\"alert:warn\", \"Data de Vencimento Obrigatória!\");\r\n        return;\r\n      }\r\n      this.processando(true);\r\n      console.log(\r\n        \"Gerar DAM nf: \" +\r\n        this.idNotaAvulsaSelecionada +\r\n        \" Vencimento: \" +\r\n        this.dataVencimento\r\n      );\r\n      NotaFiscalAvulsaService.gerarDamNotaAvulsa(\r\n        this.idNotaAvulsaSelecionada,\r\n        this.dataVencimento\r\n      )\r\n        .then(\r\n          (response) => {\r\n            this.$root.$emit(\"alert:success\", \"DAM gerado com sucesso!\");\r\n            console.log(response);\r\n          },\r\n          (error) => {\r\n            this.$root.$emit(\"alert:warn\", \"Erro ao gerar o DAM!\");\r\n            console.log(error);\r\n          }\r\n        )\r\n        .then(() => {\r\n          this.verificaDamGerado();\r\n          this.processando(false);\r\n        });\r\n    },\r\n    cancelarDamNotaAvulsa() {\r\n      this.processando(true);\r\n      console.log(\"Cancelar DAM nf: \" + this.idNotaAvulsaSelecionada);\r\n      NotaFiscalAvulsaService.cancelarDamNotaAvulsa(\r\n        this.idNotaAvulsaSelecionada\r\n      )\r\n        .then(\r\n          (response) => {\r\n            this.$root.$emit(\"alert:success\", \"DAM cancelado com sucesso!\");\r\n            console.log(response);\r\n          },\r\n          (error) => {\r\n            this.$root.$emit(\"alert:warn\", \"Erro ao cancelar o DAM!\");\r\n            console.log(error);\r\n          }\r\n        )\r\n        .then(() => {\r\n          this.verificaDamGerado();\r\n          this.processando(false);\r\n        });\r\n    },\r\n    carregarVencimentoBoleto(dataEmissaoNfse, id) {\r\n      let d = this.currentUser.configuracao.diaVencimento;\r\n      let arrayOfData = dataEmissaoNfse.split(\"-\");\r\n      let dataEmissao = new Date(arrayOfData[0], arrayOfData[1] - 1, d);\r\n      let dataAtual = new Date();\r\n      let data = new Date(dataEmissao.getFullYear(), dataEmissao.getMonth(), d);\r\n      let mes = data.getMonth() + 1;\r\n      data.setMonth(mes);\r\n      if (dataAtual > data) {\r\n        this.dataVencimento = dataAtual;\r\n      } else {\r\n        this.dataVencimento = data;\r\n      }\r\n      this.idNotaAvulsaSelecionada = id;\r\n      this.verificaDamGerado();\r\n      this.displayVencBoleto = true;\r\n    },\r\n    hideVencBoleto() {\r\n      this.displayVencBoleto = false;\r\n      this.idNotaAvulsaSelecionada = null;\r\n    },\r\n    imprimirBoleto() {\r\n      if (!this.dataVencimento) {\r\n        this.$root.$emit(\"alert:warn\", \"Data de Vencimento Obrigatória!\");\r\n        return;\r\n      }\r\n      this.processando(true);\r\n      NotaFiscalAvulsaService.atualizarVencimento(\r\n        this.idNotaAvulsaSelecionada,\r\n        this.dataVencimento\r\n      )\r\n        .then(\r\n          (response) => {\r\n            console.log(response.data);\r\n            let idGerado = response.data;\r\n            ReportService.imprimir(\"trb_dam_a5\", [\r\n              {\r\n                param: \"RP_ID_CLIENTE\",\r\n                string: this.currentUser.usuario.idCliente,\r\n              },\r\n              {\r\n                param: \"P_CONTROLE_PARCELA\",\r\n                string:\r\n                  \" and cp.id_situacao in('1','4','6')  and  cp.id in ('\" +\r\n                  idGerado +\r\n                  \"')\",\r\n              },\r\n            ]).then(\r\n              (data) => {\r\n                console.log(data);\r\n              },\r\n              (error) => {\r\n                this.$root.$emit(\r\n                  \"alert:warn\",\r\n                  \"Erro ao exibir a visualização!\"\r\n                );\r\n                console.log(error);\r\n              }\r\n            );\r\n          },\r\n          (error) => {\r\n            this.$root.$emit(\"alert:warn\", \"Erro ao atualizar Vencimento!\");\r\n            console.log(error);\r\n          }\r\n        )\r\n        .then(() => {\r\n          this.hideVencBoleto();\r\n          this.processando(false);\r\n        });\r\n    },\r\n    criarPagamentoPix() {\r\n      this.processando(true);\r\n      NotaFiscalAvulsaService.criarPagamentoPix(this.idNotaAvulsaSelecionada)\r\n        .then(\r\n          (response) => {\r\n            console.log(response);\r\n            this.pixGerado = response.data;\r\n            this.optionsPix.data = this.pixGerado.qrCode;\r\n            this.showPix = true;\r\n          },\r\n          (error) => {\r\n            this.pixGerado = null;\r\n            this.$root.$emit(\"alert:warn\", error);\r\n            console.log(error);\r\n          }\r\n        )\r\n        .then(() => {\r\n          this.processando(false);\r\n        });\r\n    },\r\n    consultarPagamentoPix() {\r\n      if (this.idNotaAvulsaSelecionada) {\r\n        this.processando(true);\r\n        NotaFiscalAvulsaService.consultarPagamentoPix(\r\n          this.idNotaAvulsaSelecionada\r\n        )\r\n          .then(\r\n            (response) => {\r\n              console.log(response);\r\n              this.hideVencBoleto();\r\n              this.showPix = false;\r\n              this.pesquisar();\r\n              this.$root.$emit(\"alert:info\", response.data);\r\n            },\r\n            (error) => {\r\n              console.log(error);\r\n              this.$root.$emit(\"alert:warn\", error.response.data);\r\n            }\r\n          )\r\n          .then(() => {\r\n            this.processando(false);\r\n          });\r\n      }\r\n    },\r\n    imprimirBoletoPix() {\r\n      if (!this.dataVencimento) {\r\n        this.$root.$emit(\"alert:warn\", \"Data de Vencimento Obrigatória!\");\r\n        return;\r\n      }\r\n      this.processando(true);\r\n      NotaFiscalAvulsaService.atualizarVencimento(\r\n        this.idNotaAvulsaSelecionada,\r\n        this.dataVencimento\r\n      )\r\n        .then(\r\n          (response) => {\r\n            console.log(response);\r\n            let idGerado = response.data;\r\n            NotaFiscalAvulsaService.criarPagamentoPixCp(\r\n              this.idNotaAvulsaSelecionada,\r\n              idGerado\r\n            )\r\n              .then(\r\n                (response) => {\r\n                  console.log(response);\r\n                  this.pixGerado = response.data;\r\n                  ReportService.imprimir(\"trb_dam_a5_pix\", [\r\n                    {\r\n                      param: \"RP_ID_CLIENTE\",\r\n                      string: this.currentUser.usuario.idCliente,\r\n                    },\r\n                    {\r\n                      param: \"QR_CODE\",\r\n                      string: this.pixGerado.qrCode,\r\n                    },\r\n                    {\r\n                      param: \"P_CONTROLE_PARCELA\",\r\n                      string:\r\n                        \" and cp.id_situacao in('1','4','6')  and  cp.id in ('\" +\r\n                        idGerado +\r\n                        \"')\",\r\n                    },\r\n                  ]).then(\r\n                    (data) => {\r\n                      console.log(data);\r\n                    },\r\n                    (error) => {\r\n                      this.$root.$emit(\r\n                        \"alert:warn\",\r\n                        \"Erro ao exibir a visualização!\"\r\n                      );\r\n                      console.log(error);\r\n                    }\r\n                  );\r\n                },\r\n                (error) => {\r\n                  this.pixGerado = null;\r\n                  this.$root.$emit(\"alert:warn\", error);\r\n                  console.log(error);\r\n                }\r\n              )\r\n              .then(() => {\r\n                this.showEscolhaPix = false;\r\n                this.processando(false);\r\n              });\r\n          },\r\n          (error) => {\r\n            this.$root.$emit(\"alert:warn\", \"Erro ao atualizar Vencimento!\");\r\n            console.log(error);\r\n          }\r\n        )\r\n        .then(() => {\r\n          this.hideVencBoleto();\r\n          this.processando(false);\r\n        });\r\n    },\r\n    exportCSV() {\r\n      this.$refs.dt.exportCSV();\r\n    },\r\n    exibirEmissaoDam(damPago, situacao, idBolDevedorContumaz) {\r\n      let exibir = (idBolDevedorContumaz === 'S' || this.notaAvulsa);\r\n      return (exibir &&\r\n        damPago != 'S' &&\r\n        damPago != 'L' &&\r\n        situacao != 'Cancelada') ? true : false;\r\n    },\r\n    exibirImpressao(damPago) {\r\n      if (!this.notaAvulsa) {\r\n        return true;\r\n      } else if (this.notaAvulsa && (damPago == 'S' || damPago === 'L' || damPago === 'D') || (this.currentUser.configuracao.idBolNtAvulsaSemPgto === \"E\")) {\r\n        return true;\r\n      }\r\n      return false;\r\n    },\r\n    exibirExportarXml(damPago, idBolDevedorContumaz) {\r\n      if (!this.notaAvulsa && idBolDevedorContumaz === 'S') {\r\n        return (damPago === 'S' || damPago === 'L' ? true : false);\r\n      } else if (!this.notaAvulsa) {\r\n        return true;\r\n      } else if (this.notaAvulsa && (damPago == 'S' || damPago === 'L' || damPago === 'D')) {\r\n        return true;\r\n      }\r\n      return false;\r\n    },\r\n    exibirEnviarEmail(damPago, idBolDevedorContumaz) {\r\n      if (!this.notaAvulsa && idBolDevedorContumaz === 'S') {\r\n        return (damPago === 'S' || damPago === 'L' ? true : false);\r\n      } else if (!this.notaAvulsa) {\r\n        return true;\r\n      } else if (this.notaAvulsa && (damPago == 'S' || damPago === 'L' || damPago === 'D')) {\r\n        return true;\r\n      }\r\n      return false;\r\n    },\r\n    exibirBotaoCartaCorrecao(damPago, idBolDevedorContumaz) {\r\n      if (!this.notaAvulsa && idBolDevedorContumaz === 'S') {\r\n        return (damPago === 'S' || damPago === 'L' ? true : false);\r\n      } else if (!this.notaAvulsa) {\r\n        return true;\r\n      } else if (this.notaAvulsa && (damPago == 'S' || damPago === 'L' || damPago === 'D')) {\r\n        return true;\r\n      }\r\n      return false;\r\n    },\r\n    exibeIntermediario() {\r\n      if (this.currentUser.configuracao.idBolIntermediario && this.currentUser.configuracao.idBolIntermediario == \"S\") {\r\n        this.showFilterIntermediario = true;\r\n      } else {\r\n        this.showFilterIntermediario = false;\r\n      }\r\n    },\r\n    emitirTermo() {\r\n      this.processando(true);\r\n      NotaFiscalService.termoSubstituicao(this.currentUser.usuario.idCliente, this.currentUser.usuario.idUsuario, this.nfseId, this.obsSubstituicao)\r\n        .then((response) => {\r\n          console.log(response);\r\n          ReportService.imprimir(\"TermoCancelamento\", [\r\n            {\r\n              param: \"id\",\r\n              string: this.nfseId,\r\n            },\r\n            {\r\n              param: \"tipo\",\r\n              string: \"S\",\r\n            },\r\n          ])\r\n            .then(\r\n              () => { },\r\n              (error) => {\r\n                this.$root.$emit(\"alert:warn\", \"Erro ao Imprimir!\");\r\n                console.log(error);\r\n              }\r\n            );\r\n\r\n        })\r\n        .then(() => {\r\n          this.processando(false);\r\n        });\r\n    }\r\n  },\r\n\r\n  computed: {},\r\n};\r\n</script>\r\n\r\n<style src=\"../assets/css/consultaNfse.css\"></style>\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ConsultaNfse.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ConsultaNfse.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ConsultaNfse.vue?vue&type=template&id=3e11994a&\"\nimport script from \"./ConsultaNfse.vue?vue&type=script&lang=js&\"\nexport * from \"./ConsultaNfse.vue?vue&type=script&lang=js&\"\nimport style0 from \"../assets/css/consultaNfse.css?vue&type=style&index=0&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  null,\n  null\n  \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EnviarEmailNotaFiscal.vue?vue&type=style&index=0&id=66ebc174&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EnviarEmailNotaFiscal.vue?vue&type=style&index=0&id=66ebc174&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Dialog',{attrs:{\"visible\":_vm.showDeclaracoes,\"modal\":true,\"closable\":false},on:{\"update:visible\":function($event){_vm.showDeclaracoes=$event}}},[_c('h1',{staticClass:\"titulo-header\"},[_vm._v(\"\\n  Consulta de Declarações\\n  \"),_c('Button',{staticClass:\"p-button-rounded p-button-text\",attrs:{\"id\":\"icon-close-modals\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.showDeclaracoes = false}}})],1),_c('br'),_c('div',{staticClass:\"scrolable-dialog\"},[_c('div',{staticClass:\"row\",attrs:{\"id\":\"topo\"}},[_c('DataTable',{staticClass:\"p-datatable-responsive\",attrs:{\"value\":_vm.declaracoesList,\"paginator\":true,\"rows\":10,\"autoLayout\":true}},[_c('Column',{attrs:{\"field\":\"tipoDeclaracao\",\"header\":\"Tipo Declaração\"}}),_c('Column',{attrs:{\"field\":\"numero\",\"header\":\"Número\"}}),_c('Column',{attrs:{\"field\":\"competenciaFormatada\",\"header\":\"Competência\"}}),_c('Column',{attrs:{\"field\":\"status\",\"header\":\"Status\"}})],1)],1)]),_c('hr'),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-danger\",attrs:{\"type\":\"button\",\"label\":\"Fechar\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){return _vm.ocultarDialogDeclaracoes()}}})],1)])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n    <Dialog\r\n      :visible.sync=\"showDeclaracoes\"\r\n      :modal=\"true\"\r\n      :closable=\"false\"\r\n    >\r\n    <h1 class=\"titulo-header\">\r\n      Consulta de Declarações\r\n      <Button id=\"icon-close-modals\" icon=\"pi pi-times\" class=\"p-button-rounded p-button-text\" @click=\"showDeclaracoes = false\"/>\r\n    </h1><br/>\r\n      <div class=\"scrolable-dialog\">\r\n        <div id=\"topo\" class=\"row\">\r\n          <DataTable :value=\"declaracoesList\" :paginator=\"true\" :rows=\"10\" class=\"p-datatable-responsive\"\r\n            :autoLayout=\"true\">\r\n            <Column field=\"tipoDeclaracao\" header=\"Tipo Declaração\"></Column>\r\n            <Column field=\"numero\" header=\"Número\"></Column>\r\n            <Column field=\"competenciaFormatada\" header=\"Competência\"></Column>\r\n            <Column field=\"status\" header=\"Status\"></Column>\r\n          </DataTable>\r\n        </div>\r\n      </div>\r\n\r\n      <hr />\r\n\r\n      <div class=\"container\">\r\n        <div class=\"row\">\r\n          <div>\r\n            <Button\r\n              @click=\"ocultarDialogDeclaracoes()\"\r\n              type=\"button\"\r\n              label=\"Fechar\"\r\n              class=\"p-button-primary mr-2 p-button-danger\"\r\n              icon=\"pi pi-times\"\r\n            />\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </Dialog>\r\n</template>\r\n\r\n<script>\r\nimport NotaFiscalService from \"../../services/nfse/notafiscal.service\";\r\n\r\nexport default {\r\n  name: \"ConsultaDeclaracoesNotaFiscal\",\r\n\r\n  data() {\r\n    return {\r\n      showDeclaracoes: false,\r\n      consultaDeclaracao: null,\r\n      messageList: null,\r\n      declaracoesList: []\r\n    };\r\n  },\r\n\r\n  created() {\r\n    this.$root.$on(\"notaFiscal:consultaDeclaracoes\", (tipo, id) => {\r\n      this.pesquisar(tipo, id);\r\n    });\r\n\r\n    this.$root.$on(\"daps:consultaDeclaracoes\", (tipo, id) => {\r\n      this.pesquisar(tipo, id);\r\n    });\r\n    \r\n  },\r\n\r\n  methods: {\r\n    pesquisar(tipo, id){\r\n      this.declaracoesList = [];\r\n      NotaFiscalService.listDeclaracoes(\r\n        tipo === \"D\" ? \"D\" : \"N\",\r\n        id\r\n      ).then(\r\n        response =>{\r\n          \r\n          if(response.length === 0){\r\n            if(tipo === \"D\"){\r\n              this.messageList = \"O Daps não foi declarado!\";\r\n            }else if(tipo === \"N\"){\r\n              this.messageList = \"A Nota Fiscal não foi declarada!\";\r\n            }\r\n            this.$toast.add({\r\n              severity: \"error\",\r\n              summary: this.messageList\r\n            });\r\n          }else{\r\n            this.declaracoesList = response;\r\n            this.showDeclaracoes = true;\r\n          }\r\n        },\r\n        error => {\r\n          let errorMessage = \"Houve um problema ao listar as Declarações!\";\r\n\t\t\t\t\tif (error.response) {\r\n\t\t\t\t\t\terrorMessage = error.response.data;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.$toast.add({\r\n\t\t\t\t\t\tseverity: \"error\",\r\n\t\t\t\t\t\tsummary: errorMessage\r\n\t\t\t\t\t});\r\n        }\r\n      );\r\n    },\r\n    ocultarDialogDeclaracoes() {\r\n      this.showDeclaracoes = false;\r\n    },\r\n\r\n  },\r\n\r\n  computed: {\r\n    loading() {\r\n      return this.$parent.loading;\r\n    },\r\n  },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.scrolable-dialog {\r\n  padding-right: 25px;\r\n  width: 90vw;\r\n  max-height: 65vh;\r\n  overflow-y: auto;\r\n  overflow-x: hidden;\r\n}\r\ntextarea {\r\n  width: 100%;\r\n  border-radius: 12px;\r\n}\r\n</style>","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ConsultaDeclaracoesNotaFiscal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ConsultaDeclaracoesNotaFiscal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ConsultaDeclaracoesNotaFiscal.vue?vue&type=template&id=1a2681b4&scoped=true&\"\nimport script from \"./ConsultaDeclaracoesNotaFiscal.vue?vue&type=script&lang=js&\"\nexport * from \"./ConsultaDeclaracoesNotaFiscal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ConsultaDeclaracoesNotaFiscal.vue?vue&type=style&index=0&id=1a2681b4&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  \"1a2681b4\",\n  null\n  \n)\n\nexport default component.exports","import axios from 'axios';\r\nimport LoginService from '../acesso/login.service'\r\n\r\nconst API_URL = process.env.VUE_APP_BASE_URL + '/api/nfse/nfAvulsa/';\r\n\r\nclass NotaFiscalAvulsaService {\r\n    constructor() {\r\n        this.idCliente = null;\r\n        this.idContribuinte = null;\r\n        this.idUsuario = null;\r\n        LoginService.currentUser.subscribe(data => {\r\n            this.headers = {\r\n                'Content-Type':'application/json',\r\n                'authorization':'Bearer ' + (data ? data.token:'')\r\n            };\r\n        });\r\n    }\r\n\r\n    gerarDamNotaAvulsa(idNfs, vencimento) {\r\n        this.idCliente = LoginService.currentUserValue.usuario.idCliente;\r\n        this.idUsuario = LoginService.currentUserValue.usuario.idUsuario;\r\n        return axios.post(API_URL + 'lancamento?idCliente=' + this.idCliente\r\n            + '&idUsuario=' + this.idUsuario\r\n            + '&idNfs='+ idNfs\r\n            + '&vencimento=' + vencimento, null, {headers: this.headers});\r\n    }\r\n\r\n    cancelarDamNotaAvulsa(idNfs) {\r\n        this.idCliente = LoginService.currentUserValue.usuario.idCliente;\r\n        this.idUsuario = LoginService.currentUserValue.usuario.idUsuario;\r\n        return axios.post(API_URL + 'cancelarDam?idCliente=' + this.idCliente\r\n            + '&idUsuario=' + this.idUsuario\r\n            + '&idNfs='+ idNfs, null, {headers: this.headers});\r\n    }\r\n\r\n    atualizarVencimento(idNotaAvulsaSelecionada, dataVencimento){\r\n        this.idCliente = LoginService.currentUserValue.usuario.idCliente;\r\n        return axios.post(API_URL+'atualizarVencimento?idNfs='+idNotaAvulsaSelecionada\r\n            + '&idCliente=' + this.idCliente\r\n            + '&dataVencimento='+dataVencimento, null, {headers: this.headers});\r\n    }\r\n\r\n    verificaDamGerado(idNota){\r\n        this.idCliente = LoginService.currentUserValue.usuario.idCliente;\r\n        return axios.post(API_URL+'verificaDamGerado?idNfs='+idNota\r\n            + '&idCliente=' + this.idCliente, null, {headers: this.headers});\r\n    }\r\n\r\n    criarPagamentoPix(idNotaAvulsa){\r\n        return axios.post(API_URL+'criarPagamentoPix?idNotaAvulsa='+idNotaAvulsa, null, {headers: this.headers});\r\n    }\r\n\r\n    \r\n    criarPagamentoPixCp(idNotaAvulsa, idCalculoParcelado){\r\n        return axios.post(API_URL+'criarPagamentoPixCp?idNotaAvulsa='+idNotaAvulsa+'&idCalculoParcelado='+idCalculoParcelado, null, {headers: this.headers});\r\n    }\r\n\r\n    consultarPagamentoPix(idNotaAvulsa){\r\n        return axios.get(API_URL + 'consultarPagamentoPix?idNotaAvulsa='+idNotaAvulsa, {headers: this.headers});\r\n    }\r\n\r\n}\r\n\r\nexport default new NotaFiscalAvulsaService();","import axios from 'axios';\r\nimport LoginService from '../acesso/login.service';\r\n\r\nconst API_URL = process.env.VUE_APP_BASE_URL + '/api/tributario/contribuinteservico/';\r\n\r\nclass ContribuinteServicoService {\r\n    constructor() {\r\n        this.idCliente = null;\r\n        LoginService.currentUser.subscribe(data => {\r\n            this.headers = {\r\n                'Content-Type':'application/json',\r\n                'authorization':'Bearer ' + (data ? data.token:'')\r\n            };\r\n        });\r\n    }\r\n\r\n    findAllServicos(idContribuinte) {\r\n        return axios.get(API_URL + 'all?idContribuinte='+idContribuinte, {headers: this.headers});\r\n    }\r\n\r\n    findAllNfAvulsa(filtro, idContribuinte) {\r\n        this.idCliente = LoginService.currentUserValue.usuario.idCliente;\r\n        return axios.get(API_URL + 'allNfAvulsa?filtro='+filtro+'&idCliente='+this.idCliente+'&idContribuinte='+idContribuinte, {headers: this.headers}).then(response => (this.data = response.data));\r\n    }\r\n\r\n    findAllServicosByContribuinteFiltro(filtro, idContribuinte) {\r\n        return axios.get(API_URL + 'filter?idContribuinte='+idContribuinte+'&filtro='+filtro, {headers: this.headers}).then(response => (this.data = response.data.elements));\r\n    }\r\n    \r\n}\r\n\r\nexport default new ContribuinteServicoService();","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ConsultaDeclaracoesNotaFiscal.vue?vue&type=style&index=0&id=1a2681b4&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ConsultaDeclaracoesNotaFiscal.vue?vue&type=style&index=0&id=1a2681b4&scoped=true&lang=css&\"","import axios from 'axios';\r\nimport LoginService from '../acesso/login.service';\r\n\r\nconst API_URL = process.env.VUE_APP_BASE_URL + '/api/regime/';\r\n\r\nclass RegimeService {\r\n    constructor() {\r\n        LoginService.currentUser.subscribe(data => {\r\n            this.token = data;\r\n            this.headers = {\r\n                'Content-Type': 'application/json',\r\n                'authorization': 'Bearer ' + (data ? data.token : '')\r\n            }\r\n        });\r\n    }\r\n\r\n\r\n    findAllRegimes(idCliente) {\r\n        return axios.get(API_URL + 'findAllRegimes?idCliente=' + idCliente, { headers: this.headers }).then(response => (this.data = response.data));\r\n    }\r\n\r\n}\r\n\r\nexport default new RegimeService();","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_c('Dialog',{staticClass:\"test-box\",attrs:{\"header\":\"Enviar Nota Fiscal por E-mail\",\"visible\":_vm.showEnviarEmail,\"modal\":true,\"closable\":false},on:{\"update:visible\":function($event){_vm.showEnviarEmail=$event}}},[_c('div',{attrs:{\"styyle\":\"margin-let: 15px;margin-right: 15px;\"}},[_c('div',{staticClass:\"row\",attrs:{\"id\":\"topo\"}},[_c('div',{staticClass:\"col-md-12 mb-2\"},[_c('label',{attrs:{\"for\":\"tipoTomador\"}},[_vm._v(\"E-mails (separe com ponto e vírgula ( ; )): *\")]),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"type\":\"text\"},model:{value:(_vm.emails),callback:function ($$v) {_vm.emails=$$v},expression:\"emails\"}})],1)])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12 mb-2\"},[_c('label',{attrs:{\"for\":\"tipoTomador\"}},[_vm._v(\"Comentários:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.comentarios),expression:\"comentarios\"}],attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.comentarios)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.comentarios=$event.target.value}}})])])])]),_c('hr'),_c('div',{attrs:{\"styyle\":\"margin-let: 15px;margin-right: 15px;\"}},[_c('div',{staticClass:\"row\"},[_c('div',[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-success\",attrs:{\"href\":\"#topo\",\"type\":\"button\",\"label\":\"Enviar\",\"icon\":\"pi pi-check\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.enviarEmailNfse()}}})],1),_c('div',[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-danger\",attrs:{\"type\":\"button\",\"label\":\"Fechar\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.showEnviarEmail = false}}})],1)])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n  <span>\r\n    <Dialog\r\n      class=\"test-box\"\r\n      header=\"Enviar Nota Fiscal por E-mail\"\r\n      :visible.sync=\"showEnviarEmail\"\r\n      :modal=\"true\"\r\n      :closable=\"false\"\r\n    >\r\n      <div styyle=\"margin-let: 15px;margin-right: 15px;\">\r\n        <div id=\"topo\" class=\"row\">\r\n          <div class=\"col-md-12 mb-2\">\r\n            <label for=\"tipoTomador\">E-mails (separe com ponto e vírgula ( ; )): *</label>\r\n            <span class=\"p-fluid\">\r\n              <InputText v-model=\"emails\" type=\"text\" />\r\n            </span>\r\n          </div>\r\n        </div>\r\n        <div class=\"row\">\r\n          <div class=\"col-md-12 mb-2\">\r\n            <label for=\"tipoTomador\">Comentários:</label>\r\n            <span class=\"p-fluid\">\r\n              <textarea v-model=\"comentarios\" type=\"text\" />\r\n            </span>\r\n          </div>\r\n        </div>\r\n      </div>\r\n\r\n      <hr />\r\n\r\n      <div styyle=\"margin-let: 15px;margin-right: 15px;\">\r\n        <div class=\"row\">\r\n          <div>\r\n            <Button\r\n              @click=\"enviarEmailNfse()\"\r\n              href=\"#topo\"\r\n              type=\"button\"\r\n              label=\"Enviar\"\r\n              class=\"p-button-primary mr-2 p-button-success\"\r\n              icon=\"pi pi-check\"\r\n              :disabled=\"loading\"\r\n            />\r\n          </div>\r\n\r\n          <div>\r\n            <Button\r\n              @click=\"showEnviarEmail = false\"\r\n              type=\"button\"\r\n              label=\"Fechar\"\r\n              class=\"p-button-primary mr-2 p-button-danger\"\r\n              icon=\"pi pi-times\"\r\n            />\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </Dialog>\r\n  </span>\r\n</template>\r\n\r\n<script>\r\nimport NotaFiscalService from \"@/services/nfse/notafiscal.service\";\r\n\r\nexport default {\r\n  name: \"EnviarEmailNotaFiscal\",\r\n\r\n  created() {\r\n    this.$root.$on(\"notaFiscal:enviarEmail\", id => {\r\n      this.idNotaFiscal = id;\r\n      this.exibirDialogCancelarNota();\r\n    });\r\n  },\r\n\r\n  data() {\r\n    return {\r\n      showEnviarEmail: false,\r\n      idNotaFiscal: null,\r\n      emails: null,\r\n      comentarios: null\r\n    };\r\n  },\r\n\r\n  methods: {\r\n    exibirDialogCancelarNota() {\r\n      this.showEnviarEmail = true;\r\n    },\r\n\r\n    enviarEmailNfse() {\r\n      if (this.emails) {\r\n        this.$parent.processando(true);\r\n        this.$parent.erros = [];\r\n\r\n        if (this.emails)\r\n          NotaFiscalService.enviarPorEmail(this.idNotaFiscal, this.emails, this.comentarios)\r\n            .then(\r\n              data => {\r\n                console.log(data);\r\n                this.$root.$emit(\"alert:success\", \"O E-mail foi enviado!\");\r\n              },\r\n              error => {\r\n                this.$parent.erros.push(...error.response.data);\r\n                console.log(error.response);\r\n              }\r\n            )\r\n            .then(() => {\r\n              this.showEnviarEmail = false;\r\n              this.$parent.processando(false);\r\n            });\r\n      } else {\r\n        this.$root.$emit(\r\n          \"alert:warn\",\r\n          \"É necessário informar pelo menos um e-mail!\"\r\n        );\r\n      }\r\n    }\r\n  },\r\n\r\n  computed: {\r\n    loading() {\r\n      return this.$parent.loading;\r\n    }\r\n  }\r\n};\r\n</script>\r\n\r\n<style scoped>\r\ntextarea {\r\n  width: 100%;\r\n  border-radius: 12px;\r\n  height: 100px;\r\n  padding-left: 8px;\r\n}\r\n</style>","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EnviarEmailNotaFiscal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EnviarEmailNotaFiscal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EnviarEmailNotaFiscal.vue?vue&type=template&id=66ebc174&scoped=true&\"\nimport script from \"./EnviarEmailNotaFiscal.vue?vue&type=script&lang=js&\"\nexport * from \"./EnviarEmailNotaFiscal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./EnviarEmailNotaFiscal.vue?vue&type=style&index=0&id=66ebc174&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  \"66ebc174\",\n  null\n  \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExportarNfseMaiorPeriodo.vue?vue&type=style&index=0&id=0d6d4992&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExportarNfseMaiorPeriodo.vue?vue&type=style&index=0&id=0d6d4992&scoped=true&lang=css&\""],"sourceRoot":""}