{"version":3,"sources":["webpack:///./src/components/emissaoNfse/RemoverTomador.vue?6a4f","webpack:///src/components/emissaoNfse/RemoverTomador.vue","webpack:///./src/components/emissaoNfse/RemoverTomador.vue?751f","webpack:///./src/components/emissaoNfse/RemoverTomador.vue","webpack:///./src/models/nfse/NotaFiscal.js","webpack:///./src/components/emissaoNfse/DetalhesContribuinte.vue?7714","webpack:///src/components/emissaoNfse/DetalhesContribuinte.vue","webpack:///./src/components/emissaoNfse/DetalhesContribuinte.vue?64f9","webpack:///./src/components/emissaoNfse/DetalhesContribuinte.vue","webpack:///./src/components/emissaoNfse/EnviarEmailNotaFiscal.vue?142f","webpack:///./src/views/EmissaoNfse.vue?c54d","webpack:///./src/views/EmissaoNfse.vue?5185","webpack:///./src/services/tributario/contribuinte.atividade.service.js","webpack:///./src/components/emissaoNfse/RemoverIntermediario.vue?19b4","webpack:///src/components/emissaoNfse/RemoverIntermediario.vue","webpack:///./src/components/emissaoNfse/RemoverIntermediario.vue?e85e","webpack:///./src/components/emissaoNfse/RemoverIntermediario.vue","webpack:///./src/components/emissaoNfse/CopiarNotaFiscal.vue?db30","webpack:///src/components/emissaoNfse/CopiarNotaFiscal.vue","webpack:///./src/components/emissaoNfse/CopiarNotaFiscal.vue?2cb9","webpack:///./src/components/emissaoNfse/CopiarNotaFiscal.vue","webpack:///src/views/EmissaoNfse.vue","webpack:///./src/views/EmissaoNfse.vue?ae18","webpack:///./src/views/EmissaoNfse.vue?2cdf","webpack:///./src/services/obras/obras.service.js","webpack:///./src/conf/config.percent.js","webpack:///./src/services/nfse/notafiscalavulsa.service.js","webpack:///./src/services/tributario/contribuinte.servico.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"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","headerDialog","showRemoverTomador","on","$event","_v","_s","tipoEmissao","pessoa","detail","loading","removerTomador","staticRenderFns","name","props","String","created","$root","$on","data","methods","exibirDialogRemoverTomador","id","$parent","processando","erros","computed","component","NotaFiscal","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","headerDetalhamento","tipo","nomeFantasia","_e","detailEndereco","documento","rg","inscMunic","inscEstadual","email","site","telefone","celular","selectedPessoaIntermediario","selectedPessoa","exibirDetalhesTomador","isEmissaoLote","dadosNotaSubstituida","tomador","model","value","notaFiscal","callback","$$v","$set","expression","tiposTomador","desabilitarEdicaoCampos","travarEdicaoTomador","travarCamposEmissaoLote","alterarTipoTomador","selectedTipoTomador","class","key","validation","hasError","filteredPessoas","desabilitarEdicaoNomeTomador","searchPessoa","atualizarDadosPessoaSelecionada","scopedSlots","_u","fn","slotProps","staticStyle","item","desabilitarBotaoNovoTomador","novoTomador","desabilitarBotaoEdicaoTomador","editarTomador","desabilitarBotaoRemoverTomador","tiposIntermediario","alterarTipoIntermediario","selectedTipoIntermediario","desabilitarBotaoNovoIntermediario","novoIntermediario","desabilitarBotaoEdicaoIntermediario","editarIntermediario","desabilitarBotaoRemoverIntermediario","removerIntermediario","clearServico","checkServicoAberto","dataMinimaEmissao","dataMaximaEmissao","emissaoSelect","filteredAtividade","searchAtividade","atualizarServico","selectedAtividade","emissaoPorAtividade","filteredServicos","searchServico","atualizarValoresServico","selectedServico","filteredObras","searchObra","atualizarDadosObra","selectedObra","locaisPrestacao","desabilitarEdicaoLocalPrestacao","atualizarDadosTela","selectedLocalPrestacao","tiposRecolhimento","desabilitarEdicaoNotaAvulsa","selectedTipoRecolhimento","filteredLocalidades","desabilitarEdicaoMunicipio","searchLocalidade","municPrestacaoSelecionado","selectedMunicPrestacao","tiposTributacao","selectedTipoTributacao","municipioIncidencia","_b","nativeOn","validarDescontoAutomatico","money","desabilitarEdicaoAliquota","percent","firstError","desabilitarEdicaoDeducao","desabilitarEdicaoDescIncond","directives","rawName","domProps","target","composing","desabilitarDadosObra","confImpFederais","aplicarImpFederais","aplicarImpFederaisPadrao","limparImpFederaisPadrao","totalServico","totalIss","exibirBotao","gravar","inativo","adicionarNotaLote","quantidadeNotasLote","exibirLoteNotas","salvar","novaNotaFiscal","disableCopiaNota","copiarNotaFiscal","cancelar","cancelarNotaFiscal","imprimirNotaFiscal","enviarEmailNotaFiscal","pagaIssNota","situacao","notaAvulsaAcumulada","carregarVencimentoBoleto","reenviarEmail","style","width","displayDevedorContumaz","overflow","avisoDevedorContumaz","displayVencBoleto","damGerado","gerarDamNotaAvulsa","imprimirBoleto","habilitarPix","criarPagamentoPix","imprimirBoletoPix","consultarPagamentoPix","cancelarDamNotaAvulsa","hideVencBoleto","proxy","keyVencBoleto","dataVencimento","showPix","optionsPix","pixGerado","valorFormatado","qrCode","copiarPix","showLote","exibeErroTabelaLote","loteNotas","classeErroTabelaLote","removerNotaLote","hashLote","salvarLote","ocultarLoteNotas","API_URL","ContribuinteAtividadeService","LoginService","currentUser","subscribe","headers","token","idContribuinte","axios","get","filtro","then","response","elements","showRemoverIntermediario","console","log","exibirDialogRemoverIntermediario","showCopiarNota","numeroNota","exibirDialogCopiarNota","$emit","components","TomadorCadastro","RemoverTomador","RemoverIntermediario","CopiarNotaFiscal","CancelarNotaFiscal","DetalhesContribuinte","EnviarEmailNotaFiscal","QRCanvas","reenviar","dados","dadosTela","selectedMunicOrigem","valorTotalServico","valorTotalIss","exibirDadosObra","cellSize","opcaoServicoAberto","observacaoClienteNfse","habilitarSelecaoObra","showImpFederaisAliquota","exibirCalcImpFederais","configTomador","servicoTributadoFora","tipoCadastroInvalido","codigoIbgePrincipal","watch","$route","window","location","reload","mounted","document","getElementById","focus","query","configuracao","idBolUtilizarPix","limparDadosNotaFiscal","codigoIbgeCliente","JSON","parse","stringify","idBolTomadorNaoInformado","contribuinteConfig","push","idBolSelTomadorDiferente","idBolDadosObra","params","dadosSubstituicao","copiaNota","logTeste","to","from","navigator","clipboard","writeText","dateSelect","setHours","setTimeout","searchLocalidadePorId","searchLocalidadeCopiaNota","onSubmit","$validate","success","setarDadosNotaFiscal","idSeriePadrao","detailServico","idServico","idObra","selecaoServicoTributadoFora","servico","baseCalculo","visualizar","fatoGerador","idTomador","visualizarNotaFiscal","limparLote","scrollIntoView","behavior","dataGeracao","moment","format","validacao","cancDamPetrolina","emiteNotaAvulsa","usuario","siglaIbgeCliente","Date","observacao","show","verificaDamGerado","gerarDamNotaAvulsaAcao","setMonth","dataAtual","aliquotaPis","aliquotaIr","aliquotaInss","aliquotaCsll","aliquotaCofins","roundToTwoDecimalPlaces","Math","round","number","filter","verificarLoteVazio","length","some","set","val","resultado","exibirDadosNotaSubstituida","exibirInfoDadosObra","novo","copiar","imprimir","botoes","exibeIntermediario","idBolIntermediario","exibirSelecaoIntermediario","nfDiasEmissaoRetroativa","dias","setDate","getDate","validators","ObrasService","obras","post","delete","decimal","thousands","prefix","suffix","precision","masked","NotaFiscalAvulsaService","idNfs","vencimento","currentUserValue","idNotaAvulsaSelecionada","idNota","idNotaAvulsa","idCalculoParcelado","ContribuinteServicoService","showEn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IjBnZ,QAAS,CACPsZ,yBADJ,WAEMhb,KAAK2a,iBAAkB,GAGzBG,gBALJ,WAKA,WACU9a,KAAK4a,QACP5a,KAAK6B,QAAQC,aAAY,GACzB9B,KAAK6B,QAAQE,MAAQ,GAEjB/B,KAAK4a,QACjB,sEACA,MACA,YACU,QAAV,OACU,EAAV,wDAEA,YAAU,IAAV,GACA,iEACU,QAAV,mBAGA,iBACU,EAAV,mBACU,EAAV,4BAGQ5a,KAAKuB,MAAMmQ,MACnB,aACA,iDAME1P,SAAU,CACRhB,QADJ,WAEM,OAAOhB,KAAK6B,QAAQb,WCtHoV,I,wBCQ1WiB,EAAY,eACd,EACAnC,EACAoB,GACA,EACA,KACA,WACA,MAIa,OAAAe,E","file":"js/emissao.nfse.2fabf780.js","sourcesContent":["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\":_vm.headerDialog,\"visible\":_vm.showRemoverTomador,\"modal\":true,\"closable\":false},on:{\"update:visible\":function($event){_vm.showRemoverTomador=$event}}},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12 mb-2 mensagem-cancelamento\"},[_c('p',[_vm._v(\"\\n \"+_vm._s(\"O \" +\n (this.tipoEmissao == \"T\" ? \"prestador\" : \"tomador\") +\n \" \" +\n (this.pessoa ? this.pessoa.detail : \"\") +\n \" será removido.\")+\"\\n \")]),_c('p',[_vm._v(\"\\n \"+_vm._s(\"Deseja continuar?\")+\"\\n \")])])])]),_c('hr'),_c('div',{staticClass:\"botoes-avancar-voltar\"},[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-success\",attrs:{\"href\":\"#topo\",\"type\":\"button\",\"label\":\"Remover\",\"icon\":\"pi pi-check\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.removerTomador()}}}),_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.showRemoverTomador = false}}})],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <span>\r\n <Dialog\r\n class=\"test-box\"\r\n :header=\"headerDialog\"\r\n :visible.sync=\"showRemoverTomador\"\r\n :modal=\"true\"\r\n :closable=\"false\"\r\n >\r\n <div class=\"container\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12 mb-2 mensagem-cancelamento\">\r\n <p>\r\n {{\r\n \"O \" +\r\n (this.tipoEmissao == \"T\" ? \"prestador\" : \"tomador\") +\r\n \" \" +\r\n (this.pessoa ? this.pessoa.detail : \"\") +\r\n \" será removido.\"\r\n }}\r\n </p>\r\n <p>\r\n {{ \"Deseja continuar?\" }}\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <hr />\r\n\r\n <div class=\"botoes-avancar-voltar\">\r\n <Button\r\n @click=\"removerTomador()\"\r\n href=\"#topo\"\r\n type=\"button\"\r\n label=\"Remover\"\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\r\n <Button\r\n @click=\"showRemoverTomador = 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 </Dialog>\r\n </span>\r\n</template>\r\n\r\n<script>\r\nimport NfsPessoaService from \"@/services/nfse/pessoa.service\";\r\n\r\nexport default {\r\n name: \"RemoverTomador\",\r\n\r\n props: {\r\n tipoEmissao: String\r\n },\r\n\r\n created() {\r\n this.$root.$on(\"notaFiscal:removerTomador\", () => {\r\n this.pessoa = this.$parent.selectedPessoa;\r\n\r\n this.exibirDialogRemoverTomador();\r\n });\r\n },\r\n\r\n data() {\r\n return {\r\n showRemoverTomador: false,\r\n pessoa: null\r\n };\r\n },\r\n\r\n methods: {\r\n exibirDialogRemoverTomador() {\r\n this.showRemoverTomador = true;\r\n },\r\n\r\n removerTomador() {\r\n if (this.pessoa && this.pessoa.id) {\r\n this.$parent.processando(true);\r\n this.$parent.erros = [];\r\n\r\n NfsPessoaService.remove(this.pessoa.id)\r\n .then(\r\n data => {\r\n console.log(data);\r\n this.$root.$emit(\r\n \"alert:success\",\r\n \"O \" +\r\n (this.tipoEmissao == \"T\" ? \"Prestador\" : \"Tomador\") +\r\n \" foi removido!\"\r\n );\r\n },\r\n error => {\r\n console.log(error);\r\n this.$root.$emit(\r\n \"alert:success\",\r\n \"Houve um problema ao remover o \" +\r\n (this.tipoEmissao == \"T\" ? \"Prestador\" : \"Tomador\") +\r\n \"!\"\r\n );\r\n }\r\n )\r\n .then(() => {\r\n if (this.$parent.$options.name == \"EmissaoNfse\") {\r\n this.$parent.notaFiscal.idTomadorDados = null;\r\n } else {\r\n this.$parent.daps.idTomadorDados = null;\r\n this.$parent.daps.idPrestadorDados = null;\r\n }\r\n\r\n this.$parent.selectedPessoa = null;\r\n this.showRemoverTomador = false;\r\n this.$parent.processando(false);\r\n });\r\n }\r\n }\r\n },\r\n\r\n computed: {\r\n headerDialog() {\r\n return \"Remover \" + (this.tipoEmissao == \"T\" ? \"Prestador\" : \"Tomador\");\r\n },\r\n\r\n loading() {\r\n return this.$parent.loading;\r\n }\r\n }\r\n};\r\n</script>\r\n\r\n<style scoped></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!./RemoverTomador.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!./RemoverTomador.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./RemoverTomador.vue?vue&type=template&id=1fd64315&scoped=true&\"\nimport script from \"./RemoverTomador.vue?vue&type=script&lang=js&\"\nexport * from \"./RemoverTomador.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 \"1fd64315\",\n null\n \n)\n\nexport default component.exports","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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.exibirDetalhesTomador)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-10 mb-2\"},[_c('Panel',{attrs:{\"toggleable\":true,\"header\":_vm.headerDetalhamento}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12\"},[(_vm.pessoa.tipo == 'J')?[_c('b',[_vm._v(\"Nome Fantasia:\")]),_vm._v(\"\\n \"+_vm._s(_vm.pessoa.nomeFantasia)+\"\\n \")]:_vm._e()],2),_c('div',{staticClass:\"col-md-12\"},[_c('b',[_vm._v(\"Endereço:\")]),_vm._v(\"\\n \"+_vm._s(_vm.pessoa.detailEndereco)+\"\\n \")])]),_c('hr'),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-4 mb-1\"},[_c('b',[_vm._v(_vm._s(_vm.pessoa.tipo == 'X' ? 'NIF:' : _vm.pessoa.tipo == 'F' ? 'CPF:' : 'CNPJ:'))]),_vm._v(\"\\n \"+_vm._s(_vm.pessoa.documento)+\"\\n \"),_c('br'),(_vm.pessoa.tipo == 'F')?[_c('b',[_vm._v(\"RG:\")]),_vm._v(\"\\n \"+_vm._s(_vm.pessoa.rg)+\"\\n \"),_c('br')]:_vm._e(),(_vm.pessoa.tipo != 'X')?[_c('b',[_vm._v(\"Inscrição Municipal:\")]),_vm._v(\"\\n \"+_vm._s(_vm.pessoa.inscMunic)+\"\\n \"),_c('br'),_c('b',[_vm._v(\"Inscrição Estadual:\")]),_vm._v(\"\\n \"+_vm._s(_vm.pessoa.inscEstadual)+\"\\n \")]:_vm._e()],2),_c('div',{staticClass:\"col-lg-4 mb-1\"},[_c('b',[_vm._v(\"E-mail:\")]),_vm._v(\"\\n \"+_vm._s(_vm.pessoa.email)+\"\\n \"),_c('br'),_c('b',[_vm._v(\"Site:\")]),_vm._v(\"\\n \"+_vm._s(_vm.pessoa.site)+\"\\n \")]),_c('div',{staticClass:\"col-lg-4 col-md-auto mb-1\"},[_c('b',[_vm._v(\"Telefone:\")]),_vm._v(\"\\n \"+_vm._s(_vm.pessoa.telefone)+\"\\n \"),_c('br'),_c('b',[_vm._v(\"Celular:\")]),_vm._v(\"\\n \"+_vm._s(_vm.pessoa.celular)+\"\\n \")])])])],1)]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"row\" v-if=\"exibirDetalhesTomador\">\r\n <div class=\"col-md-10 mb-2\">\r\n <Panel :toggleable=\"true\" :header=\"headerDetalhamento\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <template v-if=\"pessoa.tipo == 'J'\">\r\n <b>Nome Fantasia:</b>\r\n {{pessoa.nomeFantasia}}\r\n </template>\r\n </div>\r\n <div class=\"col-md-12\">\r\n <b>Endereço:</b>\r\n {{pessoa.detailEndereco}}\r\n </div>\r\n </div>\r\n\r\n <hr />\r\n\r\n <div class=\"row\">\r\n <div class=\"col-lg-4 mb-1\">\r\n <b>{{ pessoa.tipo == 'X' ? 'NIF:' : pessoa.tipo == 'F' ? 'CPF:' : 'CNPJ:' }}</b>\r\n {{pessoa.documento}}\r\n <br />\r\n <template v-if=\"pessoa.tipo == 'F'\">\r\n <b>RG:</b>\r\n {{pessoa.rg}}\r\n <br />\r\n </template>\r\n <template v-if=\"pessoa.tipo != 'X'\">\r\n <b>Inscrição Municipal:</b>\r\n {{pessoa.inscMunic}}\r\n <br />\r\n <b>Inscrição Estadual:</b>\r\n {{pessoa.inscEstadual}}\r\n </template>\r\n </div>\r\n\r\n <div class=\"col-lg-4 mb-1\">\r\n <b>E-mail:</b>\r\n {{pessoa.email}}\r\n <br />\r\n <b>Site:</b>\r\n {{pessoa.site}}\r\n </div>\r\n\r\n <div class=\"col-lg-4 col-md-auto mb-1\">\r\n <b>Telefone:</b>\r\n {{pessoa.telefone}}\r\n <br />\r\n <b>Celular:</b>\r\n {{pessoa.celular}}\r\n </div>\r\n </div>\r\n </Panel>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: \"DetalhesContribuinte\",\r\n\r\n props: {\r\n tipoEmissao: String\r\n },\r\n\r\n data() {\r\n return {};\r\n },\r\n\r\n computed: {\r\n pessoa() {\r\n if (this.tipoEmissao === \"I\") {\r\n return this.$parent.selectedPessoaIntermediario;\r\n } else {\r\n return this.$parent.selectedPessoa;\r\n }\r\n },\r\n\r\n exibirDetalhesTomador() {\r\n return this.pessoa && this.pessoa.id ? true : false;\r\n },\r\n\r\n headerDetalhamento() {\r\n return (\r\n (\"Dados do \") +\r\n (this.tipoEmissao == \"I\" ? \"Intermediário\" : this.tipoEmissao == \"T\" ? \"Prestador\" : \"Tomador\")\r\n );\r\n }\r\n }\r\n};\r\n</script>\r\n\r\n<style>\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!./DetalhesContribuinte.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!./DetalhesContribuinte.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DetalhesContribuinte.vue?vue&type=template&id=a00e8e2e&\"\nimport script from \"./DetalhesContribuinte.vue?vue&type=script&lang=js&\"\nexport * from \"./DetalhesContribuinte.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import 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&\"","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EmissaoNfse.vue?vue&type=style&index=0&id=e736c9ae&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EmissaoNfse.vue?vue&type=style&index=0&id=e736c9ae&lang=scss&scoped=true&\"","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\"},[_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(_vm._s(!this.notaAvulsa ? (!this.isEmissaoLote ? 'Emissão de Notas Fiscais de Serviço Eletrônicas' : 'Emissão em Lote de Notas Fiscais de Serviço Eletrônicas') : 'Emissão de Notas Fiscais Avulsas Eletrônicas.'))]),_c('br'),_c('span',{staticClass:\"navigation\"},[_vm._v(_vm._s(!this.notaAvulsa ? 'Nota Fiscal de Serviço' : 'Nota Fiscal Avulsa')+\" >\\n \"+_vm._s(!this.isEmissaoLote ? 'Emissão' : 'Emissão em Lote')+\" \")])])])])]),_c('div',{staticClass:\"card-body\"},[_c('error-list',{attrs:{\"erros\":_vm.erros}}),_c('cancelar-nota-fiscal'),_c('copiar-nota-fiscal'),_c('enviar-email-nota-fiscal'),_c('tomador-cadastro',{attrs:{\"tipoCadastro\":\"T\"}}),_c('remover-tomador',{attrs:{\"tipoCadastro\":\"T\"}}),_c('remover-intermediario'),(this.tipoCadastroInvalido)?_c('Message',{attrs:{\"severity\":\"warn\"}},[_vm._v(\"Inscrição do contribuinte não pertence ao cadastro municipal, não será possÃvel emitir notas de serviço, contate o municÃpio!\")]):_vm._e(),(_vm.exibirDadosNotaSubstituida)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-10 mb-2\"},[_c('Panel',{attrs:{\"toggleable\":true,\"header\":\"Dados da NFS-e SubstituÃda\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-3\"},[_c('b',[_vm._v(\"Número:\")]),_vm._v(\"\\n \"+_vm._s(_vm.dadosNotaSubstituida.numero)+\"\\n \")]),_c('div',{staticClass:\"col-3\"},[_c('b',[_vm._v(\"Data:\")]),_vm._v(\"\\n \"+_vm._s(_vm.dadosNotaSubstituida.data)+\"\\n \")]),_c('div',{staticClass:\"col-6\"},[_c('b',[_vm._v(\"Tomador:\")]),_vm._v(\"\\n \"+_vm._s(_vm.dadosNotaSubstituida.tomador)+\"\\n \")])])])],1)]):_vm._e(),_c('div',{staticClass:\"row d-flex align-items-end\"},[(_vm.desabilitarEdicaoCampos)?_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"tipoTomador\"}},[_vm._v(\"Número:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"disabled\":\"\"},model:{value:(_vm.notaFiscal.numero),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"numero\", $$v)},expression:\"notaFiscal.numero\"}})],1)]):_vm._e(),_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"tipoTomador\"}},[_vm._v(\"Tipo Tomador:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('Dropdown',{attrs:{\"id\":\"tipoTomador\",\"options\":_vm.tiposTomador,\"optionLabel\":\"name\",\"placeholder\":\"Selecione um Tipo de Tomador\",\"optionDisabled\":_vm.desabilitarEdicaoCampos,\"disabled\":_vm.desabilitarEdicaoCampos || _vm.travarEdicaoTomador || _vm.travarCamposEmissaoLote},on:{\"change\":function($event){return _vm.alterarTipoTomador()}},model:{value:(_vm.selectedTipoTomador),callback:function ($$v) {_vm.selectedTipoTomador=$$v},expression:\"selectedTipoTomador\"}})],1)]),_c('div',{class:_vm.desabilitarEdicaoCampos ? 'col-md-5 mb-2' : 'col-md-7 mb-2'},[_c('label',{attrs:{\"for\":\"tomador\"}},[_vm._v(_vm._s(_vm.selectedTipoTomador.name +\n (_vm.selectedTipoTomador.key != \"N\" ? \": *\" : \":\")))]),_c('span',{staticClass:\"p-fluid\"},[_c('AutoComplete',{class:{\n 'p-error': _vm.validation.hasError('selectedPessoa'),\n},attrs:{\"id\":\"tomador\",\"dropdown\":true,\"suggestions\":_vm.filteredPessoas,\"field\":\"detail\",\"placeholder\":_vm.selectedTipoTomador.key == 'N'\n ? 'Não Identificado'\n : 'Pesquisar',\"disabled\":_vm.desabilitarEdicaoNomeTomador || _vm.travarEdicaoTomador || _vm.travarCamposEmissaoLote},on:{\"complete\":function($event){return _vm.searchPessoa($event)},\"item-select\":function($event){return _vm.atualizarDadosPessoaSelecionada()}},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.selectedPessoa),callback:function ($$v) {_vm.selectedPessoa=$$v},expression:\"selectedPessoa\"}})],1)]),_c('div',{staticClass:\"col-md-1 mb-2\"},[_c('span',{staticClass:\"p-fluid ml-2\"},[_c('div',{staticClass:\"p-inputgroup\"},[_c('Button',{attrs:{\"id\":\"btnNovoTomador\",\"type\":\"button\",\"icon\":\"pi pi-plus\",\"title\":\"Cadastrar Tomador\",\"disabled\":_vm.desabilitarBotaoNovoTomador || _vm.travarEdicaoTomador || _vm.travarCamposEmissaoLote},on:{\"click\":function($event){return _vm.novoTomador()}}}),_c('Button',{attrs:{\"id\":\"btnEditarTomador\",\"type\":\"button\",\"icon\":\"pi pi-pencil\",\"title\":\"Editar Tomador\",\"disabled\":_vm.desabilitarBotaoEdicaoTomador || _vm.travarEdicaoTomador || _vm.travarCamposEmissaoLote},on:{\"click\":function($event){return _vm.editarTomador()}}}),_c('Button',{attrs:{\"id\":\"btnRemoverTomador\",\"type\":\"button\",\"icon\":\"pi pi-trash\",\"title\":\"Remover Tomador\",\"disabled\":_vm.desabilitarBotaoRemoverTomador || _vm.travarEdicaoTomador || _vm.travarCamposEmissaoLote},on:{\"click\":function($event){return _vm.removerTomador()}}})],1)])])]),(_vm.exibeIntermediario)?_c('div',{staticClass:\"row d-flex align-items-end\"},[_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"exibirIntermediario\"}},[_vm._v(\"Informar Intermediário:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('Dropdown',{attrs:{\"id\":\"tipoIntermediario\",\"options\":_vm.tiposIntermediario,\"optionLabel\":\"name\",\"optionDisabled\":_vm.desabilitarEdicaoCampos,\"disabled\":_vm.desabilitarEdicaoCampos || _vm.travarEdicaoTomador || _vm.travarCamposEmissaoLote},on:{\"change\":function($event){return _vm.alterarTipoIntermediario()}},model:{value:(_vm.selectedTipoIntermediario),callback:function ($$v) {_vm.selectedTipoIntermediario=$$v},expression:\"selectedTipoIntermediario\"}})],1)]),(_vm.exibirSelecaoIntermediario)?_c('div',{staticClass:\"col-md-7 mb-2\"},[_c('label',{attrs:{\"for\":\"intermediario\"}},[_vm._v(\"Intermediário:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('AutoComplete',{class:{\n 'p-error': _vm.validation.hasError('selectedPessoaIntermediario'),\n},attrs:{\"id\":\"intermediario\",\"dropdown\":true,\"suggestions\":_vm.filteredPessoas,\"field\":\"detail\",\"placeholder\":\"Pesquisar\",\"disabled\":_vm.desabilitarEdicaoNomeTomador || _vm.travarEdicaoTomador || _vm.travarCamposEmissaoLote},on:{\"complete\":function($event){return _vm.searchPessoa($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 \")])]}}],null,false,3473452278),model:{value:(_vm.selectedPessoaIntermediario),callback:function ($$v) {_vm.selectedPessoaIntermediario=$$v},expression:\"selectedPessoaIntermediario\"}})],1)]):_vm._e(),(_vm.exibirSelecaoIntermediario)?_c('div',{staticClass:\"col-md-1 mb-2\"},[_c('span',{staticClass:\"p-fluid ml-2\"},[_c('div',{staticClass:\"p-inputgroup\"},[_c('Button',{attrs:{\"id\":\"btnNovoIntermediario\",\"type\":\"button\",\"icon\":\"pi pi-plus\",\"title\":\"Cadastrar Intermediário\",\"disabled\":_vm.desabilitarBotaoNovoIntermediario || _vm.travarEdicaoTomador || _vm.travarCamposEmissaoLote},on:{\"click\":function($event){return _vm.novoIntermediario()}}}),_c('Button',{attrs:{\"id\":\"btnEditarIntermediario\",\"type\":\"button\",\"icon\":\"pi pi-pencil\",\"title\":\"Editar Intermediário\",\"disabled\":_vm.desabilitarBotaoEdicaoIntermediario || _vm.travarEdicaoTomador || _vm.travarCamposEmissaoLote},on:{\"click\":function($event){return _vm.editarIntermediario()}}}),_c('Button',{attrs:{\"id\":\"btnRemoverIntermediario\",\"type\":\"button\",\"icon\":\"pi pi-trash\",\"title\":\"Remover Intermediario\",\"disabled\":_vm.desabilitarBotaoRemoverIntermediario || _vm.travarEdicaoTomador || _vm.travarCamposEmissaoLote},on:{\"click\":function($event){return _vm.removerIntermediario()}}})],1)])]):_vm._e()]):_vm._e(),_c('detalhes-contribuinte',{attrs:{\"tipoEmissao\":\"P\"}}),_c('detalhes-contribuinte',{attrs:{\"tipoEmissao\":\"I\"}}),(_vm.opcaoServicoAberto)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-3 mb-2 d-flex align-items-center\"},[_c('label',{attrs:{\"for\":\"binary\"}},[_vm._v(\"Listar todos Serviços Municipais\")]),_c('span',{staticClass:\"p-fluid\"},[_c('Checkbox',{staticStyle:{\"margin-left\":\"5px\"},attrs:{\"id\":\"binary\",\"binary\":true},on:{\"change\":function($event){return _vm.clearServico()}},model:{value:(_vm.checkServicoAberto),callback:function ($$v) {_vm.checkServicoAberto=$$v},expression:\"checkServicoAberto\"}})],1)])]):_vm._e(),_c('div',{staticClass:\"row d-flex\"},[_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"dataEmissao\"}},[_vm._v(\"Data Fato Gerador: *\")]),_c('span',{staticClass:\"p-fluid\"},[_c('Calendar',{attrs:{\"id\":\"dataEmissao\",\"name\":\"dataEmissao\",\"minDate\":_vm.dataMinimaEmissao,\"maxDate\":_vm.dataMaximaEmissao,\"showIcon\":true,\"dateFormat\":\"dd/mm/yy\",\"disabled\":_vm.desabilitarEdicaoCampos,\"manualInput\":false},on:{\"date-select\":function($event){return _vm.emissaoSelect()}},model:{value:(_vm.notaFiscal.dataFatoGerador),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"dataFatoGerador\", $$v)},expression:\"notaFiscal.dataFatoGerador\"}})],1)]),(_vm.emissaoPorAtividade)?_c('div',{staticClass:\"col-md-8 mb-2\"},[_c('label',{attrs:{\"for\":\"atividade\"}},[_vm._v(\"Atividade: *\")]),_c('span',{staticClass:\"p-fluid\"},[_c('AutoComplete',{attrs:{\"id\":\"atividade\",\"dropdown\":true,\"suggestions\":_vm.filteredAtividade,\"field\":\"detail\",\"placeholder\":\"Pesquisar\",\"disabled\":_vm.desabilitarEdicaoCampos},on:{\"complete\":function($event){return _vm.searchAtividade($event)},\"item-select\":function($event){return _vm.atualizarServico()}},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 \")])]}}],null,false,3473452278),model:{value:(_vm.selectedAtividade),callback:function ($$v) {_vm.selectedAtividade=$$v},expression:\"selectedAtividade\"}})],1)]):_vm._e(),_c('div',{class:_vm.emissaoPorAtividade ? 'col-md-10 mb-2' : 'col-md-8 mb-2'},[_c('label',{attrs:{\"for\":\"servico\"}},[_vm._v(\"Serviço: *\")]),_c('span',{staticClass:\"p-fluid\"},[_c('AutoComplete',{attrs:{\"id\":\"servico\",\"dropdown\":true,\"suggestions\":_vm.filteredServicos,\"field\":\"detail\",\"placeholder\":\"Pesquisar\",\"disabled\":_vm.desabilitarEdicaoCampos},on:{\"complete\":function($event){return _vm.searchServico($event)},\"item-select\":function($event){return _vm.atualizarValoresServico()}},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)])]),(_vm.habilitarSelecaoObra)?_c('div',{staticClass:\"row d-flex align-items-end\"},[_c('div',{staticClass:\"col-md-8 mb-2\"},[_c('label',{attrs:{\"for\":\"obra\"}},[_vm._v(\"Obra: \")]),_c('span',{staticClass:\"p-fluid\"},[_c('AutoComplete',{attrs:{\"id\":\"obra\",\"dropdown\":true,\"suggestions\":_vm.filteredObras,\"field\":\"detail\",\"placeholder\":\"Pesquisar\",\"disabled\":_vm.desabilitarEdicaoCampos},on:{\"complete\":function($event){return _vm.searchObra($event)},\"item-select\":function($event){return _vm.atualizarDadosObra()}},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 \")])]}}],null,false,3473452278),model:{value:(_vm.selectedObra),callback:function ($$v) {_vm.selectedObra=$$v},expression:\"selectedObra\"}})],1)]),(_vm.selectedObra && _vm.selectedObra.id)?_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"valorServico\"}},[_vm._v(\"Saldo: \")]),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"disabled\":\"true\"},model:{value:(_vm.selectedObra.saldoFormatado),callback:function ($$v) {_vm.$set(_vm.selectedObra, \"saldoFormatado\", $$v)},expression:\"selectedObra.saldoFormatado\"}})],1)]):_vm._e()]):_vm._e(),_c('div',{staticClass:\"row d-flex align-items-end\"},[_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"localPrestacao\"}},[_vm._v(\"Local Prestação:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('Dropdown',{attrs:{\"id\":\"localPrestacao\",\"options\":_vm.locaisPrestacao,\"optionLabel\":\"name\",\"placeholder\":\"Selecione um Local de Prestação\",\"optionDisabled\":_vm.desabilitarEdicaoLocalPrestacao,\"disabled\":_vm.desabilitarEdicaoLocalPrestacao},on:{\"change\":function($event){return _vm.atualizarDadosTela()}},model:{value:(_vm.selectedLocalPrestacao),callback:function ($$v) {_vm.selectedLocalPrestacao=$$v},expression:\"selectedLocalPrestacao\"}})],1)]),_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"tipoRec\"}},[_vm._v(\"Tipo Recolhimento:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('Dropdown',{attrs:{\"id\":\"tipoRec\",\"name\":\"tipoRec\",\"options\":_vm.tiposRecolhimento,\"optionLabel\":\"name\",\"placeholder\":\"Selecione um Tipo de Recolhimento\",\"optionDisabled\":_vm.desabilitarEdicaoNotaAvulsa,\"disabled\":_vm.desabilitarEdicaoNotaAvulsa},model:{value:(_vm.selectedTipoRecolhimento),callback:function ($$v) {_vm.selectedTipoRecolhimento=$$v},expression:\"selectedTipoRecolhimento\"}})],1)]),_c('div',{staticClass:\"col-md-3 mb-2\"},[_c('label',{attrs:{\"for\":\"munic\"}},[_vm._v(\"MunicÃpio Prestação: *\")]),_c('span',{staticClass:\"p-fluid\"},[_c('AutoComplete',{attrs:{\"id\":\"munic\",\"dropdown\":true,\"suggestions\":_vm.filteredLocalidades,\"field\":\"detail\",\"placeholder\":\"Pesquisar\",\"disabled\":_vm.desabilitarEdicaoMunicipio},on:{\"complete\":function($event){return _vm.searchLocalidade($event)},\"item-select\":function($event){return _vm.municPrestacaoSelecionado()}},model:{value:(_vm.selectedMunicPrestacao),callback:function ($$v) {_vm.selectedMunicPrestacao=$$v},expression:\"selectedMunicPrestacao\"}})],1)]),(_vm.servicoTributadoFora)?_c('div',{staticClass:\"col-md-3 mb-2\"},[_c('label',{attrs:{\"for\":\"tipoTributacao\"}},[_vm._v(\"Tributado no MunicÃpio do Prestador?\")]),_c('span',{staticClass:\"p-fluid\"},[_c('Dropdown',{attrs:{\"id\":\"tipoTributacao\",\"name\":\"tipoTributacao\",\"options\":_vm.tiposTributacao,\"optionLabel\":\"name\",\"placeholder\":\"Selecione um Tipo de Tributação\"},on:{\"change\":function($event){return _vm.municPrestacaoSelecionado()}},model:{value:(_vm.selectedTipoTributacao),callback:function ($$v) {_vm.selectedTipoTributacao=$$v},expression:\"selectedTipoTributacao\"}})],1)]):_vm._e(),_c('div',{staticClass:\"col-md-3 mb-2\"},[_c('label',{attrs:{\"for\":\"municIncid\"}},[_vm._v(\"MunicÃpio Recolhimento: \")]),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{staticStyle:{\"text-align\":\"left\"},attrs:{\"disabled\":\"true\"},model:{value:(_vm.municipioIncidencia),callback:function ($$v) {_vm.municipioIncidencia=$$v},expression:\"municipioIncidencia\"}})],1)])]),_c('div',{staticClass:\"row d-flex align-items-end\"},[_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"valorServico\"}},[_vm._v(\"Valor Serviço: *\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"valorServico\",\"name\":\"valorServico\",\"disabled\":_vm.desabilitarEdicaoCampos},nativeOn:{\"blur\":function($event){return _vm.validarDescontoAutomatico()}},model:{value:(_vm.notaFiscal.valorServico),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"valorServico\", $$v)},expression:\"notaFiscal.valorServico\"}},'money',_vm.money,false))],1)]),_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"aliquota\"}},[_vm._v(\"AlÃquota: *\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"aliquota\",\"name\":\"aliquota\",\"disabled\":_vm.desabilitarEdicaoAliquota},model:{value:(_vm.notaFiscal.aliquota),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"aliquota\", $$v)},expression:\"notaFiscal.aliquota\"}},'money',_vm.percent,false)),(_vm.validation.hasError('notaFiscal.aliquota'))?_c('InlineMessage',[_vm._v(_vm._s(_vm.validation.firstError(\"notaFiscal.aliquota\")))]):_vm._e()],1)]),_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"deducao\"}},[_vm._v(\"Dedução:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"deducao\",\"name\":\"deducao\",\"disabled\":_vm.desabilitarEdicaoDeducao},model:{value:(_vm.notaFiscal.valorDesconto),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"valorDesconto\", $$v)},expression:\"notaFiscal.valorDesconto\"}},'money',_vm.money,false))],1)]),(!this.notaAvulsa)?_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"descIncond\"}},[_vm._v(\"Desconto Incondicional:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"descIncond\",\"name\":\"descIncond\",\"disabled\":_vm.desabilitarEdicaoDescIncond},model:{value:(_vm.notaFiscal.valorDescontoIncond),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"valorDescontoIncond\", $$v)},expression:\"notaFiscal.valorDescontoIncond\"}},'money',_vm.money,false))],1)]):_vm._e(),(!this.notaAvulsa)?_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"descDiversos\"}},[_vm._v(\"Desconto Condicional:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"descDiversos\",\"name\":\"descDiversos\",\"disabled\":_vm.desabilitarEdicaoCampos},model:{value:(_vm.notaFiscal.valorDescontosDiversos),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"valorDescontosDiversos\", $$v)},expression:\"notaFiscal.valorDescontosDiversos\"}},'money',_vm.money,false))],1)]):_vm._e()]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-10 mb-2\"},[_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:{\"id\":\"descServico\",\"name\":\"descServico\",\"rows\":\"5\",\"disabled\":_vm.desabilitarEdicaoCampos},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-10 mb-2\"},[_c('label',{attrs:{\"for\":\"obs\"}},[_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:{\"id\":\"obs\",\"name\":\"obs\",\"rows\":\"5\",\"disabled\":_vm.desabilitarEdicaoCampos},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-2 mb-2\"},[_c('label',[_vm._v(\"Número RPS:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"disabled\":_vm.desabilitarEdicaoCampos,\"type\":\"number\"},model:{value:(_vm.notaFiscal.rpsNumero),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"rpsNumero\", $$v)},expression:\"notaFiscal.rpsNumero\"}})],1)])]),(_vm.exibirInfoDadosObra)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',[_vm._v(\"Número ART:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"type\":\"text\",\"disabled\":_vm.desabilitarDadosObra},model:{value:(_vm.notaFiscal.numeroArt),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"numeroArt\", $$v)},expression:\"notaFiscal.numeroArt\"}})],1)]),_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',[_vm._v(\"Número CEI:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"type\":\"text\",\"disabled\":_vm.desabilitarDadosObra},model:{value:(_vm.notaFiscal.numeroCei),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"numeroCei\", $$v)},expression:\"notaFiscal.numeroCei\"}})],1)])]):_vm._e(),(!this.notaAvulsa)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-2 mb-2\"},[_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\",\"disabled\":_vm.desabilitarEdicaoCampos},model:{value:(_vm.notaFiscal.valorInss),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"valorInss\", $$v)},expression:\"notaFiscal.valorInss\"}},'money',_vm.money,false))],1)]),_c('div',{staticClass:\"col-md-2 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\",\"disabled\":_vm.desabilitarEdicaoCampos},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-2 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\",\"disabled\":_vm.desabilitarEdicaoCampos},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-2 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\",\"disabled\":_vm.desabilitarEdicaoCampos},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-2 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\",\"disabled\":_vm.desabilitarEdicaoCampos},model:{value:(_vm.notaFiscal.valorCofins),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"valorCofins\", $$v)},expression:\"notaFiscal.valorCofins\"}},'money',_vm.money,false))],1)])]):_vm._e(),(!this.notaAvulsa)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"outrasRetencoes\"}},[_vm._v(\"Outras Retenções:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"outrasRetencoes\",\"name\":\"outrasRetencoes\",\"disabled\":_vm.desabilitarEdicaoCampos},model:{value:(_vm.notaFiscal.outrasRetencoes),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"outrasRetencoes\", $$v)},expression:\"notaFiscal.outrasRetencoes\"}},'money',_vm.money,false))],1)])]):_vm._e(),(this.notaAvulsa)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"irrf\"}},[_vm._v(\"IRRF:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"inirrfss\",\"name\":\"irrf\",\"disabled\":_vm.desabilitarEdicaoCampos},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-2 mb-2\"},[_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\",\"disabled\":_vm.desabilitarEdicaoCampos},model:{value:(_vm.notaFiscal.valorInss),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"valorInss\", $$v)},expression:\"notaFiscal.valorInss\"}},'money',_vm.money,false))],1)]),_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"sestSenat\"}},[_vm._v(\"SEST/SENAT:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"sestSenat\",\"name\":\"sestSenat\",\"disabled\":_vm.desabilitarEdicaoCampos},model:{value:(_vm.notaFiscal.valorSestSenat),callback:function ($$v) {_vm.$set(_vm.notaFiscal, \"valorSestSenat\", $$v)},expression:\"notaFiscal.valorSestSenat\"}},'money',_vm.money,false))],1)])]):_vm._e(),(this.confImpFederais && this.confImpFederais.id && !this.notaAvulsa)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-10 mb-2\"},[_c('Accordion',{on:{\"tab-open\":function($event){return _vm.aplicarImpFederais()}}},[_c('AccordionTab',{attrs:{\"header\":\"Definir impostos federais por alÃquota\"}},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-8 mb-2\"},[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-success\",attrs:{\"label\":\"Aplicar AlÃquota Padrão\",\"icon\":\"pi pi-check\"},on:{\"click\":function($event){return _vm.aplicarImpFederaisPadrao()}}}),_c('Button',{staticClass:\"p-button-primary\",attrs:{\"label\":\"Limpar AlÃquotas\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){return _vm.limparImpFederaisPadrao()}}})],1)]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"tmpInss\"}},[_vm._v(\"% Inss:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"tmpAliqInss\",\"name\":\"aliqInss\",\"disabled\":_vm.desabilitarEdicaoCampos},nativeOn:{\"change\":function($event){return _vm.aplicarImpFederais()}},model:{value:(_vm.confImpFederais.aliquotaInss),callback:function ($$v) {_vm.$set(_vm.confImpFederais, \"aliquotaInss\", $$v)},expression:\"confImpFederais.aliquotaInss\"}},'money',_vm.percent,false))],1)]),_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"tmpIr\"}},[_vm._v(\"% Ir:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"tmpIir\",\"name\":\"ir\",\"disabled\":_vm.desabilitarEdicaoCampos},nativeOn:{\"change\":function($event){return _vm.aplicarImpFederais()}},model:{value:(_vm.confImpFederais.aliquotaIr),callback:function ($$v) {_vm.$set(_vm.confImpFederais, \"aliquotaIr\", $$v)},expression:\"confImpFederais.aliquotaIr\"}},'money',_vm.percent,false))],1)]),_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"tmpCsll\"}},[_vm._v(\"% Csll:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"tmpCsll\",\"name\":\"csll\",\"disabled\":_vm.desabilitarEdicaoCampos},nativeOn:{\"change\":function($event){return _vm.aplicarImpFederais()}},model:{value:(_vm.confImpFederais.aliquotaCsll),callback:function ($$v) {_vm.$set(_vm.confImpFederais, \"aliquotaCsll\", $$v)},expression:\"confImpFederais.aliquotaCsll\"}},'money',_vm.percent,false))],1)]),_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"tmpPis\"}},[_vm._v(\"% Pis:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"tmpPis\",\"name\":\"pis\",\"disabled\":_vm.desabilitarEdicaoCampos},nativeOn:{\"change\":function($event){return _vm.aplicarImpFederais()}},model:{value:(_vm.confImpFederais.aliquotaPis),callback:function ($$v) {_vm.$set(_vm.confImpFederais, \"aliquotaPis\", $$v)},expression:\"confImpFederais.aliquotaPis\"}},'money',_vm.percent,false))],1)]),_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"tmpCofins\"}},[_vm._v(\"% Cofins:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"tmpCofins\",\"name\":\"cofins\",\"disabled\":_vm.desabilitarEdicaoCampos},nativeOn:{\"change\":function($event){return _vm.aplicarImpFederais()}},model:{value:(_vm.confImpFederais.aliquotaCofins),callback:function ($$v) {_vm.$set(_vm.confImpFederais, \"aliquotaCofins\", $$v)},expression:\"confImpFederais.aliquotaCofins\"}},'money',_vm.percent,false))],1)])])])])],1)],1)]):_vm._e(),_c('div',{staticClass:\"row d-flex align-items-end\"},[_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"inss\"}},[_vm._v(\"Valor Total Serviço:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"valorTotalServico\",\"name\":\"valorTotalServico\",\"disabled\":\"true\"},model:{value:(_vm.totalServico),callback:function ($$v) {_vm.totalServico=$$v},expression:\"totalServico\"}},'money',_vm.money,false))],1)]),_c('div',{staticClass:\"col-md-2 mb-2\"},[_c('label',{attrs:{\"for\":\"valorIss\"}},[_vm._v(\"Valor ISSQN:\")]),_c('span',{staticClass:\"p-fluid\"},[_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"valorIss\",\"name\":\"valorIss\",\"disabled\":\"true\"},model:{value:(_vm.totalIss),callback:function ($$v) {_vm.totalIss=$$v},expression:\"totalIss\"}},'money',_vm.money,false))],1)])]),_c('div',{staticClass:\"botoes-avancar-voltar\",staticStyle:{\"margin-top\":\"10px\"}},[_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.exibirBotao.gravar && _vm.isEmissaoLote),expression:\"exibirBotao.gravar && isEmissaoLote\"}],staticClass:\"p-button-primary mr-2 p-button-success\",attrs:{\"label\":\"Adicionar Nota Fiscal ao Lote\",\"type\":\"button\",\"icon\":\"pi pi-plus\",\"disabled\":_vm.loading || _vm.inativo},on:{\"click\":function($event){return _vm.adicionarNotaLote()}}}),_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.exibirBotao.gravar && _vm.isEmissaoLote),expression:\"exibirBotao.gravar && isEmissaoLote\"}],staticClass:\"p-button-primary mr-2 p-button-success\",attrs:{\"label\":\"Exibir/Gravar Lote\",\"type\":\"button\",\"icon\":\"pi pi-search\",\"disabled\":_vm.loading || _vm.inativo || _vm.quantidadeNotasLote == 0},on:{\"click\":function($event){return _vm.exibirLoteNotas()}}}),_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.exibirBotao.gravar && !_vm.isEmissaoLote),expression:\"exibirBotao.gravar && !isEmissaoLote\"}],staticClass:\"p-button-primary mr-2 p-button-success\",attrs:{\"label\":\"Gravar\",\"type\":\"button\",\"icon\":\"pi pi-check\",\"disabled\":_vm.loading || _vm.inativo},on:{\"click\":function($event){return _vm.salvar()}}}),_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.exibirBotao.gravar),expression:\"exibirBotao.gravar\"}],staticClass:\"p-button-primary mr-2\",attrs:{\"label\":\"Visualizar\",\"type\":\"button\",\"icon\":\"pi pi-print\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.salvar(true)}}}),_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.exibirBotao.novo),expression:\"exibirBotao.novo\"}],staticClass:\"p-button-primary mr-2\",attrs:{\"label\":_vm.isEmissaoLote ? 'Novo Lote' : 'Novo',\"type\":\"button\",\"icon\":\"pi pi-plus\",\"disabled\":_vm.loading || _vm.inativo},on:{\"click\":function($event){return _vm.novaNotaFiscal()}}}),_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.disableCopiaNota && !_vm.isEmissaoLote),expression:\"disableCopiaNota && !isEmissaoLote\"}],staticClass:\"p-button-primary mr-2\",attrs:{\"label\":\"Copiar NFS-e\",\"type\":\"button\",\"icon\":\"pi pi-copy\"},on:{\"click\":function($event){return _vm.copiarNotaFiscal()}}}),_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.exibirBotao.cancelar && !_vm.isEmissaoLote),expression:\"exibirBotao.cancelar && !isEmissaoLote\"}],staticClass:\"p-button-primary mr-2 p-button-danger\",attrs:{\"label\":\"Cancelar\",\"type\":\"button\",\"icon\":\"pi pi-times\",\"disabled\":_vm.loading || _vm.inativo},on:{\"click\":function($event){return _vm.cancelarNotaFiscal()}}}),_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.exibirBotao.imprimir),expression:\"exibirBotao.imprimir\"}],staticClass:\"p-button-primary mr-2\",attrs:{\"label\":\"Imprimir\",\"type\":\"button\",\"icon\":\"pi pi-print\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.imprimirNotaFiscal()}}}),_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.exibirBotao.email),expression:\"exibirBotao.email\"}],staticClass:\"p-button-primary mr-2\",attrs:{\"label\":\"Enviar por E-mail\",\"type\":\"button\",\"icon\":\"pi pi-envelope\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.enviarEmailNotaFiscal()}}}),_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(\n _vm.notaAvulsa == true &&\n this.pagaIssNota === 'S' &&\n this.notaFiscal.id != null &&\n this.notaFiscal.situacao != 'Cancelada' &&\n this.notaFiscal.tipoRecolhimento === 'N' &&\n this.notaAvulsaAcumulada == false\n ),expression:\"\\n notaAvulsa == true &&\\n this.pagaIssNota === 'S' &&\\n this.notaFiscal.id != null &&\\n this.notaFiscal.situacao != 'Cancelada' &&\\n this.notaFiscal.tipoRecolhimento === 'N' &&\\n this.notaAvulsaAcumulada == false\\n \"}],staticClass:\"p-button-primary mr-2\",attrs:{\"label\":\"DAM Nota Fiscal\",\"type\":\"button\",\"icon\":\"pi pi-print\",\"disabled\":_vm.loading || _vm.inativo},on:{\"click\":function($event){return _vm.carregarVencimentoBoleto()}}}),_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.reenviar),expression:\"reenviar\"}],staticClass:\"p-button-primary mr-2\",attrs:{\"label\":\"Reenviar E-mail\",\"type\":\"button\",\"icon\":\"pi pi-print\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.reenviarEmail(true)}}})],1)],1)])]),_c('Dialog',{style:({ width: '42vw' }),attrs:{\"header\":\"Aviso\",\"visible\":_vm.displayDevedorContumaz,\"contentStyle\":{ overflow: 'visible' },\"modal\":true},on:{\"update:visible\":function($event){_vm.displayDevedorContumaz=$event}}},[_vm._v(\"\\n \\n \"+_vm._s(this.avisoDevedorContumaz)+\" \"),_c('br'),_c('br'),_c('span',{staticStyle:{\"color\":\"red\"}},[_vm._v(\"(Aguarde realizando Geração do DAM!)\")])]),_c('Dialog',{style:({ width: '42vw' }),attrs:{\"header\":\"DAM Nota Fiscal\",\"visible\":_vm.displayVencBoleto,\"contentStyle\":{ overflow: 'visible' },\"modal\":true},on:{\"update:visible\":function($event){_vm.displayVencBoleto=$event}},scopedSlots:_vm._u([{key:\"footer\",fn:function(){return [_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.damGerado != 'S'),expression:\"damGerado != 'S'\"}],attrs:{\"label\":\"Gerar DAM\",\"icon\":\"pi pi-check\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.gerarDamNotaAvulsa()}}}),_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.damGerado == 'S'),expression:\"damGerado == 'S'\"}],attrs:{\"label\":\"Imprimir DAM\",\"icon\":\"pi pi-print\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.imprimirBoleto()}}}),(_vm.damGerado == 'S' && _vm.habilitarPix)?_c('div',[_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()}}}),_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()}}}),_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.damGerado == 'S' && _vm.habilitarPix),expression:\"damGerado == 'S' && habilitarPix\"}],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('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.damGerado == 'S'),expression:\"damGerado == 'S'\"}],staticClass:\"p-button-danger\",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()}}})]},proxy:true}])},[_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',{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('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',{attrs:{\"header\":\"Notas Fiscais no Lote\",\"visible\":_vm.showLote,\"modal\":true,\"closable\":false},on:{\"update:visible\":function($event){_vm.showLote=$event}}},[_c('div',{staticClass:\"scrolable-dialog\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"error-list\",staticStyle:{\"width\":\"100%\"}},[(_vm.exibeErroTabelaLote())?_c('Message',{attrs:{\"closable\":false,\"severity\":\"error\"}},[_c('span',[_vm._v(\"Uma ou mais Notas Fiscais no Lote não foram salvas!\")])]):_vm._e()],1)]),_c('div',{staticClass:\"row\"},[(this.selectedPessoa)?_c('div',{staticClass:\"col-md-12\"},[_c('b',[_vm._v(\"Tomador:\")]),_vm._v(\"\\n \"+_vm._s(this.selectedPessoa.detail)+\"\\n \")]):_vm._e(),(this.selectedPessoaIntermediario)?_c('div',{staticClass:\"col-md-12\"},[_c('b',[_vm._v(\"Intermediário:\")]),_vm._v(\"\\n \"+_vm._s(this.selectedPessoaIntermediario.detail)+\"\\n \")]):_vm._e()]),_c('div',{staticClass:\"row\"},[_c('DataTable',{attrs:{\"value\":_vm.loteNotas,\"paginator\":true,\"rows\":10,\"autoLayout\":true,\"rowClass\":_vm.classeErroTabelaLote}},[_c('Column',{attrs:{\"field\":\"detailServico\",\"header\":\"Serviço\"}}),_c('Column',{attrs:{\"field\":\"aliquotaFormatada\",\"header\":\"AlÃquota\"}}),_c('Column',{attrs:{\"field\":\"valorFormatado\",\"header\":\"Valor Serviço\"}}),_c('Column',{attrs:{\"field\":\"valorIssFormatado\",\"header\":\"Valor ISS\"}}),(false)?_c('Column',{attrs:{\"field\":\"erros\",\"header\":\"Erros\"}},[_c('ul',{staticClass:\"mt-3\"},_vm._l((_vm.erros),function(erro){return _c('li',{key:erro},[_vm._v(_vm._s(erro))])}),0)]):_vm._e(),_c('Column',{attrs:{\"headerStyle\":\"width: 4em\",\"bodyStyle\":\"text-align: center\"},scopedSlots:_vm._u([{key:\"body\",fn:function(slotProps){return [_c('Button',{staticClass:\"p-button-danger\",attrs:{\"type\":\"button\",\"icon\":\"pi pi-trash\"},on:{\"click\":function($event){return _vm.removerNotaLote(slotProps.data.hashLote)}}})]}}])})],1)],1)]),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',[_c('Button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.exibirBotao.gravar),expression:\"exibirBotao.gravar\"}],staticClass:\"p-button-primary mr-2 p-button-success\",attrs:{\"label\":\"Gravar Lote\",\"type\":\"button\",\"icon\":\"pi pi-check\",\"disabled\":_vm.loading || _vm.inativo},on:{\"click\":function($event){return _vm.salvarLote()}}}),_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.ocultarLoteNotas()}}})],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/tributario/contribuinteatividade/';\r\n\r\nclass ContribuinteAtividadeService {\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 findAllAtividades(idContribuinte) {\r\n return axios.get(API_URL + 'all?idContribuinte='+idContribuinte, {headers: this.headers});\r\n }\r\n\r\n findAllAtividadesByContribuinteFiltro(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 findAllAtividadesByAtividadeFiltro(filtro, idContribuinte, idAtividade) {\r\n return axios.get(API_URL + 'filterServicoAtividade?idContribuinte='+idContribuinte+'&idAtividade='+idAtividade+'&filtro='+filtro, {headers: this.headers}).then(response => (this.data = response.data.elements));\r\n }\r\n\r\n \r\n \r\n}\r\n\r\nexport default new ContribuinteAtividadeService();","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\":_vm.headerDialog,\"visible\":_vm.showRemoverIntermediario,\"modal\":true,\"closable\":false},on:{\"update:visible\":function($event){_vm.showRemoverIntermediario=$event}}},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12 mb-2 mensagem-cancelamento\"},[_c('p',[_vm._v(\"\\n \"+_vm._s(\"O Intermediário\" +\n \" \" +\n (this.pessoa ? this.pessoa.detail : \"\") +\n \" será removido.\")+\"\\n \")]),_c('p',[_vm._v(\"\\n \"+_vm._s(\"Deseja continuar?\")+\"\\n \")])])])]),_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\":\"Remover\",\"icon\":\"pi pi-check\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.removerIntermediario()}}})],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.showRemoverIntermediario = false}}})],1)])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <span>\r\n <Dialog class=\"test-box\" :header=\"headerDialog\" :visible.sync=\"showRemoverIntermediario\" :modal=\"true\"\r\n :closable=\"false\">\r\n <div class=\"container\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12 mb-2 mensagem-cancelamento\">\r\n <p>\r\n {{\r\n \"O Intermediário\" +\r\n \" \" +\r\n (this.pessoa ? this.pessoa.detail : \"\") +\r\n \" será removido.\"\r\n }}\r\n </p>\r\n <p>\r\n {{ \"Deseja continuar?\" }}\r\n </p>\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=\"removerIntermediario()\" href=\"#topo\" type=\"button\" label=\"Remover\"\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=\"showRemoverIntermediario = 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 NfsPessoaService from \"@/services/nfse/pessoa.service\";\r\n\r\nexport default {\r\n name: \"RemoverIntermediario\",\r\n\r\n // props: {\r\n // tipoEmissao: String\r\n // },\r\n\r\n created() {\r\n this.$root.$on(\"notaFiscal:removerIntermediario\", () => {\r\n this.pessoa = this.$parent.selectedPessoaIntermediario;\r\n console.log(this.pessoa)\r\n this.exibirDialogRemoverIntermediario();\r\n });\r\n },\r\n\r\n data() {\r\n return {\r\n showRemoverIntermediario: false,\r\n pessoa: null\r\n };\r\n },\r\n\r\n methods: {\r\n exibirDialogRemoverIntermediario() {\r\n this.showRemoverIntermediario = true;\r\n },\r\n\r\n removerIntermediario() {\r\n if (this.pessoa && this.pessoa.id) {\r\n this.$parent.processando(true);\r\n this.$parent.erros = [];\r\n\r\n NfsPessoaService.remove(this.pessoa.id)\r\n .then(\r\n data => {\r\n console.log(data);\r\n this.$root.$emit(\r\n \"alert:success\",\r\n \"O Intermediario foi removido!\"\r\n );\r\n },\r\n error => {\r\n console.log(error);\r\n this.$root.$emit(\r\n \"alert:success\",\r\n \"Houve um problema ao remover o Intermediario!\"\r\n );\r\n }\r\n )\r\n .then(() => {\r\n this.$parent.selectedPessoaIntermediario = null;\r\n this.showRemoverIntermediario = false;\r\n this.$parent.processando(false);\r\n });\r\n }\r\n }\r\n },\r\n\r\n computed: {\r\n headerDialog() {\r\n return \"Remover Intermediario\";\r\n },\r\n\r\n loading() {\r\n return this.$parent.loading;\r\n }\r\n }\r\n};\r\n</script>\r\n\r\n<style scoped></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!./RemoverIntermediario.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!./RemoverIntermediario.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./RemoverIntermediario.vue?vue&type=template&id=a03f6a3c&scoped=true&\"\nimport script from \"./RemoverIntermediario.vue?vue&type=script&lang=js&\"\nexport * from \"./RemoverIntermediario.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 \"a03f6a3c\",\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',{attrs:{\"header\":\"Copiar Nota Fiscal\",\"visible\":_vm.showCopiarNota,\"modal\":true,\"closable\":false},on:{\"update:visible\":function($event){_vm.showCopiarNota=$event}}},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\",attrs:{\"id\":\"topo\"}},[_c('div',{staticClass:\"col-md-12 mb-2\"},[_c('label',{attrs:{\"for\":\"tipoTomador\"}},[_vm._v(\"Número da Nota Fiscal: *\")]),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"type\":\"number\"},model:{value:(_vm.numeroNota),callback:function ($$v) {_vm.numeroNota=$$v},expression:\"numeroNota\"}})],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\":\"Copiar\",\"icon\":\"pi pi-check\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.copiarNotaFiscal()}}})],1),_c('div',[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-danger\",attrs:{\"type\":\"button\",\"label\":\"Cancelar\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.showCopiarNota = false}}})],1)])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <span>\r\n <Dialog\r\n header=\"Copiar Nota Fiscal\"\r\n :visible.sync=\"showCopiarNota\"\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-12 mb-2\">\r\n <label for=\"tipoTomador\">Número da Nota Fiscal: *</label>\r\n <span class=\"p-fluid\">\r\n <InputText v-model=\"numeroNota\" type=\"number\" />\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\r\n @click=\"copiarNotaFiscal()\"\r\n href=\"#topo\"\r\n type=\"button\"\r\n label=\"Copiar\"\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=\"showCopiarNota = false\"\r\n type=\"button\"\r\n label=\"Cancelar\"\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 LoginService from \"@/services/acesso/login.service\";\r\nimport NotaFiscalService from \"@/services/nfse/notafiscal.service\";\r\nimport NotaFiscal from \"@/models/nfse/NotaFiscal\";\r\n\r\nexport default {\r\n name: \"CopiarNotaFiscal\",\r\n\r\n data() {\r\n return {\r\n currentUser: null,\r\n notaFiscal: new NotaFiscal(),\r\n showCopiarNota: false,\r\n numeroNota: null\r\n };\r\n },\r\n\r\n created() {\r\n this.currentUser = LoginService.currentUserValue;\r\n this.$root.$on(\"notaFiscal:copiar\", numero => {\r\n this.numeroNota = numero;\r\n this.exibirDialogCopiarNota();\r\n });\r\n },\r\n\r\n methods: {\r\n exibirDialogCopiarNota() {\r\n if (this.$parent.notaFiscal) {\r\n this.numeroNota = this.$parent.notaFiscal.numero;\r\n }\r\n\r\n this.showCopiarNota = true;\r\n },\r\n\r\n copiarNotaFiscal() {\r\n if (this.numeroNota) {\r\n this.$parent.processando(true);\r\n\r\n NotaFiscalService.findByNumeroCopiarNota(this.numeroNota)\r\n .then(data => {\r\n const nota = data.data;\r\n console.log(nota);\r\n\r\n if (nota) {\r\n this.$parent.novaNotaFiscal();\r\n console.log(nota);\r\n\r\n if (nota.tomadorDados) {\r\n if (nota.tomadorDados.tipo != \"N\") {\r\n this.$parent.selectedPessoa = nota.tomadorDados;\r\n\r\n if (nota.intermediarioDados && this.currentUser.configuracao.idBolIntermediario && this.currentUser.configuracao.idBolIntermediario == \"S\") {\r\n this.$parent.selectedTipoIntermediario = this.$parent.tiposIntermediario.filter(\r\n tipo => tipo.key == \"S\"\r\n )[0];\r\n this.$parent.selectedPessoaIntermediario = nota.intermediarioDados;\r\n } else {\r\n this.$parent.selectedTipoIntermediario = this.$parent.tiposIntermediario.filter(\r\n tipo => tipo.key == \"N\"\r\n )[0];\r\n }\r\n } else {\r\n this.$parent.selectedTipoTomador = this.$parent.tiposTomador.filter(\r\n tipo => tipo.key == nota.tomadorDados.tipo\r\n )[0];\r\n }\r\n }\r\n\r\n this.$parent.selectedAtividade = null;\r\n if(nota.contribuinteAtividade && nota.contribuinteAtividade.id){\r\n this.$parent.selectedAtividade = nota.contribuinteAtividade; \r\n }\r\n this.$parent.selectedServico = nota.contribuinteServico;\r\n\r\n this.$parent.selectedLocalPrestacao = this.$parent.locaisPrestacao.filter(\r\n local => local.key == nota.localPrestacao\r\n )[0];\r\n\r\n this.$parent.notaFiscal.valorServico = nota.valorServico;\r\n this.$parent.notaFiscal.valorAliquota = nota.valorAliquota;\r\n this.$parent.notaFiscal.valorDesconto = nota.valorDesconto;\r\n this.$parent.notaFiscal.valorDescontoIncond =\r\n nota.valorDescontoIncond;\r\n this.$parent.notaFiscal.valorDescontoCond =\r\n nota.valorDescontoCond;\r\n this.$parent.notaFiscal.discriminacaoServico =\r\n nota.discriminacaoServico;\r\n this.$parent.notaFiscal.valorInss = nota.valorInss;\r\n this.$parent.notaFiscal.valorIr = nota.valorIr;\r\n this.$parent.notaFiscal.valorCsll = nota.valorCsll;\r\n this.$parent.notaFiscal.valorPis = nota.valorPis;\r\n this.$parent.notaFiscal.valorCofins = nota.valorCofins;\r\n\r\n this.$parent.notaFiscal.valorIrrf = nota.valorIrrf;\r\n this.$parent.notaFiscal.valorSestSenat = nota.valorSestSenat;\r\n this.$parent.notaFiscal.numeroArt = nota.numeroArt;\r\n this.$parent.notaFiscal.numeroCei = nota.numeroCei;\r\n\r\n if(nota.obra && nota.obra.id){\r\n this.$parent.selectedObra = nota.obra;\r\n }\r\n\r\n //carrega o munic de origem e de prestacao\r\n this.$parent.searchLocalidadeCopiaNota(this.currentUser.configuracao.idCepLocalidadeCliente, nota.idMunicPrestacao);\r\n\r\n \r\n\r\n this.$root.$emit(\r\n \"alert:info:fixed\",\r\n \"Os dados da Nota Fiscal informada foram carregados!\"\r\n );\r\n\r\n\r\n if (nota.tomadorRemovido == \"S\") {\r\n this.$root.$emit(\r\n \"alert:warn:fixed\",\r\n \"Os dados do Tomador não foram carregados, pois ele foi removido anteriormente!\"\r\n );\r\n }else{\r\n this.$parent.atualizarDadosPessoaSelecionada();\r\n }\r\n } else {\r\n this.$root.$emit(\r\n \"alert:warn\",\r\n \"Não foi possÃvel carregar os dados da Nota Fiscal informada!\"\r\n );\r\n }\r\n })\r\n .then(() => {\r\n this.showCopiarNota = false;\r\n this.$parent.processando(false);\r\n });\r\n } else {\r\n this.$root.$emit(\r\n \"alert:warn\",\r\n \"O número da Nota Fiscal deve ser informado!\"\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></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!./CopiarNotaFiscal.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!./CopiarNotaFiscal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CopiarNotaFiscal.vue?vue&type=template&id=1aa40f99&\"\nimport script from \"./CopiarNotaFiscal.vue?vue&type=script&lang=js&\"\nexport * from \"./CopiarNotaFiscal.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","<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\">{{!this.notaAvulsa ? (!this.isEmissaoLote ? 'Emissão de Notas Fiscais de Serviço Eletrônicas' : 'Emissão em Lote de Notas Fiscais de Serviço Eletrônicas') : 'Emissão de Notas Fiscais Avulsas Eletrônicas.'}}</span>\r\n <br />\r\n <span class=\"navigation\">{{!this.notaAvulsa ? 'Nota Fiscal de Serviço' : 'Nota Fiscal Avulsa'}} >\r\n {{!this.isEmissaoLote ? 'Emissão' : 'Emissão em Lote'}} </span>\r\n </h4>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card-body\">\r\n <error-list :erros=\"erros\" />\r\n <cancelar-nota-fiscal />\r\n <copiar-nota-fiscal />\r\n <enviar-email-nota-fiscal />\r\n <tomador-cadastro tipoCadastro=\"T\" />\r\n <remover-tomador tipoCadastro=\"T\" />\r\n <remover-intermediario />\r\n\r\n\r\n <Message severity=\"warn\" v-if=\"this.tipoCadastroInvalido\">Inscrição do contribuinte não pertence ao cadastro municipal, não será possÃvel emitir notas de serviço, contate o municÃpio!</Message>\r\n\r\n <div class=\"row\" v-if=\"exibirDadosNotaSubstituida\">\r\n <div class=\"col-md-10 mb-2\">\r\n <Panel :toggleable=\"true\" header=\"Dados da NFS-e SubstituÃda\">\r\n <div class=\"row\">\r\n <div class=\"col-3\">\r\n <b>Número:</b>\r\n {{ dadosNotaSubstituida.numero }}\r\n </div>\r\n <div class=\"col-3\">\r\n <b>Data:</b>\r\n {{ dadosNotaSubstituida.data }}\r\n </div>\r\n <div class=\"col-6\">\r\n <b>Tomador:</b>\r\n {{ dadosNotaSubstituida.tomador }}\r\n </div>\r\n </div>\r\n </Panel>\r\n </div>\r\n </div>\r\n\r\n <div class=\"row d-flex align-items-end\">\r\n <div class=\"col-md-2 mb-2\" v-if=\"desabilitarEdicaoCampos\">\r\n <label for=\"tipoTomador\">Número:</label>\r\n <span class=\"p-fluid\">\r\n <InputText v-model=\"notaFiscal.numero\" disabled />\r\n </span>\r\n </div>\r\n\r\n <div class=\"col-md-2 mb-2\">\r\n <label for=\"tipoTomador\">Tipo Tomador:</label>\r\n <span class=\"p-fluid\">\r\n <Dropdown @change=\"alterarTipoTomador()\" id=\"tipoTomador\" v-model=\"selectedTipoTomador\"\r\n :options=\"tiposTomador\" optionLabel=\"name\" placeholder=\"Selecione um Tipo de Tomador\"\r\n :optionDisabled=\"desabilitarEdicaoCampos\" :disabled=\"desabilitarEdicaoCampos || travarEdicaoTomador || travarCamposEmissaoLote\" />\r\n </span>\r\n </div>\r\n <div :class=\"\r\n desabilitarEdicaoCampos ? 'col-md-5 mb-2' : 'col-md-7 mb-2'\r\n \">\r\n <label for=\"tomador\">{{\r\n selectedTipoTomador.name +\r\n (selectedTipoTomador.key != \"N\" ? \": *\" : \":\")\r\n }}</label>\r\n <span class=\"p-fluid\">\r\n <AutoComplete id=\"tomador\" v-model=\"selectedPessoa\" :dropdown=\"true\" :suggestions=\"filteredPessoas\"\r\n @complete=\"searchPessoa($event)\" @item-select=\"atualizarDadosPessoaSelecionada()\" field=\"detail\"\r\n :placeholder=\"\r\n selectedTipoTomador.key == 'N'\r\n ? 'Não Identificado'\r\n : 'Pesquisar'\r\n \" :disabled=\"desabilitarEdicaoNomeTomador || travarEdicaoTomador || travarCamposEmissaoLote\" :class=\"{\r\n 'p-error': validation.hasError('selectedPessoa'),\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 class=\"col-md-1 mb-2\">\r\n <span class=\"p-fluid ml-2\">\r\n <div class=\"p-inputgroup\">\r\n <Button @click=\"novoTomador()\" id=\"btnNovoTomador\" type=\"button\" icon=\"pi pi-plus\"\r\n title=\"Cadastrar Tomador\" :disabled=\"desabilitarBotaoNovoTomador || travarEdicaoTomador || travarCamposEmissaoLote\" />\r\n <Button @click=\"editarTomador()\" id=\"btnEditarTomador\" type=\"button\" icon=\"pi pi-pencil\"\r\n title=\"Editar Tomador\" :disabled=\"desabilitarBotaoEdicaoTomador || travarEdicaoTomador || travarCamposEmissaoLote\" />\r\n <Button @click=\"removerTomador()\" id=\"btnRemoverTomador\" type=\"button\" icon=\"pi pi-trash\"\r\n title=\"Remover Tomador\" :disabled=\"desabilitarBotaoRemoverTomador || travarEdicaoTomador || travarCamposEmissaoLote\" />\r\n </div>\r\n </span>\r\n </div>\r\n </div>\r\n\r\n <div class=\"row d-flex align-items-end\" v-if=\"exibeIntermediario\">\r\n <div class=\"col-md-2 mb-2\">\r\n <label for=\"exibirIntermediario\">Informar Intermediário:</label>\r\n <span class=\"p-fluid\">\r\n <Dropdown @change=\"alterarTipoIntermediario()\" id=\"tipoIntermediario\" v-model=\"selectedTipoIntermediario\"\r\n :options=\"tiposIntermediario\" optionLabel=\"name\" \r\n :optionDisabled=\"desabilitarEdicaoCampos\" :disabled=\"desabilitarEdicaoCampos || travarEdicaoTomador || travarCamposEmissaoLote\" />\r\n </span> \r\n </div>\r\n <div class=\"col-md-7 mb-2\" v-if=\"exibirSelecaoIntermediario\">\r\n <label for=\"intermediario\">Intermediário:</label>\r\n <span class=\"p-fluid\">\r\n <!-- @item-select=\"atualizarDadosPessoaSelecionada()\" -->\r\n <AutoComplete id=\"intermediario\" v-model=\"selectedPessoaIntermediario\" :dropdown=\"true\" :suggestions=\"filteredPessoas\"\r\n @complete=\"searchPessoa($event)\" field=\"detail\"\r\n placeholder=\"Pesquisar\" :disabled=\"desabilitarEdicaoNomeTomador || travarEdicaoTomador || travarCamposEmissaoLote\" :class=\"{\r\n 'p-error': validation.hasError('selectedPessoaIntermediario'),\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 class=\"col-md-1 mb-2\" v-if=\"exibirSelecaoIntermediario\">\r\n <span class=\"p-fluid ml-2\">\r\n <div class=\"p-inputgroup\">\r\n <Button @click=\"novoIntermediario()\" id=\"btnNovoIntermediario\" type=\"button\" icon=\"pi pi-plus\"\r\n title=\"Cadastrar Intermediário\" :disabled=\"desabilitarBotaoNovoIntermediario || travarEdicaoTomador || travarCamposEmissaoLote\" />\r\n <Button @click=\"editarIntermediario()\" id=\"btnEditarIntermediario\" type=\"button\" icon=\"pi pi-pencil\"\r\n title=\"Editar Intermediário\" :disabled=\"desabilitarBotaoEdicaoIntermediario || travarEdicaoTomador || travarCamposEmissaoLote\" />\r\n <Button @click=\"removerIntermediario()\" id=\"btnRemoverIntermediario\" type=\"button\" icon=\"pi pi-trash\"\r\n title=\"Remover Intermediario\" :disabled=\"desabilitarBotaoRemoverIntermediario || travarEdicaoTomador || travarCamposEmissaoLote\" />\r\n </div>\r\n </span>\r\n </div>\r\n </div>\r\n\r\n <detalhes-contribuinte tipoEmissao=\"P\" />\r\n <detalhes-contribuinte tipoEmissao=\"I\" />\r\n\r\n <div class=\"row\" v-if=\"opcaoServicoAberto\">\r\n <div class=\"col-md-3 mb-2 d-flex align-items-center\">\r\n <label for=\"binary\">Listar todos Serviços Municipais</label>\r\n <span class=\"p-fluid\">\r\n <Checkbox style=\"margin-left:5px;\" id=\"binary\" v-model=\"checkServicoAberto\" :binary=\"true\" @change=\"clearServico()\" />\r\n </span>\r\n </div>\r\n </div>\r\n\r\n <div class=\"row d-flex\">\r\n <div class=\"col-md-2 mb-2\">\r\n <label for=\"dataEmissao\">Data Fato Gerador: *</label>\r\n <span class=\"p-fluid\">\r\n <Calendar id=\"dataEmissao\" name=\"dataEmissao\" v-model=\"notaFiscal.dataFatoGerador\"\r\n :minDate=\"dataMinimaEmissao\" :maxDate=\"dataMaximaEmissao\" :showIcon=\"true\" dateFormat=\"dd/mm/yy\"\r\n :disabled=\"desabilitarEdicaoCampos\" :manualInput=\"false\" @date-select=\"emissaoSelect()\" />\r\n </span>\r\n </div>\r\n <div class=\"col-md-8 mb-2\" v-if=\"emissaoPorAtividade\">\r\n <label for=\"atividade\">Atividade: *</label>\r\n <span class=\"p-fluid\">\r\n <AutoComplete id=\"atividade\" v-model=\"selectedAtividade\" :dropdown=\"true\"\r\n :suggestions=\"filteredAtividade\" field=\"detail\" placeholder=\"Pesquisar\"\r\n @complete=\"searchAtividade($event)\" @item-select=\"atualizarServico()\"\r\n :disabled=\"desabilitarEdicaoCampos\">\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 :class=\"emissaoPorAtividade ? 'col-md-10 mb-2' : 'col-md-8 mb-2'\">\r\n <label for=\"servico\">Serviço: *</label>\r\n <span class=\"p-fluid\">\r\n <AutoComplete id=\"servico\" v-model=\"selectedServico\" :dropdown=\"true\" :suggestions=\"filteredServicos\"\r\n field=\"detail\" placeholder=\"Pesquisar\" @complete=\"searchServico($event)\"\r\n @item-select=\"atualizarValoresServico()\" :disabled=\"desabilitarEdicaoCampos\">\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 d-flex align-items-end\" v-if=\"habilitarSelecaoObra\">\r\n <div class=\"col-md-8 mb-2\">\r\n <label for=\"obra\">Obra: </label>\r\n <span class=\"p-fluid\">\r\n <AutoComplete id=\"obra\" v-model=\"selectedObra\" :dropdown=\"true\" :suggestions=\"filteredObras\"\r\n field=\"detail\" placeholder=\"Pesquisar\" @complete=\"searchObra($event)\"\r\n @item-select=\"atualizarDadosObra()\" :disabled=\"desabilitarEdicaoCampos\">\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 class=\"col-md-2 mb-2\" v-if=\"selectedObra && selectedObra.id\">\r\n <label for=\"valorServico\">Saldo: </label>\r\n <span class=\"p-fluid\">\r\n <InputText v-model=\"selectedObra.saldoFormatado\" disabled=\"true\"></InputText>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"row d-flex align-items-end\">\r\n <div class=\"col-md-2 mb-2\">\r\n <label for=\"localPrestacao\">Local Prestação:</label>\r\n <span class=\"p-fluid\">\r\n <Dropdown id=\"localPrestacao\" v-model=\"selectedLocalPrestacao\" :options=\"locaisPrestacao\"\r\n optionLabel=\"name\" placeholder=\"Selecione um Local de Prestação\" @change=\"atualizarDadosTela()\"\r\n :optionDisabled=\"desabilitarEdicaoLocalPrestacao\" :disabled=\"desabilitarEdicaoLocalPrestacao\" />\r\n </span>\r\n </div>\r\n <div class=\"col-md-2 mb-2\">\r\n <label for=\"tipoRec\">Tipo Recolhimento:</label>\r\n <span class=\"p-fluid\">\r\n <Dropdown id=\"tipoRec\" name=\"tipoRec\" v-model=\"selectedTipoRecolhimento\" :options=\"tiposRecolhimento\"\r\n optionLabel=\"name\" placeholder=\"Selecione um Tipo de Recolhimento\"\r\n :optionDisabled=\"desabilitarEdicaoNotaAvulsa\" :disabled=\"desabilitarEdicaoNotaAvulsa\" />\r\n </span>\r\n </div>\r\n <div class=\"col-md-3 mb-2\">\r\n <label for=\"munic\">MunicÃpio Prestação: *</label>\r\n <span class=\"p-fluid\">\r\n <AutoComplete id=\"munic\" v-model=\"selectedMunicPrestacao\" :dropdown=\"true\"\r\n :suggestions=\"filteredLocalidades\" @complete=\"searchLocalidade($event)\" @item-select=\"municPrestacaoSelecionado()\" field=\"detail\"\r\n placeholder=\"Pesquisar\" :disabled=\"desabilitarEdicaoMunicipio\" />\r\n </span>\r\n </div>\r\n <div class=\"col-md-3 mb-2\" v-if=\"servicoTributadoFora\">\r\n <label for=\"tipoTributacao\">Tributado no MunicÃpio do Prestador?</label>\r\n <span class=\"p-fluid\">\r\n <Dropdown id=\"tipoTributacao\" name=\"tipoTributacao\" v-model=\"selectedTipoTributacao\" :options=\"tiposTributacao\"\r\n optionLabel=\"name\" placeholder=\"Selecione um Tipo de Tributação\" @change=\"municPrestacaoSelecionado()\"/>\r\n </span>\r\n </div>\r\n <div class=\"col-md-3 mb-2\">\r\n <label for=\"municIncid\">MunicÃpio Recolhimento: </label>\r\n <span class=\"p-fluid\">\r\n <InputText v-model=\"municipioIncidencia\" disabled=\"true\" style=\"text-align: left;\"/>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"row d-flex align-items-end\">\r\n <div class=\"col-md-2 mb-2\">\r\n <label for=\"valorServico\">Valor Serviço: *</label>\r\n <span class=\"p-fluid\">\r\n <money id=\"valorServico\" name=\"valorServico\" v-model=\"notaFiscal.valorServico\" v-bind=\"money\"\r\n class=\"p-inputtext input-right\" :disabled=\"desabilitarEdicaoCampos\" @blur.native=\"validarDescontoAutomatico()\"></money>\r\n\r\n <!-- :class=\"{ 'is-invalid': loading && errors.has('descServico') }\" -->\r\n </span>\r\n </div>\r\n <div class=\"col-md-2 mb-2\">\r\n <label for=\"aliquota\">AlÃquota: *</label>\r\n <span class=\"p-fluid\">\r\n <money id=\"aliquota\" name=\"aliquota\" v-model=\"notaFiscal.aliquota\" v-bind=\"percent\"\r\n class=\"p-inputtext input-right\" :disabled=\"desabilitarEdicaoAliquota\"></money>\r\n <InlineMessage v-if=\"validation.hasError('notaFiscal.aliquota')\">{{\r\n validation.firstError(\"notaFiscal.aliquota\")\r\n }}</InlineMessage>\r\n </span>\r\n </div>\r\n <div class=\"col-md-2 mb-2\">\r\n <label for=\"deducao\">Dedução:</label>\r\n <span class=\"p-fluid\">\r\n <money id=\"deducao\" name=\"deducao\" v-model=\"notaFiscal.valorDesconto\" v-bind=\"money\"\r\n class=\"p-inputtext input-right\" :disabled=\"desabilitarEdicaoDeducao\"></money>\r\n </span>\r\n </div>\r\n <div class=\"col-md-2 mb-2\" v-if=\"!this.notaAvulsa\">\r\n <label for=\"descIncond\">Desconto Incondicional:</label>\r\n <span class=\"p-fluid\">\r\n <money id=\"descIncond\" name=\"descIncond\" v-model=\"notaFiscal.valorDescontoIncond\" v-bind=\"money\"\r\n class=\"p-inputtext input-right\" :disabled=\"desabilitarEdicaoDescIncond\"></money>\r\n </span>\r\n </div>\r\n <div class=\"col-md-2 mb-2\" v-if=\"!this.notaAvulsa\">\r\n <label for=\"descDiversos\">Desconto Condicional:</label>\r\n <span class=\"p-fluid\">\r\n <money id=\"descDiversos\" name=\"descDiversos\" v-model=\"notaFiscal.valorDescontosDiversos\" v-bind=\"money\"\r\n class=\"p-inputtext input-right\" :disabled=\"desabilitarEdicaoCampos\"></money>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"row\" >\r\n <div class=\"col-md-10 mb-2\">\r\n <label for=\"descServico\">Discriminação dos Serviços: *</label>\r\n <span class=\"p-fluid\">\r\n <textarea id=\"descServico\" name=\"descServico\" v-model=\"notaFiscal.discriminacaoServico\" rows=\"5\"\r\n :disabled=\"desabilitarEdicaoCampos\" />\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"row\" v-if=\"observacaoClienteNfse\">\r\n <div class=\"col-md-10 mb-2\">\r\n <label for=\"obs\">Observação: </label>\r\n <span class=\"p-fluid\">\r\n <textarea id=\"obs\" name=\"obs\" v-model=\"notaFiscal.observacao\" rows=\"5\"\r\n :disabled=\"desabilitarEdicaoCampos\" />\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-2 mb-2\">\r\n <label>Número RPS:</label>\r\n <span class=\"p-fluid\">\r\n <InputText v-model=\"notaFiscal.rpsNumero\" :disabled=\"desabilitarEdicaoCampos\" type=\"number\"></InputText>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"row\" v-if=\"exibirInfoDadosObra\">\r\n <div class=\"col-md-2 mb-2\">\r\n <label>Número ART:</label>\r\n <span class=\"p-fluid\">\r\n <InputText v-model=\"notaFiscal.numeroArt\" type=\"text\" :disabled=\"desabilitarDadosObra\"></InputText>\r\n </span>\r\n </div>\r\n <div class=\"col-md-2 mb-2\">\r\n <label>Número CEI:</label>\r\n <span class=\"p-fluid\">\r\n <InputText v-model=\"notaFiscal.numeroCei\" type=\"text\" :disabled=\"desabilitarDadosObra\"></InputText>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"row\" v-if=\"!this.notaAvulsa\">\r\n <div class=\"col-md-2 mb-2\">\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\"\r\n class=\"p-inputtext input-right\" :disabled=\"desabilitarEdicaoCampos\"></money>\r\n </span>\r\n </div>\r\n <div class=\"col-md-2 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 :disabled=\"desabilitarEdicaoCampos\"></money>\r\n </span>\r\n </div>\r\n <div class=\"col-md-2 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\" :disabled=\"desabilitarEdicaoCampos\"></money>\r\n </span>\r\n </div>\r\n <div class=\"col-md-2 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 :disabled=\"desabilitarEdicaoCampos\"></money>\r\n </span>\r\n </div>\r\n <div class=\"col-md-2 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\" :disabled=\"desabilitarEdicaoCampos\"></money>\r\n </span>\r\n </div>\r\n </div>\r\n\r\n <div class=\"row\" v-if=\"!this.notaAvulsa\">\r\n <div class=\"col-md-2 mb-2\">\r\n <label for=\"outrasRetencoes\">Outras Retenções:</label>\r\n <span class=\"p-fluid\">\r\n <money id=\"outrasRetencoes\" name=\"outrasRetencoes\" v-model=\"notaFiscal.outrasRetencoes\" v-bind=\"money\"\r\n class=\"p-inputtext input-right\" :disabled=\"desabilitarEdicaoCampos\"></money>\r\n </span>\r\n </div>\r\n </div>\r\n\r\n <div class=\"row\" v-if=\"this.notaAvulsa\">\r\n <div class=\"col-md-2 mb-2\">\r\n <label for=\"irrf\">IRRF:</label>\r\n <span class=\"p-fluid\">\r\n <money id=\"inirrfss\" name=\"irrf\" v-model=\"notaFiscal.valorIrrf\" v-bind=\"money\"\r\n class=\"p-inputtext input-right\" :disabled=\"desabilitarEdicaoCampos\"></money>\r\n </span>\r\n </div>\r\n <div class=\"col-md-2 mb-2\">\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\"\r\n class=\"p-inputtext input-right\" :disabled=\"desabilitarEdicaoCampos\"></money>\r\n </span>\r\n </div>\r\n <div class=\"col-md-2 mb-2\">\r\n <label for=\"sestSenat\">SEST/SENAT:</label>\r\n <span class=\"p-fluid\">\r\n <money id=\"sestSenat\" name=\"sestSenat\" v-model=\"notaFiscal.valorSestSenat\" v-bind=\"money\"\r\n class=\"p-inputtext input-right\" :disabled=\"desabilitarEdicaoCampos\"></money>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"row\" v-if=\"this.confImpFederais && this.confImpFederais.id && !this.notaAvulsa\">\r\n <div class=\"col-md-10 mb-2\">\r\n <Accordion @tab-open=\"aplicarImpFederais()\">\r\n <AccordionTab header=\"Definir impostos federais por alÃquota\" >\r\n <div class=\"card-body\">\r\n <div class=\"row\">\r\n <div class=\"col-md-8 mb-2\">\r\n <Button label=\"Aplicar AlÃquota Padrão\" icon=\"pi pi-check\" class=\"p-button-primary mr-2 p-button-success\" @click=\"aplicarImpFederaisPadrao()\"/>\r\n <Button label=\"Limpar AlÃquotas\" icon=\"pi pi-times\" class=\"p-button-primary\" @click=\"limparImpFederaisPadrao()\"/>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-2 mb-2\">\r\n <label for=\"tmpInss\">% Inss:</label>\r\n <span class=\"p-fluid\">\r\n <money id=\"tmpAliqInss\" name=\"aliqInss\" v-model=\"confImpFederais.aliquotaInss\" v-bind=\"percent\"\r\n class=\"p-inputtext input-right\" :disabled=\"desabilitarEdicaoCampos\" @change.native=\"aplicarImpFederais()\">\r\n </money>\r\n </span>\r\n </div>\r\n <div class=\"col-md-2 mb-2\">\r\n <label for=\"tmpIr\">% Ir:</label>\r\n <span class=\"p-fluid\">\r\n <money id=\"tmpIir\" name=\"ir\" v-model=\"confImpFederais.aliquotaIr\" v-bind=\"percent\"\r\n class=\"p-inputtext input-right\" :disabled=\"desabilitarEdicaoCampos\" @change.native=\"aplicarImpFederais()\"></money>\r\n </span>\r\n </div>\r\n <div class=\"col-md-2 mb-2\">\r\n <label for=\"tmpCsll\">% Csll:</label>\r\n <span class=\"p-fluid\">\r\n <money id=\"tmpCsll\" name=\"csll\" v-model=\"confImpFederais.aliquotaCsll\" v-bind=\"percent\"\r\n class=\"p-inputtext input-right\" :disabled=\"desabilitarEdicaoCampos\" @change.native=\"aplicarImpFederais()\"></money>\r\n </span>\r\n </div>\r\n <div class=\"col-md-2 mb-2\">\r\n <label for=\"tmpPis\">% Pis:</label>\r\n <span class=\"p-fluid\">\r\n <money id=\"tmpPis\" name=\"pis\" v-model=\"confImpFederais.aliquotaPis\" v-bind=\"percent\"\r\n class=\"p-inputtext input-right\" :disabled=\"desabilitarEdicaoCampos\" @change.native=\"aplicarImpFederais()\"></money>\r\n </span>\r\n </div>\r\n <div class=\"col-md-2 mb-2\">\r\n <label for=\"tmpCofins\">% Cofins:</label>\r\n <span class=\"p-fluid\">\r\n <money id=\"tmpCofins\" name=\"cofins\" v-model=\"confImpFederais.aliquotaCofins\" v-bind=\"percent\"\r\n class=\"p-inputtext input-right\" :disabled=\"desabilitarEdicaoCampos\" @change.native=\"aplicarImpFederais()\"></money>\r\n </span>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n </AccordionTab>\r\n </Accordion>\r\n </div>\r\n </div>\r\n <div class=\"row d-flex align-items-end\">\r\n <div class=\"col-md-2 mb-2\">\r\n <label for=\"inss\">Valor Total Serviço:</label>\r\n <span class=\"p-fluid\">\r\n <money id=\"valorTotalServico\" name=\"valorTotalServico\" v-model=\"totalServico\" v-bind=\"money\"\r\n class=\"p-inputtext input-right\" disabled=\"true\"></money>\r\n </span>\r\n </div>\r\n <div class=\"col-md-2 mb-2\">\r\n <label for=\"valorIss\">Valor ISSQN:</label>\r\n <span class=\"p-fluid\">\r\n <money id=\"valorIss\" name=\"valorIss\" v-model=\"totalIss\" v-bind=\"money\" class=\"p-inputtext input-right\"\r\n disabled=\"true\"></money>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"botoes-avancar-voltar\" style=\"margin-top: 10px;\">\r\n\r\n <Button @click=\"adicionarNotaLote()\" label=\"Adicionar Nota Fiscal ao Lote\" type=\"button\" class=\"p-button-primary mr-2 p-button-success\"\r\n icon=\"pi pi-plus\" v-show=\"exibirBotao.gravar && isEmissaoLote\" :disabled=\"loading || inativo\" />\r\n\r\n <Button @click=\"exibirLoteNotas()\" label=\"Exibir/Gravar Lote\" type=\"button\" class=\"p-button-primary mr-2 p-button-success\"\r\n icon=\"pi pi-search\" v-show=\"exibirBotao.gravar && isEmissaoLote\" :disabled=\"loading || inativo || quantidadeNotasLote == 0\" />\r\n\r\n <Button @click=\"salvar()\" label=\"Gravar\" type=\"button\" class=\"p-button-primary mr-2 p-button-success\"\r\n icon=\"pi pi-check\" v-show=\"exibirBotao.gravar && !isEmissaoLote\" :disabled=\"loading || inativo\" />\r\n\r\n <Button @click=\"salvar(true)\" label=\"Visualizar\" type=\"button\" class=\"p-button-primary mr-2\"\r\n icon=\"pi pi-print\" v-show=\"exibirBotao.gravar\" :disabled=\"loading\" />\r\n\r\n <Button @click=\"novaNotaFiscal()\" :label=\"isEmissaoLote ? 'Novo Lote' : 'Novo'\" type=\"button\" class=\"p-button-primary mr-2\" icon=\"pi pi-plus\"\r\n v-show=\"exibirBotao.novo\" :disabled=\"loading || inativo\" />\r\n\r\n <Button @click=\"copiarNotaFiscal()\" label=\"Copiar NFS-e\" type=\"button\" class=\"p-button-primary mr-2\"\r\n icon=\"pi pi-copy\" v-show=\"disableCopiaNota && !isEmissaoLote\" />\r\n\r\n <Button @click=\"cancelarNotaFiscal()\" label=\"Cancelar\" type=\"button\"\r\n class=\"p-button-primary mr-2 p-button-danger\" icon=\"pi pi-times\" v-show=\"exibirBotao.cancelar && !isEmissaoLote\"\r\n :disabled=\"loading || inativo\" />\r\n\r\n <Button @click=\"imprimirNotaFiscal()\" label=\"Imprimir\" type=\"button\" class=\"p-button-primary mr-2\"\r\n icon=\"pi pi-print\" v-show=\"exibirBotao.imprimir\" :disabled=\"loading\" />\r\n\r\n <Button @click=\"enviarEmailNotaFiscal()\" label=\"Enviar por E-mail\" type=\"button\" class=\"p-button-primary mr-2\"\r\n icon=\"pi pi-envelope\" v-show=\"exibirBotao.email\" :disabled=\"loading\" />\r\n\r\n <Button @click=\"carregarVencimentoBoleto()\" label=\"DAM Nota Fiscal\" type=\"button\"\r\n class=\"p-button-primary mr-2\" icon=\"pi pi-print\" v-show=\"\r\n notaAvulsa == true &&\r\n this.pagaIssNota === 'S' &&\r\n this.notaFiscal.id != null &&\r\n this.notaFiscal.situacao != 'Cancelada' &&\r\n this.notaFiscal.tipoRecolhimento === 'N' &&\r\n this.notaAvulsaAcumulada == false\r\n \" :disabled=\"loading || inativo\" />\r\n <Button @click=\"reenviarEmail(true)\" label=\"Reenviar E-mail\" type=\"button\" class=\"p-button-primary mr-2\"\r\n icon=\"pi pi-print\" v-show=\"reenviar\" :disabled=\"loading\" />\r\n </div> \r\n </div>\r\n </div>\r\n </div>\r\n \r\n \r\n <Dialog header=\"Aviso\" :visible.sync=\"displayDevedorContumaz\" :style=\"{ width: '42vw' }\"\r\n :contentStyle=\"{ overflow: 'visible' }\" :modal=\"true\">\r\n \r\n {{ this.avisoDevedorContumaz }} <br/><br/> <span style=\"color:red\">(Aguarde realizando Geração do DAM!)</span>\r\n \r\n </Dialog>\r\n <Dialog header=\"DAM Nota Fiscal\" :visible.sync=\"displayVencBoleto\" :style=\"{ width: '42vw' }\"\r\n :contentStyle=\"{ overflow: 'visible' }\" :modal=\"true\">\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\" />\r\n </span>\r\n </div>\r\n <template #footer>\r\n <Button label=\"Gerar DAM\" icon=\"pi pi-check\" v-show=\"damGerado != 'S'\" @click=\"gerarDamNotaAvulsa()\"\r\n :disabled=\"loading\" />\r\n <Button label=\"Imprimir DAM\" icon=\"pi pi-print\" v-show=\"damGerado == 'S'\" @click=\"imprimirBoleto()\"\r\n :disabled=\"loading\" />\r\n <div v-if=\"damGerado == 'S' && habilitarPix\">\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 <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 <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 </div>\r\n <Button label=\"Cancelar DAM\" icon=\"pi pi-print\" v-show=\"damGerado == 'S'\" @click=\"cancelarDamNotaAvulsa()\"\r\n :disabled=\"loading\" class=\"p-button-danger\" />\r\n <Button label=\"Fechar\" icon=\"pi pi-times\" @click=\"hideVencBoleto()\" class=\"p-button-secondary\" />\r\n </template>\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\r\n <Dialog header=\"Notas Fiscais no Lote\" :visible.sync=\"showLote\" :modal=\"true\" :closable=\"false\">\r\n <div class=\"scrolable-dialog\">\r\n <div class=\"row\">\r\n <div style=\"width: 100%\" class=\"error-list\">\r\n <Message :closable=\"false\" severity=\"error\" v-if=\"exibeErroTabelaLote()\">\r\n <span>Uma ou mais Notas Fiscais no Lote não foram salvas!</span>\r\n </Message>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\" v-if=\"this.selectedPessoa\">\r\n <b>Tomador:</b>\r\n {{this.selectedPessoa.detail}}\r\n </div>\r\n <div class=\"col-md-12\" v-if=\"this.selectedPessoaIntermediario\">\r\n <b>Intermediário:</b>\r\n {{this.selectedPessoaIntermediario.detail}}\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <DataTable :value=\"loteNotas\" :paginator=\"true\" :rows=\"10\" :autoLayout=\"true\" :rowClass=\"classeErroTabelaLote\">\r\n <Column field=\"detailServico\" header=\"Serviço\"></Column>\r\n <Column field=\"aliquotaFormatada\" header=\"AlÃquota\"></Column>\r\n <Column field=\"valorFormatado\" header=\"Valor Serviço\"></Column>\r\n <Column field=\"valorIssFormatado\" header=\"Valor ISS\"></Column>\r\n <Column v-if=\"false\" field=\"erros\" header=\"Erros\">\r\n <ul class=\"mt-3\">\r\n <li :key=\"erro\" v-for=\"erro in erros\">{{ erro }}</li>\r\n </ul>\r\n </Column>\r\n <Column headerStyle=\"width: 4em\" bodyStyle=\"text-align: center\">\r\n <template #body=\"slotProps\">\r\n <Button\r\n type=\"button\"\r\n icon=\"pi pi-trash\"\r\n class=\"p-button-danger\"\r\n @click=\"removerNotaLote(slotProps.data.hashLote)\"\r\n ></Button>\r\n </template>\r\n </Column>\r\n </DataTable>\r\n </div>\r\n </div>\r\n <div class=\"container\">\r\n <div class=\"row\">\r\n <div>\r\n <Button @click=\"salvarLote()\" label=\"Gravar Lote\" type=\"button\" class=\"p-button-primary mr-2 p-button-success\"\r\n icon=\"pi pi-check\" v-show=\"exibirBotao.gravar\" :disabled=\"loading || inativo\" />\r\n\r\n <Button\r\n @click=\"ocultarLoteNotas()\"\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 </div>\r\n</template>\r\n<script>\r\nimport money from \"../conf/config.money\";\r\nimport percent from \"../conf/config.percent\";\r\nimport NfsPessoaService from \"../services/nfse/pessoa.service\";\r\nimport NotaFiscal from \"../models/nfse/NotaFiscal\";\r\nimport ContribuinteServicoService from \"../services/tributario/contribuinte.servico.service\";\r\nimport ContribuinteAtividadeService from \"../services/tributario/contribuinte.atividade.service\";\r\nimport NotaFiscalService from \"../services/nfse/notafiscal.service\";\r\nimport LocalidadeService from \"../services/acesso/localidade.service\";\r\nimport LoginService from \"../services/acesso/login.service\";\r\n// import SimpleVueValidation from \"simple-vue-validator\";\r\nimport TomadorCadastro from \"../views/TomadorCadastro\";\r\nimport RemoverTomador from \"../components/emissaoNfse/RemoverTomador\";\r\nimport RemoverIntermediario from \"../components/emissaoNfse/RemoverIntermediario\";\r\nimport ReportService from \"../services/report.service\";\r\nimport CopiarNotaFiscal from \"../components/emissaoNfse/CopiarNotaFiscal\";\r\nimport CancelarNotaFiscal from \"../components/emissaoNfse/CancelarNotaFiscal\";\r\nimport EnviarEmailNotaFiscal from \"../components/emissaoNfse/EnviarEmailNotaFiscal\";\r\nimport DetalhesContribuinte from \"../components/emissaoNfse/DetalhesContribuinte\";\r\nimport NotaFiscalAvulsaService from \"../services/nfse/notafiscalavulsa.service\";\r\nimport ObrasService from \"../services/obras/obras.service\";\r\nimport { QRCanvas } from \"qrcanvas-vue\";\r\n\r\n// const Validator = SimpleVueValidation.Validator;\r\n\r\nexport default {\r\n name: \"EmissaoNfse\",\r\n\r\n components: {\r\n TomadorCadastro,\r\n RemoverTomador,\r\n RemoverIntermediario,\r\n CopiarNotaFiscal,\r\n CancelarNotaFiscal,\r\n DetalhesContribuinte,\r\n EnviarEmailNotaFiscal,\r\n QRCanvas,\r\n },\r\n\r\n data() {\r\n return {\r\n reenviar: false,\r\n money: money,\r\n dados: null,\r\n inativo: false,\r\n percent: percent,\r\n loading: false,\r\n emissaoPorAtividade: false,\r\n erros: [],\r\n currentUser: null,\r\n dadosTela: null,\r\n notaFiscal: new NotaFiscal(),\r\n dadosNotaSubstituida: null,\r\n filteredPessoas: null,\r\n filteredLocalidades: null,\r\n filteredAtividade: null,\r\n filteredServicos: null,\r\n filteredObras: null,\r\n tiposTomador: [\r\n { name: \"CPF/CNPJ/Nome\", key: \"C\" },\r\n { name: \"Exterior\", key: \"E\" },\r\n ],\r\n tiposIntermediario: [\r\n {name: \"Não\", key: \"N\"},\r\n {name: \"Sim\", key: \"S\"}\r\n ],\r\n locaisPrestacao: [\r\n { name: \"MunicÃpio\", key: \"M\" },\r\n { name: \"Fora do MunicÃpio\", key: \"F\" },\r\n ],\r\n tiposRecolhimento: [\r\n { name: \"Não Retido\", key: \"N\" },\r\n { name: \"Retido na Fonte\", key: \"R\" },\r\n { name: \"Sem Recolhimento\", key: \"S\" },\r\n ],\r\n selectedMunicOrigem: null,\r\n selectedMunicPrestacao: null,\r\n municipioIncidencia: \"\",\r\n selectedPessoa: null,\r\n selectedPessoaIntermediario: null,\r\n selectedAtividade: null,\r\n selectedServico: null,\r\n selectedObra: null,\r\n selectedTipoTomador: null,\r\n selectedTipoIntermediario: \"S\",\r\n selectedLocalPrestacao: null,\r\n selectedTipoRecolhimento: null,\r\n valorTotalServico: null,\r\n valorTotalIss: null,\r\n exibirDadosObra: null,\r\n notaAvulsa: null,\r\n damGerado: null,\r\n displayVencBoleto: false,\r\n keyVencBoleto: 1,\r\n dataVencimento: null,\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 opcaoServicoAberto: false,\r\n checkServicoAberto: false,\r\n observacaoClienteNfse: false,\r\n habilitarSelecaoObra: false,\r\n showImpFederaisAliquota: true,\r\n confImpFederais: null,\r\n exibirCalcImpFederais: false,\r\n configTomador: null,\r\n travarEdicaoTomador: false,\r\n notaAvulsaAcumulada: false,\r\n displayDevedorContumaz: false,\r\n avisoDevedorContumaz: \"CONTRIBUINTE ENQUADRADO EM REGIME ESPECIAL DE DEVEDOR CONTUMAZ. PARA CONCLUIR A EMISSÃO DA NOTA, REALIZE O RECOLHIMENTO DO ISS.\",\r\n tiposTributacao:[\r\n { name: \"Não\", key: \"ForaDaSede\" },\r\n { name: \"Sim\", key: \"Sede\" },\r\n ],\r\n servicoTributadoFora: false,\r\n selectedTipoTributacao: null,\r\n pagaIssNota:'S',\r\n disableCopiaNota: true,\r\n loteNotas: [],\r\n showLote: false,\r\n tipoCadastroInvalido: false,\r\n codigoIbgePrincipal: null\r\n };\r\n },\r\n\r\n watch: {\r\n $route(to, from) {\r\n //Força reload quando alterna entre as páginas de emissão, pois as duas rotas usam o mesmo componente.\r\n if ((to.path == '/emissaoNfse' && from.path == '/emissaoNfseLote') || (to.path == '/emissaoNfseLote' && from.path == '/emissaoNfse')) {\r\n window.location.reload();\r\n }\r\n }\r\n },\r\n\r\n mounted() {\r\n document.getElementById(\"tomador\").focus();\r\n },\r\n\r\n created() {\r\n //console.log(this.tiposTomador);\r\n if (this.$route.query.reenviar && this.$route.query.reenviar == \"S\") {\r\n this.reenviar = true;\r\n }\r\n\r\n this.selectedTipoIntermediario = this.tiposIntermediario[0];\r\n this.currentUser = LoginService.currentUserValue;\r\n this.selectedTipoTributacao = this.tiposTributacao[0];\r\n this.habilitarPix = this.currentUser.configuracao.idBolUtilizarPix === \"S\";\r\n this.opcaoServicoAberto =\r\n this.currentUser.configuracao.idBolServicoAbertoNfse === \"S\";\r\n this.observacaoClienteNfse =\r\n this.currentUser.configuracao.idBolObservacaoNfse === \"S\";\r\n this.inativo =\r\n this.currentUser && this.currentUser.contribuinte\r\n ? !this.currentUser.contribuinte.ativo\r\n : false;\r\n this.tipoCadastroInvalido = false; \r\n this.limparDadosNotaFiscal();\r\n if(!this.notaAvulsa && (this.currentUser.contribuinte && this.currentUser.configuracao && this.currentUser.contribuinte.idContribuinteTipo && this.currentUser.configuracao.idContrTipoEconomico && this.currentUser.contribuinte.idContribuinteTipo != this.currentUser.configuracao.idContrTipoEconomico)){\r\n this.tipoCadastroInvalido = true;\r\n this.inativo = true;\r\n }\r\n \r\n this.codigoIbgePrincipal = this.currentUser.configuracao.codigoIbgeCliente;\r\n\r\n //this.emissaoPorAtividade = (this.notaAvulsa ? false : this.currentUser.configuracao.idBolHabilitaCnaeNf && this.currentUser.configuracao.idBolHabilitaCnaeNf === 'S');\r\n this.emissaoPorAtividade = (this.currentUser.configuracao.idBolHabilitaCnaeNf && this.currentUser.configuracao.idBolHabilitaCnaeNf === 'S');\r\n this.confImpFederais = JSON.parse(JSON.stringify(this.currentUser.confImpFederais));\r\n this.exibirCalcImpFederais = (this.confImpFederais && this.confImpFederais.id);\r\n \r\n if (this.currentUser.configuracao.idBolTomadorNaoInformado == \"S\" && this.currentUser.contribuinteConfig.idBolTomadorNaoInformado != 'N'){\r\n this.tiposTomador.push({ name: \"Não Identificado\", key: \"N\" });\r\n }else if(this.currentUser.contribuinteConfig.idBolTomadorNaoInformado === 'S'){\r\n this.tiposTomador.push({ name: \"Não Identificado\", key: \"N\" });\r\n }\r\n\r\n //Configuração Tomador\r\n this.configTomador = this.currentUser.configuracao.idBolSelTomadorDiferente;\r\n //console.log(this.configTomador);\r\n\r\n this.exibirDadosObra = this.currentUser.configuracao.idBolDadosObra;\r\n this.travarEdicaoTomador = false;\r\n\r\n // this.disableCopiaNota = true;\r\n\r\n if (this.$route.params.dadosSubstituicao) {\r\n \r\n this.dadosNotaSubstituida = this.$route.params.dadosSubstituicao;\r\n this.disableCopiaNota = this.dadosNotaSubstituida.copiaNota;\r\n //console.log(this.disableCopiaNota+\" Disable copia nota\");\r\n this.notaFiscal.idNotaSubstituida = this.dadosNotaSubstituida.id;\r\n if(this.currentUser.usuario.idCliente === \"19533831040781681800D2584C905F8A\" || this.configTomador === \"S\"){//simoes filho não permite editar o tomador na substituicao\r\n this.processando(true);\r\n NotaFiscalService.findByNotaSubstituicao(this.dadosNotaSubstituida.id)\r\n .then(data => {\r\n const nota = data.data;\r\n //console.log(nota);\r\n this.travarEdicaoTomador = true;\r\n if (nota.tomadorDados) {\r\n if (nota.tomadorDados != \"N\") {\r\n this.selectedPessoa = nota.tomadorDados;\r\n } else {\r\n this.selectedTipoTomador = this.tiposTomador.filter(\r\n tipo => tipo.key == nota.tomadorDados.tipo\r\n )[0];\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 },\r\n\r\n methods: {\r\n logTeste(to, from){\r\n console.log(to);\r\n console.log(from);\r\n },\r\n copiarPix(){\r\n navigator.clipboard.writeText(this.pixGerado.qrCode);\r\n },\r\n emissaoSelect(){\r\n let dateSelect = this.notaFiscal.dataFatoGerador;\r\n dateSelect.setHours(8);\r\n this.notaFiscal.dataFatoGerador = dateSelect;\r\n this.clearServico();\r\n },\r\n clearServico() {\r\n this.selectedAtividade = null;\r\n this.selectedServico = null;\r\n this.notaFiscal.aliquota = 0;\r\n },\r\n searchPessoa(event) {\r\n setTimeout(async () => {\r\n this.filteredPessoas =\r\n await NfsPessoaService.findAllByConttribuinteFiltro(\r\n event.query,\r\n this.selectedTipoTomador.key\r\n );\r\n }, 250);\r\n },\r\n\r\n searchAtividade(event) {\r\n\r\n this.processando(true);\r\n\r\n setTimeout(async () => {\r\n this.filteredAtividade =\r\n await ContribuinteAtividadeService.findAllAtividadesByContribuinteFiltro(\r\n event.query,\r\n this.currentUser.contribuinte.idContribuinte\r\n )\r\n this.processando(false);\r\n }, 250);\r\n\r\n\r\n },\r\n\r\n searchServico(event) {\r\n if (this.notaFiscal.dataFatoGerador) {\r\n this.processando(true);\r\n let dataEmissao = this.moment(this.notaFiscal.dataFatoGerador).format(\r\n \"YYYY-MM-DD\"\r\n );\r\n let filtro = event.query + \"*;\" + dataEmissao;\r\n if (!this.emissaoPorAtividade) {\r\n if (this.notaAvulsa || this.checkServicoAberto) {\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 filtro,\r\n this.currentUser.contribuinte.idContribuinte\r\n )\r\n this.processando(false);\r\n }, 250);\r\n } else {\r\n setTimeout(async () => {\r\n this.filteredServicos =\r\n await ContribuinteServicoService.findAllServicosByContribuinteFiltro(\r\n filtro,\r\n this.currentUser.contribuinte.idContribuinte\r\n )\r\n this.processando(false);\r\n }, 250);\r\n }\r\n } else {\r\n if (this.selectedAtividade && this.selectedAtividade.id && this.selectedAtividade.idAtividade) {\r\n setTimeout(async () => {\r\n this.filteredServicos =\r\n await ContribuinteAtividadeService.findAllAtividadesByAtividadeFiltro(\r\n filtro,\r\n this.currentUser.contribuinte.idContribuinte,\r\n this.selectedAtividade.idAtividade.id\r\n )\r\n this.processando(false);\r\n }, 250);\r\n } else {\r\n this.filteredServicos = [];\r\n this.processando(false);\r\n }\r\n }\r\n }\r\n },\r\n\r\n searchObra(event) {\r\n this.processando(true);\r\n setTimeout(async () => {\r\n this.filteredObras =\r\n await ObrasService.findAllByContirbuinte(\r\n event.query,\r\n this.currentUser.contribuinte.idContribuinte\r\n )\r\n this.processando(false);\r\n }, 250);\r\n },\r\n\r\n searchLocalidade(event) {\r\n setTimeout(async () => {\r\n if(this.selectedLocalPrestacao && this.selectedLocalPrestacao.key === 'F'){\r\n this.filteredLocalidades = await LocalidadeService.findAllByFiltroSemIbge(\r\n event.query,\r\n this.codigoIbgePrincipal\r\n );\r\n }else{\r\n this.filteredLocalidades = await LocalidadeService.findAllByFiltroIbge(\r\n event.query\r\n );\r\n }\r\n }, 250);\r\n },\r\n \r\n municPrestacaoSelecionado(){\r\n if(this.selectedMunicOrigem && this.selectedMunicOrigem.id && this.selectedLocalPrestacao && this.selectedLocalPrestacao.key === 'F' && this.selectedTipoTributacao && this.selectedTipoTributacao.key === 'Sede')\r\n this.municipioIncidencia = this.selectedMunicOrigem.detail;\r\n else if(this.dadosTela && this.dadosTela.localIncidencia && this.dadosTela.localIncidencia === 'F' && this.selectedMunicPrestacao && this.selectedMunicPrestacao.id){\r\n this.municipioIncidencia = this.selectedMunicPrestacao.detail;\r\n }else if(this.selectedMunicOrigem && this.selectedMunicOrigem.id){\r\n this.municipioIncidencia = this.selectedMunicOrigem.detail;\r\n }else{\r\n this.municipioIncidencia = \"\";\r\n }\r\n },\r\n\r\n searchLocalidadePorId(idMunic, entrada) {\r\n LocalidadeService.findAllById(idMunic).then((data) => {\r\n this.selectedMunicPrestacao = data.data;\r\n this.selectedMunicOrigem = data.data;//salva o de origem para reaproveitar futuramente\r\n if(entrada && this.selectedMunicOrigem && this.selectedMunicOrigem.id){\r\n this.municipioIncidencia = this.selectedMunicPrestacao.detail;\r\n }\r\n });\r\n },\r\n searchLocalidadeCopiaNota(idMunicOrigem, idMunicPrestacao){\r\n if(idMunicOrigem){\r\n LocalidadeService.findAllById(idMunicOrigem).then((data) => {\r\n this.selectedMunicOrigem = data.data;//salva o de origem para reaproveitar futuramente\r\n if(idMunicPrestacao){\r\n LocalidadeService.findAllById(idMunicPrestacao).then((data) => {\r\n this.selectedMunicPrestacao = data.data;\r\n });\r\n }\r\n });\r\n }\r\n },\r\n\r\n onSubmit() {\r\n this.$validate().then((success) => {\r\n if (success) {\r\n this.salvar();\r\n }\r\n });\r\n },\r\n\r\n setarDadosNotaFiscal() {\r\n this.notaFiscal.idSerie = this.currentUser.configuracao.idSeriePadrao;\r\n this.notaFiscal.idPrestadorDados =\r\n this.currentUser.contribuinte.idNfsPessoa;\r\n\r\n if (this.selectedTipoTomador.key !== \"N\") {\r\n if (this.selectedPessoa) {\r\n this.notaFiscal.idTomadorDados = this.selectedPessoa.id;\r\n }\r\n\r\n if (this.selectedPessoaIntermediario) {\r\n this.notaFiscal.idIntermediarioDados = this.selectedPessoaIntermediario.id;\r\n } else {\r\n this.notaFiscal.idIntermediarioDados = null;\r\n }\r\n }\r\n\r\n if (this.selectedMunicPrestacao) {\r\n this.notaFiscal.idMunicPrestacao = this.selectedMunicPrestacao.id;\r\n }\r\n\r\n if (this.emissaoPorAtividade && this.selectedAtividade && this.selectedAtividade.id && this.selectedAtividade.idAtividade) {\r\n this.notaFiscal.idAtividade = this.selectedAtividade.idAtividade.id;\r\n this.notaFiscal.detailServico = this.selectedServico.detail;\r\n } else {\r\n this.notaFiscal.idAtividade = null;\r\n this.notaFiscal.detailServico = null;\r\n }\r\n\r\n if (this.selectedServico && this.selectedServico.idServico) {\r\n this.notaFiscal.idServicoItem = this.selectedServico.idServico.idServicoItem;\r\n this.notaFiscal.detailServico = this.selectedServico.detail;\r\n } else {\r\n this.notaFiscal.idServicoItem = null;\r\n this.notaFiscal.detailServico = null;\r\n }\r\n\r\n if (this.selectedObra && this.selectedObra.id) {\r\n this.notaFiscal.idObra =\r\n this.selectedObra.id;\r\n } else {\r\n this.notaFiscal.idObra = null;\r\n }\r\n\r\n this.notaFiscal.selecaoServicoTributadoFora = null;\r\n if(this.servicoTributadoFora && this.selectedTipoTributacao && this.selectedTipoTributacao.key){\r\n this.notaFiscal.selecaoServicoTributadoFora = this.selectedTipoTributacao.key;\r\n }\r\n\r\n this.notaFiscal.localPrestacao = this.selectedLocalPrestacao.key;\r\n this.notaFiscal.tipoRecolhimento = this.selectedTipoRecolhimento.key;\r\n\r\n this.notaFiscal.servico = this.totalServico;\r\n this.notaFiscal.valorIss = this.totalIss;\r\n this.notaFiscal.valorBaseCalculo = this.baseCalculo;\r\n this.notaFiscal.valorLiquido = this.valorLiquido;\r\n //console.log(this.notaFiscal.outrasRetencoes);\r\n\r\n //this.notaFiscal.dataEmissao = new Date(); // Quando a nota foi persistida no banco\r\n //this.notaFiscal.dataHoraEmissao = new Date(); // Quando a nota foi persistida no banco\r\n //this.notaFiscal.ano = this.notaFiscal.dataFatoGerador.getFullYear();\r\n //this.notaFiscal.mes = this.notaFiscal.dataFatoGerador.getMonth() + 1; // O getMonth busca valor de 0 a 11\r\n },\r\n\r\n salvar(visualizar = false) {\r\n this.processando(true);\r\n this.setarDadosNotaFiscal();\r\n\r\n this.erros = [];\r\n\r\n this.notaFiscal.visualizar = visualizar;\r\n this.processando(!visualizar);\r\n\r\n NotaFiscalService.save(this.notaFiscal, this.selectedTipoTomador.key)\r\n .then(\r\n (data) => {\r\n if (this.notaFiscal.visualizar) {\r\n console.log(data);\r\n } else {\r\n this.notaFiscal = data.data;\r\n\r\n this.pagaIssNota = 'S';\r\n if(this.notaFiscal && this.notaFiscal.pagaIssNotaAtual && this.notaFiscal.pagaIssNotaAtual === 'N'){\r\n this.pagaIssNota = 'N';\r\n }\r\n this.notaAvulsaAcumulada = false;\r\n if(this.notaFiscal.acumularValorNfa && this.notaFiscal.acumularValorNfa === 'S'){\r\n this.notaAvulsaAcumulada = true;\r\n }\r\n\r\n let devedorCostumaz = (this.notaFiscal.idBolDevedorContumaz && this.notaFiscal.idBolDevedorContumaz === 'S');\r\n if(devedorCostumaz){\r\n this.displayDevedorContumaz = true;\r\n this.dataVencimento = new Date();\r\n this.gerarDamNotaAvulsaAcao(true);\r\n }else{\r\n this.$root.$emit(\"alert:success\", \"A Nota Fiscal foi salva!\");\r\n }\r\n }\r\n this.disableCopiaNota = false;\r\n },\r\n (error) => {\r\n let errorMessage = \"Houve um problema ao salvar a Nota Fiscal!\";\r\n if (error.response) {\r\n const errors = Array.isArray(error.response.data) \r\n ? error.response.data \r\n : [error.response.data];\r\n \r\n errors.forEach(err => {\r\n this.$toast.add({\r\n severity: \"error\",\r\n summary: \"Erro\",\r\n detail: err,\r\n life: 5000\r\n });\r\n });\r\n } else {\r\n this.$toast.add({\r\n severity: \"error\",\r\n summary: \"Erro\",\r\n detail: errorMessage,\r\n life: 5000\r\n });\r\n }\r\n }\r\n )\r\n .then(() => {\r\n this.processando(false);\r\n });\r\n },\r\n atualizarServico() {\r\n this.selectedServico = null;\r\n },\r\n atualizarValoresServico(){\r\n //console.log(\"atualiza valores Serviço\");\r\n this.notaFiscal.valorDescontoIncond = 0;\r\n this.atualizarDadosTela();\r\n },\r\n atualizarDadosTela() {\r\n this.habilitarSelecaoObra = false;\r\n //console.log(\"Atualizar tela\");\r\n //console.log(this.selectedServico);\r\n let fatoGerador = null;\r\n let pagaIssqnSomenteMunicipio = null;\r\n if(this.notaFiscal && this.notaFiscal.dataFatoGerador){\r\n fatoGerador = this.notaFiscal.dataFatoGerador;\r\n }\r\n if(this.notaFiscal && this.notaFiscal.pagaIssqnSomenteMunicipio){\r\n pagaIssqnSomenteMunicipio = this.notaFiscal.pagaIssqnSomenteMunicipio;\r\n }\r\n if (\r\n this.selectedServico &&\r\n this.selectedServico.idServico &&\r\n this.selectedServico.idServico.idServicoItem\r\n ) {\r\n var idTomador = this.selectedPessoa ? this.selectedPessoa.id : \"\";\r\n this.processando(true);\r\n NotaFiscalService.validarDadosTelaNotaFiscal(\r\n this.selectedTipoTomador.key,\r\n this.selectedServico.idServico.idServicoItem,\r\n this.selectedServico.idBolSomenteRetencao,\r\n this.selectedLocalPrestacao.key,\r\n idTomador,\r\n this.notaAvulsa ? \"S\" : \"N\",\r\n fatoGerador,\r\n pagaIssqnSomenteMunicipio\r\n ).then((data) => {\r\n\r\n this.dadosTela = data.data;\r\n this.notaFiscal.idBeneficio = this.dadosTela.idBeneficio;\r\n this.servicoTributadoFora = this.dadosTela.servicoTributadoFora;\r\n this.selectedLocalPrestacao = this.locaisPrestacao.filter(\r\n (local) => local.key == this.dadosTela.localPrestacao\r\n )[0];\r\n\r\n if (this.selectedLocalPrestacao.key == \"M\") {\r\n this.selectedMunicPrestacao = this.selectedMunicOrigem;\r\n }else if(this.selectedMunicPrestacao && this.selectedMunicPrestacao == this.selectedMunicOrigem){\r\n this.selectedMunicPrestacao = null;\r\n this.municipioIncidencia = \"\";\r\n }\r\n if (this.dadosTela.habilitarObra) {\r\n this.habilitarSelecaoObra = this.dadosTela.habilitarObra;\r\n }\r\n\r\n this.tiposRecolhimento = this.dadosTela.tiposRecolhimento;\r\n this.notaFiscal.aliquota = this.dadosTela.aliquota;\r\n this.notaFiscal.valorDesconto =\r\n this.dadosTela.deducao != null\r\n ? this.dadosTela.deducao\r\n : this.notaFiscal.valorDesconto;\r\n\r\n this.selectedTipoRecolhimento = this.dadosTela.tiposRecolhimento[0];\r\n this.validarDescontoAutomatico();\r\n this.municPrestacaoSelecionado();\r\n }).then(() => {\r\n this.processando(false);\r\n });\r\n }\r\n },\r\n validarDescontoAutomatico(){\r\n if(this.dadosTela && (this.dadosTela.idBeneficio || (this.dadosTela.aplicarDeducaoAutomatica && this.dadosTela.aplicarDeducaoAutomatica === 'S')) && this.dadosTela.percBeneficioBaseCalculo && this.dadosTela.percBeneficioBaseCalculo > 0\r\n && this.notaFiscal.valorServico && this.notaFiscal.valorServico > 0){\r\n let desconto = (this.notaFiscal.valorServico * this.dadosTela.percBeneficioBaseCalculo / 100.0)\r\n this.notaFiscal.valorDesconto = desconto;\r\n }\r\n },\r\n atualizarDadosObra() {\r\n this.notaFiscal.numeroArt = null;\r\n this.notaFiscal.numeroCei = null;\r\n if (this.selectedObra && this.selectedObra.id) {\r\n this.notaFiscal.numeroArt = this.selectedObra.numeroArt;\r\n this.notaFiscal.numeroCei = this.selectedObra.numeroCei;\r\n }\r\n },\r\n\r\n reenviarEmail() {\r\n NotaFiscalService.reenviarEmail(this.currentUser.usuario.idCliente).then(\r\n (data) => {\r\n console.log(data);\r\n }\r\n );\r\n },\r\n\r\n atualizarDadosPessoaSelecionada() {\r\n \r\n if (\r\n this.selectedPessoa &&\r\n this.selectedPessoa.id\r\n ) {\r\n this.processando(true);\r\n NfsPessoaService.atualizaDadosPessoaValidacao(this.selectedPessoa.id).then(\r\n (data) => {\r\n console.log(data);\r\n this.selectedPessoa = data.data;\r\n },\r\n (error) => {\r\n if(error.response.data){\r\n this.$root.$emit(\"alert:warn\", error.response.data);\r\n }else{\r\n this.$root.$emit(\"alert:warn\", \"Não foi possÃvel selecionar o contribuinte!\");\r\n }\r\n this.selectedPessoa = null;\r\n }\r\n ) .then(() => {\r\n this.processando(false);\r\n });\r\n }\r\n\r\n this.atualizarDadosTela();\r\n },\r\n\r\n imprimirNotaFiscal() {\r\n this.processando(true);\r\n\r\n let nomeRel = this.observacaoClienteNfse\r\n ? \"NotaFiscalEletronicaObs\"\r\n : \"NotaFiscalEletronica\";\r\n \r\n ReportService.imprimir(nomeRel, [\r\n {\r\n param: \"where\",\r\n string: \" and nota_fiscal.id = '\" + this.notaFiscal.id + \"' \",\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 visualizarNotaFiscal() {\r\n this.processando(true);\r\n\r\n let nomeRel = this.observacaoClienteNfse\r\n ? \"NotaFiscalEletronicaObs\"\r\n : \"NotaFiscalEletronica\";\r\n\r\n ReportService.visualizar(\r\n nomeRel,\r\n [\r\n {\r\n param: \"where\",\r\n string: \" and nota_fiscal.id = '\" + this.notaFiscal.id + \"' \",\r\n }\r\n ],\r\n this.notaFiscal.id\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 novaNotaFiscal(limparLote = true) {\r\n this.disableCopiaNota = true;\r\n this.erros = [];\r\n this.limparDadosNotaFiscal();\r\n\r\n if (limparLote) {\r\n this.loteNotas = [];\r\n }\r\n\r\n //window.scrollTo({ top: 0, behavior: \"smooth\" });\r\n document.getElementById(\"topo\").scrollIntoView({\r\n behavior: \"smooth\",\r\n });\r\n },\r\n\r\n copiarNotaFiscal() {\r\n var numero = null;\r\n\r\n if (this.notaFiscal && this.notaFiscal.numero) {\r\n numero = this.notaFiscal.numero;\r\n }\r\n\r\n this.$root.$emit(\"notaFiscal:copiar\", numero);\r\n },\r\n\r\n cancelarNotaFiscal() {\r\n if (this.notaFiscal && this.notaFiscal.id) {\r\n const notaFiscal = {\r\n id: this.notaFiscal.id,\r\n dataGeracao: this.moment(this.notaFiscal.dataFatoGerador).format(\r\n \"YYYY-MM-DD\"\r\n ),\r\n validacao: false,\r\n cancDamPetrolina: false\r\n };\r\n\r\n this.$root.$emit(\"notaFiscal:cancelar\", notaFiscal);\r\n }\r\n },\r\n\r\n enviarEmailNotaFiscal() {\r\n if (this.notaFiscal && this.notaFiscal.id) {\r\n this.$root.$emit(\"notaFiscal:enviarEmail\", this.notaFiscal.id);\r\n }\r\n },\r\n\r\n limparDadosNotaFiscal() {\r\n this.notaFiscal = new NotaFiscal();\r\n\r\n this.notaAvulsa = this.currentUser.emiteNotaAvulsa;\r\n //console.log(\"Emite nfs Avulsa: \" + this.currentUser.emiteNotaAvulsa);\r\n\r\n this.notaFiscal.notaAvulsa = this.notaAvulsa ? \"S\" : \"N\";\r\n\r\n this.notaFiscal.idCliente = this.currentUser.usuario.idCliente;\r\n this.notaFiscal.idUsuario = this.currentUser.usuario.idUsuario;\r\n this.notaFiscal.codigoIbgeCliente = this.currentUser.configuracao.codigoIbgeCliente;\r\n this.notaFiscal.siglaIbgeCliente = this.currentUser.configuracao.siglaIbgeCliente;\r\n this.notaFiscal.idCntPrestador =\r\n this.currentUser.contribuinte.idContribuinte;\r\n this.notaFiscal.dataFatoGerador = new Date();\r\n if(this.observacaoClienteNfse){\r\n this.notaFiscal.observacao =\r\n this.currentUser.contribuinteConfig.descServicosPadrao;\r\n }\r\n if(this.currentUser.contribuinteConfig.discServicosPadrao){\r\n this.notaFiscal.discriminacaoServico =\r\n this.currentUser.contribuinteConfig.discServicosPadrao;\r\n }\r\n\r\n this.selectedTipoTomador = this.tiposTomador[0];\r\n this.selectedLocalPrestacao = this.locaisPrestacao[0];\r\n this.selectedTipoRecolhimento = this.tiposRecolhimento[0];\r\n\r\n this.selectedMunicPrestacao = null;\r\n this.selectedPessoa = \"\";\r\n this.selectedPessoaIntermediario = \"\";\r\n this.selectedAtividade = null;\r\n this.selectedServico = null;\r\n this.selectedObra = null;\r\n this.habilitarSelecaoObra = false;\r\n\r\n this.municipioIncidencia = \"\";\r\n this.searchLocalidadePorId(\r\n this.currentUser.configuracao.idCepLocalidadeCliente,\r\n true\r\n );\r\n \r\n },\r\n\r\n alterarTipoTomador() {\r\n this.selectedPessoa = null;\r\n this.selectedPessoaIntermediario = null;\r\n this.atualizarDadosTela();\r\n },\r\n\r\n alterarTipoIntermediario() {\r\n this.selectedPessoaIntermediario = null;\r\n },\r\n\r\n novoTomador() {\r\n this.$root.$emit(\"notaFiscal:novoTomador\");\r\n },\r\n\r\n editarTomador() {\r\n this.$root.$emit(\"notaFiscal:editarTomador\");\r\n },\r\n\r\n removerTomador() {\r\n this.$root.$emit(\"notaFiscal:removerTomador\", this.selectedPessoa);\r\n },\r\n\r\n novoIntermediario() {\r\n this.$root.$emit(\"notaFiscal:novoIntermediario\");\r\n },\r\n\r\n editarIntermediario() {\r\n this.$root.$emit(\"notaFiscal:editarIntermediario\");\r\n },\r\n\r\n removerIntermediario() {\r\n this.$root.$emit(\"notaFiscal:removerIntermediario\", this.selectedPessoaIntermediario);\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 if (this.notaFiscal.id != null) {\r\n this.processando(true);\r\n //console.log(\"Verifica Dam Gerado!!\" + this.notaFiscal.id);\r\n NotaFiscalAvulsaService.verificaDamGerado(this.notaFiscal.id)\r\n .then(\r\n (response) => {\r\n this.damGerado = response.data;\r\n console.log(response);\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 this.gerarDamNotaAvulsaAcao(false);\r\n },\r\n gerarDamNotaAvulsaAcao(gerarAposEmissao) {\r\n if (!this.dataVencimento) {\r\n this.$root.$emit(\"alert:warn\", \"Data de Vencimento Obrigatória!\");\r\n return;\r\n }\r\n\r\n this.processando(true);\r\n if (this.notaFiscal.id != null) {\r\n /*console.log(\r\n \"Gerar DAM nf: \" +\r\n this.notaFiscal.id +\r\n \" Vencimento: \" +\r\n this.dataVencimento\r\n );*/\r\n NotaFiscalAvulsaService.gerarDamNotaAvulsa(\r\n this.notaFiscal.id,\r\n this.dataVencimento\r\n )\r\n .then(\r\n (response) => {\r\n if(gerarAposEmissao){\r\n this.displayDevedorContumaz = false;\r\n this.displayVencBoleto = true;\r\n this.$root.$emit(\"alert:warn\", this.avisoDevedorContumaz+\" Realize a impressão do DAM\");\r\n }else{\r\n this.$root.$emit(\"alert:success\", \"DAM gerado com sucesso!\");\r\n }\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 },\r\n cancelarDamNotaAvulsa() {\r\n this.processando(true);\r\n //console.log(\"Cancelar DAM nf: \" + this.notaFiscal.id);\r\n NotaFiscalAvulsaService.cancelarDamNotaAvulsa(this.notaFiscal.id)\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() {\r\n if (this.notaFiscal.id != null) {\r\n let d = this.currentUser.configuracao.diaVencimento;\r\n let arrayOfData = this.notaFiscal.dataFatoGerador.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(\r\n dataEmissao.getFullYear(),\r\n dataEmissao.getMonth(),\r\n d\r\n );\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\r\n this.verificaDamGerado();\r\n this.displayVencBoleto = true;\r\n }\r\n },\r\n hideVencBoleto() {\r\n this.displayVencBoleto = false;\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.notaFiscal.id,\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.notaFiscal.id)\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.notaFiscal.id) {\r\n this.processando(true);\r\n NotaFiscalAvulsaService.consultarPagamentoPix(this.notaFiscal.id)\r\n .then(\r\n (response) => {\r\n console.log(response);\r\n this.hideVencBoleto();\r\n this.showPix = false;\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.notaFiscal.id,\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.notaFiscal.id,\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 aplicarImpFederais(){\r\n if(this.confImpFederais && this.confImpFederais.id && this.notaFiscal.valorServico && this.notaFiscal.valorServico > 0){\r\n this.notaFiscal.valorPis = ((this.confImpFederais.aliquotaPis * this.notaFiscal.valorServico) / 100.0);\r\n this.notaFiscal.valorIr = ((this.confImpFederais.aliquotaIr * this.notaFiscal.valorServico) / 100.0);\r\n this.notaFiscal.valorInss = ((this.confImpFederais.aliquotaInss * this.notaFiscal.valorServico) / 100.0);\r\n this.notaFiscal.valorCsll = ((this.confImpFederais.aliquotaCsll * this.notaFiscal.valorServico) / 100.0);\r\n this.notaFiscal.valorCofins = ((this.confImpFederais.aliquotaCofins * this.notaFiscal.valorServico) / 100.0);\r\n }\r\n },\r\n aplicarImpFederaisPadrao() {\r\n this.confImpFederais = JSON.parse(JSON.stringify(this.currentUser.confImpFederais));\r\n //console.log(this.confImpFederais.aliquotaPis);\r\n this.aplicarImpFederais();\r\n },\r\n limparImpFederaisPadrao() {\r\n this.confImpFederais.aliquotaPis = 0;\r\n this.confImpFederais.aliquotaIr = 0;\r\n this.confImpFederais.aliquotaInss = 0;\r\n this.confImpFederais.aliquotaCsll = 0;\r\n this.confImpFederais.aliquotaCofins = 0;\r\n this.aplicarImpFederais();\r\n },\r\n roundToTwoDecimalPlaces(number) {\r\n return Math.round(number * 100) / 100;\r\n },\r\n adicionarNotaLote() {\r\n this.processando(true);\r\n this.setarDadosNotaFiscal();\r\n\r\n NotaFiscalService.validar(this.notaFiscal, this.selectedTipoTomador.key)\r\n .then(\r\n (data) => {\r\n this.notaFiscal = data.data;\r\n this.notaFiscal.detailServico = this.selectedServico.detail;\r\n this.notaFiscal.hashLote = Date.now();\r\n this.loteNotas.push(this.notaFiscal);\r\n\r\n //Salva dados do Tomador/Intermediário antes de limpar os dados da tela\r\n var tp = this.selectedTipoTomador;\r\n var sp = this.selectedPessoa;\r\n var si = this.selectedPessoaIntermediario;\r\n\r\n this.novaNotaFiscal(false);\r\n\r\n this.selectedTipoTomador = tp;\r\n this.selectedPessoa = sp;\r\n this.selectedPessoaIntermediario = si;\r\n\r\n this.$root.$emit(\"alert:info\", \"A Nota Fiscal foi adicionada ao Lote!\");\r\n },\r\n (error) => {\r\n const erros = error.response.data;\r\n this.erros.push(...erros);\r\n\r\n if (!erros.length) {\r\n this.$root.$emit(\r\n \"alert:error\",\r\n \"Houve um problema ao adicionar a Nota Fiscal ao Lote!\"\r\n );\r\n }\r\n }\r\n )\r\n .then(() => {\r\n this.processando(false);\r\n }\r\n );\r\n },\r\n salvarLote() {\r\n this.processando(true);\r\n this.erros = [];\r\n\r\n NotaFiscalService.saveLote(this.loteNotas, this.selectedTipoTomador.key)\r\n .then(\r\n (data) => {\r\n this.loteNotas = data.data;\r\n this.loteNotas = this.loteNotas.filter(nota => !('id' in nota && nota.id !== null));\r\n\r\n this.verificarLoteVazio();\r\n this.$root.$emit(\"alert:success\", \"O Lote foi processado e as Notas Fiscais foram salvas!\");\r\n\r\n //No método de salvar \"normal\" aqui vão as validações de Nota Avulsa acumulada e Devedor Costumaz...\r\n },\r\n (error) => {\r\n // const loteNotas = error.response.data;\r\n // console.log(loteNotas);\r\n //this.erros.push(...erros);\r\n // this.$root.$emit(\"alert:error\", \"Erro ao salvar uma ou mais Notas Fiscais no Lote!\");\r\n let errorMessage = \"Houve um problema ao salvar a configuracao!\";\r\n if (error.response) {\r\n errorMessage = error.response.data;\r\n }\r\n this.$toast.add({\r\n severity: \"error\",\r\n summary: \"Erro\",\r\n detail: errorMessage,\r\n life: 5000\r\n });\r\n }\r\n )\r\n .then(() => {\r\n this.processando(false);\r\n });\r\n },\r\n removerNotaLote(hashLote) {\r\n this.loteNotas = this.loteNotas.filter(nota => nota.hashLote !== hashLote);\r\n this.$root.$emit(\"alert:info\", \"A Nota Fiscal foi removida do Lote!\");\r\n this.verificarLoteVazio();\r\n },\r\n exibirLoteNotas() {\r\n this.showLote = true;\r\n },\r\n ocultarLoteNotas() {\r\n this.showLote = false;\r\n },\r\n verificarLoteVazio(){\r\n //Se não houver mais notas na lista, fecha a tela.\r\n if (this.loteNotas.length == 0) {\r\n this.novaNotaFiscal();\r\n this.ocultarLoteNotas();\r\n }\r\n },\r\n classeErroTabelaLote(data) {\r\n return data.erros && data.erros.length > 0 ? 'red-text' : '';\r\n },\r\n exibeErroTabelaLote() {\r\n return this.loteNotas.some(nota => Array.isArray(nota.erros) && nota.erros.length > 0);\r\n }\r\n },\r\n\r\n computed: {\r\n totalServico: {\r\n get() {\r\n return (\r\n this.notaFiscal.valorServico -\r\n this.notaFiscal.valorDesconto -\r\n this.notaFiscal.valorDescontoIncond\r\n );\r\n },\r\n set(val) {\r\n this.valorTotalServico = val;\r\n },\r\n },\r\n\r\n totalIss: {\r\n get() {\r\n let aliquota = Number(this.notaFiscal.aliquota.toFixed(2));\r\n let resultado = this.roundToTwoDecimalPlaces(this.baseCalculo * aliquota / 100.0);\r\n return resultado;\r\n },\r\n set(val) {\r\n this.valorTotalIss = val;\r\n },\r\n },\r\n\r\n baseCalculo: {\r\n get() {\r\n return (\r\n Number((this.notaFiscal.valorServico -\r\n this.notaFiscal.valorDesconto -\r\n this.notaFiscal.valorDescontoIncond).toFixed(2))\r\n );\r\n },\r\n },\r\n\r\n valorLiquido: {\r\n get() {\r\n return (\r\n this.notaFiscal.valorServico -\r\n this.notaFiscal.valorPis -\r\n this.notaFiscal.valorCofins -\r\n this.notaFiscal.valorInss -\r\n this.notaFiscal.valorIr -\r\n this.notaFiscal.valorCsll -\r\n (this.selectedTipoRecolhimento.key == \"R\" ? this.totalIss : 0) -\r\n this.notaFiscal.valorDescontoIncond -\r\n this.notaFiscal.valorDescontoCond -\r\n this.notaFiscal.outrasRetencoes\r\n );\r\n },\r\n },\r\n\r\n desabilitarEdicaoCampos() {\r\n return this.notaFiscal && this.notaFiscal.id ? true : false;\r\n },\r\n\r\n desabilitarEdicaoNomeTomador() {\r\n return this.desabilitarEdicaoCampos || this.selectedTipoTomador.key == \"N\"\r\n ? true\r\n : false;\r\n },\r\n\r\n desabilitarEdicaoLocalPrestacao() {\r\n return this.desabilitarEdicaoCampos || this.selectedTipoTomador.key == \"N\"\r\n ? true\r\n : false;\r\n },\r\n\r\n desabilitarEdicaoMunicipio() {\r\n return this.desabilitarEdicaoCampos ||\r\n this.selectedLocalPrestacao.key == \"M\"\r\n ? true\r\n : false;\r\n },\r\n\r\n desabilitarEdicaoAliquota() {\r\n return !!(this.dadosTela && this.dadosTela.desabilitarEdicaoAliquota) ||\r\n this.desabilitarEdicaoCampos\r\n ? true\r\n : false;\r\n },\r\n\r\n desabilitarEdicaoDeducao() {\r\n return !!(this.dadosTela && this.dadosTela.desabilitarEdicaoDeducao) ||\r\n this.desabilitarEdicaoCampos\r\n ? true\r\n : false;\r\n },\r\n\r\n desabilitarEdicaoDescIncond() {\r\n return this.dadosTela &&\r\n !this.dadosTela.desabilitarEdicaoDescIncond &&\r\n !this.desabilitarEdicaoCampos\r\n ? false\r\n : true;\r\n },\r\n\r\n desabilitarEdicaoNotaAvulsa() {\r\n return this.desabilitarEdicaoCampos || this.notaAvulsa ? true : false;\r\n },\r\n\r\n desabilitarDadosObra() {\r\n return !(this.exibirDadosObra && this.exibirDadosObra == \"S\") ||\r\n this.desabilitarEdicaoCampos || (this.selectedObra && this.selectedObra.id)\r\n ? true\r\n : false;\r\n },\r\n\r\n exibirDadosNotaSubstituida() {\r\n return this.notaFiscal && this.notaFiscal.idNotaSubstituida\r\n ? true\r\n : false;\r\n },\r\n\r\n exibirInfoDadosObra() {\r\n return this.exibirDadosObra == \"S\" ? true : false;\r\n },\r\n\r\n exibirBotao() {\r\n const botoes = {\r\n novo: false,\r\n copiar: false,\r\n gravar: false,\r\n cancelar: false,\r\n imprimir: false,\r\n email: false,\r\n };\r\n\r\n let devedorCostumaz = this.currentUser && this.currentUser.contribuinte && this.currentUser.contribuinte.devedorCostumaz && this.currentUser.contribuinte.devedorCostumaz === 'S';\r\n\r\n botoes.novo = true;\r\n botoes.copiar = true;\r\n //console.log(this.disableCopiaNota);\r\n botoes.gravar = this.notaFiscal.id == null || this.notaFiscal.id == \"\";\r\n botoes.cancelar = this.notaFiscal.id != null && this.notaFiscal.id != \"\";\r\n botoes.imprimir =\r\n this.notaFiscal.id != null &&\r\n this.notaFiscal.id != \"\" &&\r\n (!this.notaAvulsa || this.notaFiscal.tipoRecolhimento === \"R\");\r\n botoes.email =\r\n this.notaFiscal.id != null &&\r\n this.notaFiscal.id != \"\" &&\r\n !this.notaAvulsa && \r\n !devedorCostumaz;\r\n\r\n return botoes;\r\n },\r\n\r\n exibeIntermediario() {\r\n return this.selectedPessoa && this.currentUser.configuracao.idBolIntermediario && this.currentUser.configuracao.idBolIntermediario == \"S\";\r\n },\r\n\r\n exibirSelecaoIntermediario(){\r\n return this.exibeIntermediario && this.selectedTipoIntermediario.key === \"S\";\r\n },\r\n\r\n desabilitarBotaoNovoTomador() {\r\n return this.selectedTipoTomador.key == \"N\" || this.desabilitarEdicaoCampos\r\n ? true\r\n : false;\r\n },\r\n\r\n desabilitarBotaoEdicaoTomador() {\r\n return !this.selectedPessoa || this.desabilitarEdicaoCampos\r\n ? true\r\n : false;\r\n },\r\n\r\n desabilitarBotaoRemoverTomador() {\r\n return !this.selectedPessoa || this.desabilitarEdicaoCampos\r\n ? true\r\n : false;\r\n },\r\n\r\n desabilitarBotaoNovoIntermediario() {\r\n return this.desabilitarEdicaoCampos\r\n ? true\r\n : false;\r\n },\r\n\r\n desabilitarBotaoEdicaoIntermediario() {\r\n return !this.selectedPessoaIntermediario || this.desabilitarEdicaoCampos\r\n ? true\r\n : false;\r\n },\r\n\r\n desabilitarBotaoRemoverIntermediario() {\r\n return !this.selectedPessoaIntermediario || this.desabilitarEdicaoCampos\r\n ? true\r\n : false;\r\n },\r\n\r\n dataMinimaEmissao() {\r\n var data = new Date();\r\n let dias = 0;\r\n if(this.notaAvulsa){\r\n dias = this.currentUser.configuracao.nfDiasEmissaoRetroativaNfAvulsa;\r\n }else{\r\n dias = this.currentUser.configuracao.nfDiasEmissaoRetroativa;\r\n }\r\n \r\n\r\n if (dias > 0) {\r\n data.setDate(data.getDate() - dias);\r\n }\r\n\r\n return data;\r\n },\r\n\r\n dataMaximaEmissao() {\r\n return new Date();\r\n },\r\n\r\n isEmissaoLote() {\r\n return this.$route.name && this.$route.name == 'emissaoNfseLote'\r\n },\r\n\r\n quantidadeNotasLote() {\r\n return this.loteNotas.length ? this.loteNotas.length : 0;\r\n },\r\n\r\n travarCamposEmissaoLote(){\r\n return this.isEmissaoLote && this.quantidadeNotasLote > 0\r\n }\r\n\r\n \r\n },\r\n\r\n validators: {\r\n // selectedPessoa: function(value) {\r\n // return Validator.value(value).required(\"Necessário informar um Tomador\");\r\n // },\r\n // \"notaFiscal.aliquota\": function(value) {\r\n // return Validator.value(value).greaterThan(\r\n // 0,\r\n // \"Aliquota deve ser maior que zero se o tisadasd asd asd asdas \"\r\n // );\r\n // }\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\r\n\r\n.p-inputtext {\r\n text-align: right;\r\n}\r\n\r\n.p-inputtext:disabled {\r\n color: #a6a6a6;\r\n border-color: #a6a6a6;\r\n}\r\n\r\n::deep(.red-text) {\r\n color: #dc3545 !important;\r\n font-weight: bold;\r\n}\r\n\r\n.mensagem-cancelamento {\r\n color: black;\r\n font-weight: bold;\r\n}\r\n\r\ntextarea {\r\n width: 100%;\r\n border-radius: 12px;\r\n}\r\n\r\n/* Usando :deep para penetrar nos componentes filhos do Vue */\r\n:deep(.p-calendar-w-btn .p-datepicker-trigger,\r\n.p-calendar-w-btn .p-datepicker-trigger,) {\r\n height: 40px !important;\r\n border-radius: 0px 12px 12px 0px! important;\r\n}\r\n\r\nbutton.p-datepicker-trigger.p-button.p-component.p-button-icon-only {\r\n height: 40px !important;\r\n border-radius: 0px 12px 12px 0px! important;\r\n}\r\n\r\n:deep(.p-calendar-w-btn .p-datepicker-trigger:enabled:hover) {\r\n background: #116fbf !important;\r\n color: #ffffff !important;\r\n border-color: #116fbf !important;\r\n}\r\n\r\n/* Estilos base para todos os botões */\r\n:deep(.p-button) {\r\n height: 40px;\r\n margin-right: 0.5rem;\r\n transition: background-color 0.2s, color 0.2s, border-color 0.2s;\r\n}\r\n\r\n/* Estilo especÃfico para botões primários */\r\n// :deep(.p-button.p-button-primary) {\r\n// &:enabled:hover {\r\n// background: #116fbf;\r\n// color: #ffffff;\r\n// border-color: #116fbf;\r\n// }\r\n// }\r\n\r\n/* Estilo especÃfico para botões success */\r\n:deep(.p-button.p-button-success) {\r\n &:enabled:hover {\r\n background: #0d9f6e;\r\n color: #ffffff;\r\n border-color: #0d9f6e;\r\n }\r\n}\r\n\r\n/* Ajuste para o espaçamento dos Ãcones */\r\n// :deep(.p-button-icon-left) {\r\n// }\r\n\r\n/* Garantir que o label fique alinhado corretamente */\r\n:deep(.p-button-label) {\r\n font-weight: 500;\r\n}\r\n\r\n/* Estilos especÃficos para o botão do calendário */\r\n:deep(.p-datepicker-trigger.p-button.p-component),\r\n:deep(button.p-datepicker-trigger.p-button.p-component.p-button-icon-only) {\r\n height: 40px !important;\r\n border-radius: 0px 12px 12px 0px !important;\r\n margin: 0 !important;\r\n background: #007ad9 !important;\r\n border: 1px solid #007ad9 !important;\r\n color: #ffffff !important;\r\n\r\n &:enabled:hover {\r\n background: #116fbf !important;\r\n border-color: #116fbf !important;\r\n }\r\n\r\n .p-button-icon {\r\n font-size: 1rem !important;\r\n }\r\n}\r\n\r\n/* Ajuste para o container do calendário */\r\n:deep(.p-calendar-w-btn) {\r\n .p-inputtext {\r\n border-radius: 12px 0 0 12px !important;\r\n }\r\n}\r\n\r\n::deep(.p-fluid .p-inputgroup .p-button.p-button-icon-only){\r\n margin-right: 0.5rem;\r\n}\r\n\r\n/* Ajuste para o espaçamento dos botões no inputgroup */\r\n:deep(.p-inputgroup) {\r\n .p-button {\r\n margin-right: 0; /* Remove margem entre os botões dentro do inputgroup */\r\n }\r\n}\r\n\r\n</style>\r\n\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!./EmissaoNfse.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!./EmissaoNfse.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EmissaoNfse.vue?vue&type=template&id=e736c9ae&scoped=true&\"\nimport script from \"./EmissaoNfse.vue?vue&type=script&lang=js&\"\nexport * from \"./EmissaoNfse.vue?vue&type=script&lang=js&\"\nimport style0 from \"./EmissaoNfse.vue?vue&type=style&index=0&id=e736c9ae&lang=scss&scoped=true&\"\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 \"e736c9ae\",\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/obras/';\r\n\r\nclass ObrasService{\r\n\tconstructor(){\r\n\t\tLoginService.currentUser.subscribe(data => {\r\n\t\t\tthis.headers = {\r\n\t\t\t\t'Content-Type':'application/json',\r\n\t\t\t\t'authorization':'Bearer ' + (data ? data.token:'')\r\n\t\t\t};\r\n\t\t});\r\n\t}\r\n\r\n\tfindObrasByFiltro(idContribuinte, filtro){\r\n\t\treturn axios.get(API_URL+'allObras?idContribuinte='+idContribuinte+'&filtro='+filtro, {headers: this.headers});\r\n\t}\r\n\r\n\tfindTipoObraByFiltro(idCliente, filtro){\r\n\t\treturn axios.get(API_URL+'allTipoObra?idCliente='+idCliente+'&filtro='+filtro, {headers: this.headers}).then(response => (this.data = response.data));\r\n\t}\r\n\r\n\tfindTipoDescontoByFiltro(idCliente, filtro){\r\n\t\treturn axios.get(API_URL+'allTipoDesconto?idCliente='+idCliente+'&filtro='+filtro, {headers: this.headers}).then(response => (this.data = response.data));\r\n\t}\r\n\r\n\tgetObras(id){\r\n\t\treturn axios.get(API_URL+id, {headers: this.headers});\r\n\t}\r\n\r\n\tsaveObras(obras){\r\n\t\treturn axios.post(API_URL, JSON.stringify(obras), {headers: this.headers});\r\n\t}\r\n\r\n\tremoveObras(id){\r\n\t\treturn axios.delete(API_URL + id ,{headers: this.headers});\r\n\t}\r\n\r\n\tfindAllByContirbuinte(filtro, idContribuinte) {\r\n return axios.get(API_URL + 'allByContirbuinte?idContribuinte='+idContribuinte+'&filtro='+filtro, {headers: this.headers}).then(response => (this.data = response.data.elements));\r\n }\r\n}\r\n\r\nexport default new ObrasService();","const percent = {\r\n decimal: \",\",\r\n thousands: \".\",\r\n prefix: \"% \",\r\n suffix: \"\",\r\n precision: 2,\r\n masked: false\r\n}\r\n \r\nexport default percent\r\n","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();","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"],"sourceRoot":""}