{"version":3,"sources":["webpack:///./src/views/DamSubstituicao.vue?e7e5","webpack:///src/views/DamSubstituicao.vue","webpack:///./src/views/DamSubstituicao.vue?b498","webpack:///./src/views/DamSubstituicao.vue?218c","webpack:///./src/models/tributario/NotaDeclaracaoEdicao.js","webpack:///./src/conf/config.money.js","webpack:///./src/views/DamSubstituicao.vue?bed1","webpack:///./src/services/tributario/declaracao.substituicao.service.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_m","staticStyle","_v","directives","name","rawName","value","expression","attrs","on","$event","type","indexOf","_k","keyCode","key","pesquisar","model","callback","$$v","dataIni","dataFim","loading","showNotaDam","_s","numeroNfsePesquisa","_e","filtro","slot","declaracaoSelecionada","numero","dataFormatada","listNotasDeclaradas","scopedSlots","_u","fn","slotProps","notaTomador","data","tipo","removerNotasDeclaracao","removerNotaDeclaracao","ref","listDeclaracao","rowClass","filtersModel","proxy","exportCSVDt1","carregarDetalhamento","impressaoDeclaracao","id","pago","dataEncerramento","dataVigenciaFinal","semMovimento","idBolDebito","impressaoBoletos","carregarRetificacao","cancelarDeclaracao","class","lineClass","numeroAno","$set","situacaoDam","valorPagoFormatado","displayDetalhe","displayRetificar","selecionarTodos","checkTodos","listNotas","filters","exportCSVDt2","impressaoNota","isNotaFiscal","downloadXml","adicionarNotasDeclaracao","editarDam","hideRetificar","hideDetalhe","gerarDAM","style","width","showSelectComp","overflow","listAnos","filtroAno","listMeses","filtroMes","fecharSelectCompetencia","displayDecSemMov","declararSemMovimento","hideDecSemMov","displayVencBoleto","keyVencBoleto","dataVencimento","tipoEmissaoBoleto","imprimirBoleto","imprimirBoletoPix","hideVencBoleto","displayBoletos","listBoletos","pagamentoEfetuado","carregarVencimentoBoleto","habilitarPix","escolhaPagamentoPix","consultarPagamentoPix","hideBoletos","showEscolhaPix","criarPagamentoPix","idDamAgrupamento","tipoDam","showPix","optionsPix","pixGerado","valorFormatado","displayItensDecBeneficio","listItensDeclaracao","_b","money","getTotalIss","valor","abatimento","aliquota","encerrarDeclaracaoBeneficio","hideItensDecbeneficio","showPesqNota","pesquisarDamPorNota","showTransfValores","numeroDeclaracaoDestino","transferirCalculos","staticRenderFns","components","QRCanvas","keyVenc","competencia","inativo","currentUser","competenciaLimite","showImpressaoBoletos","idDeclaracaoSelecionada","idDecLancamentoSelecionado","cellSize","notaDeclaracaoEdicao","created","subtractMonths","Date","setMonth","getMonth","configuracao","idBolUtilizarPix","usuario","idCliente","carregarAnos","carregarMeses","carregarCompetenciaAtual","methods","status","rolarPagina","document","getElementById","scrollIntoView","behavior","dateCopy","months","alterarCompetencia","processando","$root","$emit","show","carregarItensBeneficio","i","ano","push","mes","filter","forEach","selecionado","checked","gerarDAMNotas","confirmaDeclararSemMovimento","console","log","response","listNotasSelecionadas","openTransferirCalculoes","declaracao","encerrarDeclaracao","splice","sort","a","b","parseFloat","notaDec","item","index","object","newList","NotaDeclaracaoEdicao","notasFiscaisDam","notasFiscaisSemDam","ret","tipoEmissao","d","novaData","val","valueString","replace","formatted_string","user_str","pad","pad_pos","slice","length","substring","$refs","dt2","exportCSV","imprimirExcel","imprimirConsultaTipo","component","decimal","thousands","prefix","suffix","precision","masked","API_URL","DeclaracaoSubstituicao","LoginService","subscribe","headers","token","idContribuinte","axios","get","idDeclaracao","idUsuario","notasFiscais","post","JSON","stringify","vencimento","idCalculoParcelado","idDeclaracaoOrigem","motivoRetencaoIndevida","nota","currentUserValue","contribuinte"],"mappings":"gJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,mBAAmB,CAACF,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACN,EAAIO,GAAG,GAAGH,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,QAAQ,CAACI,YAAY,CAAC,cAAc,OAAO,YAAY,SAAS,CAACR,EAAIS,GAAG,sBA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y,2CAGlJlN,EAASC,EAASS,EAAQH,GAE3C,OADAjC,KAAK8O,eAAiBJ,OAAakB,iBAAiBC,aAAaf,eAC1DC,IAAMC,IAAIR,EAAU,gDAAkDxO,KAAK8O,eAC5E,YAAcpN,EACd,YAAcC,EACd,WAAaS,EACb,WAAaH,EACf,CAAE2M,QAAS5O,KAAK4O,Y,+CAGC3D,EAAKE,EAAK/I,EAAQH,GAEvC,OADAjC,KAAK8O,eAAiBJ,OAAakB,iBAAiBC,aAAaf,eAC1DC,IAAMC,IAAIR,EAAU,oDAAsDxO,KAAK8O,eAChF,QAAU7D,EACV,QAAUE,EACV,WAAa/I,EACb,WAAaH,EACf,CAAE2M,QAAS5O,KAAK4O,c,KAIb,WAAIH","file":"js/dam.substituicao.8dee92b5.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container-fluid\"},[_c('div',[_c('div',{staticClass:\"card\"},[_vm._m(0),_c('div',{staticClass:\"card-body\"},[_c('label',{staticStyle:{\"font-weight\":\"bold\",\"font-size\":\"12px\"}},[_vm._v(\"Filtro Pesquisa:\")]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-4 col-lg-2 mb-3\"},[_c('span',{staticClass:\"p-fluid\"},[_c('Calendar',{directives:[{name:\"maska\",rawName:\"v-maska\",value:('##/##/####'),expression:\"'##/##/####'\"}],attrs:{\"id\":\"dataIni\",\"name\":\"dataFim\",\"showIcon\":true,\"dateFormat\":\"dd/mm/yy\",\"placeholder\":\"Data Inicial\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.pesquisar($event)}},model:{value:(_vm.dataIni),callback:function ($$v) {_vm.dataIni=$$v},expression:\"dataIni\"}})],1)]),_c('div',{staticClass:\"col-md-4 col-lg-2 mb-3\"},[_c('span',{staticClass:\"p-fluid\"},[_c('Calendar',{directives:[{name:\"maska\",rawName:\"v-maska\",value:('##/##/####'),expression:\"'##/##/####'\"}],attrs:{\"id\":\"dataFim\",\"name\":\"dataFim\",\"showIcon\":true,\"dateFormat\":\"dd/mm/yy\",\"placeholder\":\"Data Final\"},model:{value:(_vm.dataFim),callback:function ($$v) {_vm.dataFim=$$v},expression:\"dataFim\"}})],1)]),_c('div',{staticClass:\"col-md-4 col-lg-1\"},[_c('Button',{staticClass:\"p-button-primary mr-2\",attrs:{\"alt\":\"Pesquisar\",\"label\":\"Pesquisar\",\"type\":\"button\",\"icon\":\"pi pi-search\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.pesquisar()}}})],1),_c('div',{staticClass:\"col-md-4 col-lg-2 mb-3\"},[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-success\",attrs:{\"alt\":\"Pesquisar Por Nfse\",\"label\":\"Pesquisar Por Nfse\",\"type\":\"button\",\"icon\":\"pi pi-search\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.showNotaDam()}}}),(this.numeroNfsePesquisa)?_c('label',{staticStyle:{\"font-size\":\"12px\"}},[_vm._v(\"Filtro Nfse Número:\\n              \"+_vm._s(this.numeroNfsePesquisa))]):_vm._e(),(this.filtro)?_c('label',{staticStyle:{\"font-size\":\"12px\"}},[_vm._v(\"Filtro CPF/CNPJ/Nome Prestador:\\n              \"+_vm._s(this.filtro))]):_vm._e()],1)]),_c('hr'),(_vm.displayDetalhe)?[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"container-fluid\"},[_c('div',{staticClass:\"row\"},[_c('Card',{staticStyle:{\"width\":\"100%\"}},[_c('template',{slot:\"title\"},[_vm._v(\"Detalhamento DAM de Número\\n                    \"+_vm._s(this.declaracaoSelecionada.numero))]),_c('template',{slot:\"content\"},[_vm._v(\"\\n                    Data: \"+_vm._s(this.declaracaoSelecionada.dataFormatada)+\"\\n                    \"),_c('br')])],2)],1)]),_vm._m(1),_c('div',{staticClass:\"container-fluid\",staticStyle:{\"padding-top\":\"5px\"}},[_c('div',{staticClass:\"row\"},[_c('DataTable',{key:1,staticStyle:{\"min-width\":\"100%\"},attrs:{\"id\":\"teste\",\"value\":_vm.listNotasDeclaradas,\"paginator\":true,\"rows\":10,\"autoLayout\":true}},[_c('Column',{attrs:{\"headerStyle\":\"width: 10%\",\"field\":\"tipo\",\"header\":\"Tipo\",\"bodyStyle\":\"text-align:right\"},scopedSlots:_vm._u([{key:\"body\",fn:function(slotProps){return [_vm._v(\"\\n                      \"+_vm._s((_vm.notaTomador && (slotProps.data.tipo === 'DAPS' || slotProps.data.tipo === 'DAPS/Prestador' ||\n                          slotProps.data.tipo === 'DAPS/Tomador') ? 'Nota Tomador' : slotProps.data.tipo))+\"\\n                    \")]}}],null,false,1695248100)}),_c('Column',{attrs:{\"headerStyle\":\"width: 10%\",\"field\":\"numero\",\"header\":\"Numero\",\"bodyStyle\":\"text-align:right\"}}),_c('Column',{attrs:{\"headerStyle\":\"width: 8em\",\"field\":\"dataEmissaoFormatada\",\"header\":\"Emissão\",\"bodyStyle\":\"text-align:center\"}}),_c('Column',{attrs:{\"headerStyle\":\"width: 8em\",\"field\":\"dataGeracaoFormatada\",\"header\":\"Geração\",\"bodyStyle\":\"text-align:center\"}}),_c('Column',{attrs:{\"headerStyle\":\"width: 10%\",\"field\":\"valorFormatado\",\"header\":\"Valor\",\"bodyStyle\":\"text-align:right\"}}),_c('Column',{attrs:{\"headerStyle\":\"width: 8%\",\"field\":\"aliquota\",\"header\":\"Alíquota\",\"bodyStyle\":\"text-align:right\"}}),_c('Column',{attrs:{\"headerStyle\":\"width: 8%\",\"field\":\"valorDeducaoFormatado\",\"header\":\"Desconto\",\"bodyStyle\":\"text-align:right\"}}),_c('Column',{attrs:{\"headerStyle\":\"width: 10%\",\"field\":\"valorIssFormatado\",\"header\":\"Valor ISS\",\"bodyStyle\":\"text-align:right\"}}),_c('Column',{attrs:{\"field\":\"prestador\",\"header\":\"Prestador\"}})],1)],1)])])]:(_vm.displayRetificar)?[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"container-fluid\"},[_c('div',{staticClass:\"row\"},[_c('Card',{staticStyle:{\"width\":\"100%\"}},[_c('template',{slot:\"title\"},[_vm._v(\"DAM de Número\\n                    \"+_vm._s(this.declaracaoSelecionada.numero)+\" Selecionado para\\n                    edição.\")]),_c('template',{slot:\"content\"},[_vm._v(\"\\n                    Data: \"+_vm._s(this.declaracaoSelecionada.dataFormatada)+\"\\n                    \"),_c('br')])],2)],1)]),_vm._m(2),_c('div',{staticClass:\"container-fluid\"},[_c('div',{staticClass:\"row\"},[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-danger\",staticStyle:{\"margin-right\":\"0.5em\"},attrs:{\"type\":\"button\",\"title\":\"Remover Todos\",\"icon\":\"pi pi-times\",\"disabled\":_vm.loading,\"label\":\"Remover Todos\"},on:{\"click\":function($event){return _vm.removerNotasDeclaracao()}}})],1)]),_c('div',{staticClass:\"container-fluid\",staticStyle:{\"padding-top\":\"5px\"}},[_c('div',{staticClass:\"row\"},[_c('DataTable',{key:2,staticStyle:{\"min-width\":\"100%\"},attrs:{\"id\":\"teste\",\"value\":_vm.listNotasDeclaradas,\"paginator\":true,\"rows\":10,\"autoLayout\":true}},[_c('Column',{attrs:{\"headerStyle\":\"width: 4em\",\"header\":\"\",\"bodyStyle\":\"text-align: center\"},scopedSlots:_vm._u([{key:\"body\",fn:function(slotProps){return [_c('Button',{staticClass:\"p-button-primary mr-2 p-button-danger\",staticStyle:{\"margin-right\":\"0.5em\"},attrs:{\"type\":\"button\",\"title\":\"Remover\",\"icon\":\"pi pi-times\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.removerNotaDeclaracao(slotProps.data)}}})]}}])}),_c('Column',{attrs:{\"headerStyle\":\"width: 10%\",\"field\":\"tipo\",\"header\":\"Tipo\",\"bodyStyle\":\"text-align:right\"},scopedSlots:_vm._u([{key:\"body\",fn:function(slotProps){return [_vm._v(\"\\n                      \"+_vm._s((_vm.notaTomador && (slotProps.data.tipo === 'DAPS' || slotProps.data.tipo === 'DAPS/Prestador' ||\n                          slotProps.data.tipo === 'DAPS/Tomador') ? 'Nota Tomador' : slotProps.data.tipo))+\"\\n                    \")]}}])}),_c('Column',{attrs:{\"headerStyle\":\"width: 10%\",\"field\":\"numero\",\"header\":\"Numero\",\"bodyStyle\":\"text-align:right\"}}),_c('Column',{attrs:{\"headerStyle\":\"width: 8em\",\"field\":\"dataEmissaoFormatada\",\"header\":\"Emissão\",\"bodyStyle\":\"text-align:center\"}}),_c('Column',{attrs:{\"headerStyle\":\"width: 8em\",\"field\":\"dataGeracaoFormatada\",\"header\":\"Geração\",\"bodyStyle\":\"text-align:center\"}}),_c('Column',{attrs:{\"headerStyle\":\"width: 12%\",\"field\":\"valorFormatado\",\"header\":\"Valor\",\"bodyStyle\":\"text-align:right\"}}),_c('Column',{attrs:{\"field\":\"prestador\",\"header\":\"Prestador\"}})],1)],1)])])]:[_c('div',{staticClass:\"row pr-3 pl-3\"},[_vm._m(3),_c('DataTable',{key:0,ref:\"dt1\",staticClass:\"p-datatable-responsive\",staticStyle:{\"min-width\":\"100%\"},attrs:{\"value\":_vm.listDeclaracao,\"paginator\":true,\"rows\":10,\"autoLayout\":true,\"rowClass\":_vm.rowClass,\"filters\":_vm.filtersModel},scopedSlots:_vm._u([{key:\"empty\",fn:function(){return [_vm._v(\"\\n                Nenhum DAM encontrado!\\n              \")]},proxy:true},{key:\"footer\",fn:function(){return [_c('div',{staticStyle:{\"text-align\":\"right\"}},[_c('Button',{attrs:{\"icon\":\"pi pi-external-link\",\"label\":\"Exportar para CSV\"},on:{\"click\":function($event){return _vm.exportCSVDt1($event)}}})],1)]},proxy:true}])},[_c('Column',{attrs:{\"headerStyle\":\"width: 1%\"},scopedSlots:_vm._u([{key:\"body\",fn:function(slotProps){return [_c('div',{staticClass:\"dropdown\"},[_c('Button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\",\"id\":\"dropdownMenuButton\",\"icon\":\"pi pi-angle-down\",\"data-toggle\":\"dropdown\",\"title\":\"Opções\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}}),_c('div',{staticClass:\"dropdown-menu\",attrs:{\"aria-labelledby\":\"dropdownMenuButton\"}},[_c('button',{staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.carregarDetalhamento(slotProps.data)}}},[_c('span',{staticClass:\"pi pi-file mr-2\",staticStyle:{\"padding-right\":\"2vw\"}}),_vm._v(\"Detalhamento DAM\\n                      \")]),_c('button',{staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.impressaoDeclaracao(slotProps.data.id, slotProps.data.pago)}}},[_c('span',{staticClass:\"pi pi-print mr-2\",staticStyle:{\"padding-right\":\"2vw\"}}),_vm._v(\"Impressão Detalhamento\\n                      \")]),(slotProps.data.dataEncerramento && !slotProps.data.dataVigenciaFinal && slotProps.data.semMovimento != 'Sim' && slotProps.data.idBolDebito === 'S')?_c('button',{staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.impressaoBoletos(\n                          slotProps.data.id,\n                          slotProps.data.pago\n                        )}}},[_c('span',{staticClass:\"pi pi-print mr-2\",staticStyle:{\"padding-right\":\"2vw\"}}),_vm._v(\"Impressão Boleto(s)\\n                      \")]):_vm._e(),(!slotProps.data.dataEncerramento &&\n                        !slotProps.data.dataVigenciaFinal\n                      )?_c('div',{staticClass:\"dropdown-divider\"}):_vm._e(),(slotProps.data.dataEncerramento &&\n                          !slotProps.data.dataVigenciaFinal &&\n                          slotProps.data.pago != 'Sim' &&\n                          (slotProps.data.idBolDebito === 'S' || slotProps.data.idBolDebito === 'M')\n                        )?_c('button',{staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.carregarRetificacao(slotProps.data)}}},[_c('span',{staticClass:\"pi pi-replay mr-2\",staticStyle:{\"padding-right\":\"2vw\"}}),_vm._v(\"Editar DAM\\n                      \")]):_vm._e(),(!slotProps.data.dataEncerramento &&\n                          !slotProps.data.dataVigenciaFinal\n                        )?_c('button',{staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.cancelarDeclaracao(slotProps.data.id)}}},[_c('span',{staticClass:\"pi pi-times mr-2\",staticStyle:{\"padding-right\":\"2vw\"}}),_vm._v(\"Cancelar\\n                      \")]):_vm._e()])],1)]}}])}),_c('Column',{attrs:{\"headerStyle\":\"width: 3%\",\"field\":\"numeroAno\",\"header\":\"Número DAM\"},scopedSlots:_vm._u([{key:\"body\",fn:function(slotProps){return [_c('div',{class:_vm.lineClass(slotProps.data)},[_vm._v(\"\\n                    \"+_vm._s(slotProps.data.numeroAno)+\"\\n                  \")])]}},{key:\"filter\",fn:function(){return [_c('InputText',{staticClass:\"p-column-filter\",attrs:{\"type\":\"text\",\"placeholder\":\"Iniciando com\"},model:{value:(_vm.filtersModel['numeroAno']),callback:function ($$v) {_vm.$set(_vm.filtersModel, 'numeroAno', $$v)},expression:\"filtersModel['numeroAno']\"}})]},proxy:true}])}),_c('Column',{attrs:{\"headerStyle\":\"width: 3%\",\"field\":\"dataFormatada\",\"header\":\"Data\"},scopedSlots:_vm._u([{key:\"body\",fn:function(slotProps){return [_c('div',{class:_vm.lineClass(slotProps.data)},[_vm._v(\"\\n                    \"+_vm._s(slotProps.data.dataFormatada)+\"\\n                  \")])]}},{key:\"filter\",fn:function(){return [_c('InputText',{staticClass:\"p-column-filter\",attrs:{\"type\":\"text\",\"placeholder\":\"Iniciando com\"},model:{value:(_vm.filtersModel['dataFormatada']),callback:function ($$v) {_vm.$set(_vm.filtersModel, 'dataFormatada', $$v)},expression:\"filtersModel['dataFormatada']\"}})]},proxy:true}])}),_c('Column',{attrs:{\"headerStyle\":\"width: 10%\",\"field\":\"situacaoDam\",\"header\":\"Status\"},scopedSlots:_vm._u([{key:\"body\",fn:function(slotProps){return [_c('div',{class:_vm.lineClass(slotProps.data)},[_vm._v(\"\\n                    \"+_vm._s(slotProps.data.situacaoDam)+\"\\n                  \")])]}},{key:\"filter\",fn:function(){return [_c('InputText',{staticClass:\"p-column-filter\",attrs:{\"type\":\"text\",\"placeholder\":\"Iniciando com\"},model:{value:(_vm.filtersModel['situacaoDam']),callback:function ($$v) {_vm.$set(_vm.filtersModel, 'situacaoDam', $$v)},expression:\"filtersModel['situacaoDam']\"}})]},proxy:true}])}),_c('Column',{attrs:{\"headerStyle\":\"width: 3%\",\"field\":\"pago\",\"header\":\"Pago?\"},scopedSlots:_vm._u([{key:\"body\",fn:function(slotProps){return [_c('div',{class:_vm.lineClass(slotProps.data)},[_vm._v(\"\\n                    \"+_vm._s(slotProps.data.pago)+\"\\n                  \")])]}},{key:\"filter\",fn:function(){return [_c('InputText',{staticClass:\"p-column-filter\",attrs:{\"type\":\"text\",\"placeholder\":\"Iniciando com\"},model:{value:(_vm.filtersModel['pago']),callback:function ($$v) {_vm.$set(_vm.filtersModel, 'pago', $$v)},expression:\"filtersModel['pago']\"}})]},proxy:true}])}),_c('Column',{attrs:{\"headerStyle\":\"width: 5%\",\"field\":\"valorPago\",\"header\":\"Valor Pago\"},scopedSlots:_vm._u([{key:\"body\",fn:function(slotProps){return [_c('div',{class:_vm.lineClass(slotProps.data)},[_vm._v(\"\\n                    \"+_vm._s(slotProps.data.valorPagoFormatado)+\"\\n                  \")])]}},{key:\"filter\",fn:function(){return [_c('InputText',{staticClass:\"p-column-filter\",attrs:{\"type\":\"text\",\"placeholder\":\"Iniciando com\"},model:{value:(_vm.filtersModel['valorPago']),callback:function ($$v) {_vm.$set(_vm.filtersModel, 'valorPago', $$v)},expression:\"filtersModel['valorPago']\"}})]},proxy:true}])})],1)],1)],(!_vm.displayDetalhe)?[_c('h4',{staticClass:\"panel-title\"},[(!_vm.displayRetificar)?_c('span',{staticClass:\"title\"},[_vm._v(\"Notas Fiscais em Aberto para Emissão do DAM.\")]):_vm._e(),(_vm.displayRetificar)?_c('span',{staticClass:\"title\"},[_vm._v(\"Adicione abaixo novas notas ao DAM.\")]):_vm._e()]),_c('hr'),_c('Checkbox',{attrs:{\"binary\":true},on:{\"change\":function($event){return _vm.selecionarTodos()}},model:{value:(_vm.checkTodos),callback:function ($$v) {_vm.checkTodos=$$v},expression:\"checkTodos\"}}),_c('span',{staticStyle:{\"padding-left\":\"5px\",\"font-weight\":\"bold\",\"font-size\":\"12px\"}},[_vm._v(\"Selecionar Todos\")]),_c('div',{staticStyle:{\"padding-top\":\"10px\"}},[_c('DataTable',{ref:\"dt2\",staticStyle:{\"min-width\":\"100%\"},attrs:{\"value\":_vm.listNotas,\"filters\":_vm.filters,\"paginator\":true,\"rows\":10,\"autoLayout\":true,\"loading\":_vm.loading},on:{\"update:filters\":function($event){_vm.filters=$event}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('div',{staticStyle:{\"text-align\":\"center\"}},[_c('InputText',{staticStyle:{\"width\":\"50%\",\"min-width\":\"300px\"},attrs:{\"placeholder\":\"Filtrar\"},model:{value:(_vm.filters['global']),callback:function ($$v) {_vm.$set(_vm.filters, 'global', $$v)},expression:\"filters['global']\"}}),_c('i',{staticClass:\"pi pi-search\",staticStyle:{\"margin\":\"4px 4px 0px 0px\"}})],1)]},proxy:true},{key:\"footer\",fn:function(){return [_c('div',{staticStyle:{\"text-align\":\"right\"}},[_c('Button',{attrs:{\"icon\":\"pi pi-external-link\",\"label\":\"Exportar para CSV\"},on:{\"click\":function($event){return _vm.exportCSVDt2($event)}}})],1)]},proxy:true}],null,false,1201676905)},[_c('Column',{attrs:{\"headerStyle\":\"width: 3%\",\"field\":\"selecionado\",\"header\":\"\"},scopedSlots:_vm._u([{key:\"body\",fn:function(slotProps){return [_c('Checkbox',{attrs:{\"binary\":true},model:{value:(slotProps.data.selecionado),callback:function ($$v) {_vm.$set(slotProps.data, \"selecionado\", $$v)},expression:\"slotProps.data.selecionado\"}})]}}],null,false,2365428420)}),_c('Column',{attrs:{\"headerStyle\":\"width: 1%\"},scopedSlots:_vm._u([{key:\"body\",fn:function(slotProps){return [_c('div',{staticClass:\"dropdown\"},[_c('Button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\",\"id\":\"dropdownMenuButton\",\"icon\":\"pi pi-angle-down\",\"data-toggle\":\"dropdown\",\"title\":\"Opções\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}}),_c('div',{staticClass:\"dropdown-menu\",attrs:{\"aria-labelledby\":\"dropdownMenuButton\"}},[_c('button',{staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.impressaoNota(slotProps.data.id)}}},[_c('span',{staticClass:\"pi pi-print mr-2\"}),_vm._v(\"Imprimir\\n                      \")]),(_vm.isNotaFiscal(slotProps.data.id))?_c('button',{staticClass:\"dropdown-item\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.downloadXml(slotProps.data.id)}}},[_c('span',{staticClass:\"pi pi-download mr-2\"}),_vm._v(\"Exportar\\n                      \")]):_vm._e()])],1)]}}],null,false,4171183336)}),_c('Column',{attrs:{\"headerStyle\":\"width: 10%\",\"field\":\"tipo\",\"header\":\"Tipo\",\"bodyStyle\":\"text-align:right\"},scopedSlots:_vm._u([{key:\"body\",fn:function(slotProps){return [_vm._v(\"\\n                  \"+_vm._s((_vm.notaTomador && (slotProps.data.tipo === 'DAPS' || slotProps.data.tipo === 'DAPS/Prestador' ||\n                      slotProps.data.tipo\n                      === 'DAPS/Tomador') ? 'Nota Tomador' : slotProps.data.tipo))+\"\\n                \")]}}],null,false,588782158)}),_c('Column',{attrs:{\"headerStyle\":\"width: 5%\",\"field\":\"numero\",\"header\":\"Número\",\"bodyStyle\":\"text-align:right\"}}),_c('Column',{attrs:{\"headerStyle\":\"width: 8em\",\"field\":\"competenciaFormatada\",\"header\":\"Competência\",\"bodyStyle\":\"text-align:center\"}}),_c('Column',{attrs:{\"headerStyle\":\"width: 8em\",\"field\":\"dataGeracaoFormatada\",\"header\":\"Geração\",\"bodyStyle\":\"text-align:center\"}}),_c('Column',{attrs:{\"headerStyle\":\"width: 10em\",\"field\":\"valorFormatado\",\"header\":\"Valor\",\"bodyStyle\":\"text-align:right\"}}),_c('Column',{attrs:{\"headerStyle\":\"width: 10em\",\"field\":\"valorDeducaoFormatado\",\"header\":\"Dedução\",\"bodyStyle\":\"text-align:right\"}}),_c('Column',{attrs:{\"headerStyle\":\"width: 8em\",\"field\":\"aliquota\",\"header\":\"Alíquota\",\"bodyStyle\":\"text-align:right\"}}),_c('Column',{attrs:{\"headerStyle\":\"width: 10em\",\"field\":\"valorIssFormatado\",\"header\":\"Valor Iss\",\"bodyStyle\":\"text-align:right\"}}),_c('Column',{attrs:{\"field\":\"prestador\",\"header\":\"Prestador\"}}),_c('Column',{attrs:{\"headerStyle\":\"width: 6em\",\"field\":\"situacao\",\"header\":\"Situação\",\"bodyStyle\":\"text-align:center\"}})],1)],1)]:_vm._e(),_c('hr'),((!_vm.displayRetificar && !_vm.displayDetalhe))?[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-success\",attrs:{\"alt\":\"Gerar DAM\",\"label\":\"Gerar DAM\",\"type\":\"button\",\"icon\":\"pi pi-check\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.gerarDAM()}}})]:(_vm.displayRetificar)?[_c('Button',{staticClass:\"p-button-primary mr-2\",attrs:{\"label\":\"Adicionar\",\"type\":\"button\",\"icon\":\"pi pi-check\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.adicionarNotasDeclaracao()}}}),_c('hr'),_c('Button',{staticClass:\"p-button-primary mr-2 p-button-success\",attrs:{\"label\":\"Editar DAM\",\"type\":\"button\",\"icon\":\"pi pi-replay\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.editarDam()}}}),_c('Button',{staticClass:\"p-button-primary mr-2 p-button-danger\",attrs:{\"label\":\"Cancelar\",\"type\":\"button\",\"icon\":\"pi pi-times\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.hideRetificar()}}})]:(_vm.displayDetalhe)?[_c('Button',{staticClass:\"p-button-primary mr-2 p-button-danger\",attrs:{\"label\":\"Voltar\",\"type\":\"button\",\"icon\":\"pi pi-arrow-left\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.hideDetalhe()}}})]:_vm._e()],2)])]),_c('Dialog',{style:({ width: '30vw' }),attrs:{\"header\":\"Competência\",\"visible\":_vm.showSelectComp,\"contentStyle\":{ overflow: 'visible' },\"modal\":true},on:{\"update:visible\":function($event){_vm.showSelectComp=$event}}},[_c('h1',{staticClass:\"titulo-header\"},[_vm._v(\"\\n      Competência\\n      \"),_c('Button',{staticClass:\"p-button-rounded p-button-text\",attrs:{\"id\":\"icon-close-modals\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.showSelectComp = false}}})],1),_c('br'),_c('span',{staticClass:\"p-fluid\"},[_c('Dropdown',{attrs:{\"id\":\"filtroAno\",\"options\":_vm.listAnos,\"optionLabel\":\"name\",\"placeholder\":\"Selecione um Ano\"},model:{value:(_vm.filtroAno),callback:function ($$v) {_vm.filtroAno=$$v},expression:\"filtroAno\"}})],1),_c('span',{staticClass:\"p-fluid\"},[_c('Dropdown',{attrs:{\"id\":\"filtroMes\",\"options\":_vm.listMeses,\"optionLabel\":\"name\",\"placeholder\":\"Selecione um Mês\"},model:{value:(_vm.filtroMes),callback:function ($$v) {_vm.filtroMes=$$v},expression:\"filtroMes\"}})],1),_c('hr'),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',[_c('Button',{staticClass:\"mr-2\",attrs:{\"label\":\"Selecionar\",\"icon\":\"pi pi-check\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.pesquisar()}}}),_c('Button',{staticClass:\"p-button-danger\",attrs:{\"label\":\"Fechar\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){return _vm.fecharSelectCompetencia()}}})],1)])])]),_c('Dialog',{style:({ width: '30vw' }),attrs:{\"header\":\"Aviso\",\"visible\":_vm.displayDecSemMov,\"modal\":true},on:{\"update:visible\":function($event){_vm.displayDecSemMov=$event}}},[_vm._v(\"\\n    Confirma realizar o DAM sem Movimento para Competência?\\n    \"),_c('hr'),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',[_c('Button',{staticClass:\"mr-2\",attrs:{\"label\":\"Sim\",\"icon\":\"pi pi-check\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.declararSemMovimento()}}}),_c('Button',{staticClass:\"p-button-secondary\",attrs:{\"label\":\"Não\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){return _vm.hideDecSemMov()}}})],1)])])]),_c('Dialog',{style:({ width: '30vw' }),attrs:{\"header\":\"Imprimir Boleto\",\"visible\":_vm.displayVencBoleto,\"contentStyle\":{ overflow: 'visible' },\"modal\":true},on:{\"update:visible\":function($event){_vm.displayVencBoleto=$event}}},[_c('h1',{staticClass:\"titulo-header\"},[_vm._v(\"\\n      Imprimir Boleto\\n      \"),_c('Button',{staticClass:\"p-button-rounded p-button-text\",attrs:{\"id\":\"icon-close-modals\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.displayVencBoleto = false}}})],1),_c('br'),_c('div',{staticClass:\"col-md-8 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('hr'),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',[(_vm.tipoEmissaoBoleto === 'N')?_c('Button',{staticClass:\"mr-2\",attrs:{\"label\":\"Sim\",\"icon\":\"pi pi-check\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.imprimirBoleto()}}}):_vm._e(),(_vm.tipoEmissaoBoleto === 'P')?_c('Button',{staticClass:\"mr-2\",attrs:{\"label\":\"Sim\",\"icon\":\"pi pi-check\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.imprimirBoletoPix()}}}):_vm._e(),_c('Button',{staticClass:\"p-button-secondary\",attrs:{\"label\":\"Não\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){return _vm.hideVencBoleto()}}})],1)])])]),_c('Dialog',{style:({ width: '35vw' }),attrs:{\"header\":\"Boleto\",\"visible\":_vm.displayBoletos,\"modal\":true},on:{\"update:visible\":function($event){_vm.displayBoletos=$event}}},[_c('h1',{staticClass:\"titulo-header\"},[_vm._v(\"\\n      Boleto\\n      \"),_c('Button',{staticClass:\"p-button-rounded p-button-text\",attrs:{\"id\":\"icon-close-modals\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.displayBoletos = false}}})],1),_c('br'),_c('DataTable',{staticStyle:{\"min-width\":\"100%\"},attrs:{\"value\":_vm.listBoletos,\"paginator\":true,\"rows\":10,\"autoLayout\":true}},[_c('Column',{attrs:{\"headerStyle\":\"width: 2.5em\",\"header\":\"\",\"bodyStyle\":\"text-align: center\"},scopedSlots:_vm._u([{key:\"body\",fn:function(slotProps){return [(slotProps.data.pagamentoEfetuado == 'N')?_c('Button',{staticClass:\"p-button-primary mr-2\",staticStyle:{\"margin-right\":\"0.5em\"},attrs:{\"type\":\"button\",\"title\":\"Imprimir Boleto\",\"icon\":\"pi pi-print\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.carregarVencimentoBoleto(\n                slotProps.data.id,\n                slotProps.data.tipo,\n                slotProps.data.dataVencimento,\n                'N'\n              )}}}):_vm._e(),(slotProps.data.pagamentoEfetuado == 'N' && _vm.habilitarPix)?_c('Button',{staticClass:\"p-button-outlined mr-2\",staticStyle:{\"margin-right\":\"0.5em\"},attrs:{\"type\":\"button\",\"title\":\"Pagar com PIX\",\"icon\":\"pi pix-icon\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.escolhaPagamentoPix(\n                slotProps.data.id,\n                slotProps.data.tipo,\n                slotProps.data.dataVencimento\n              )}}}):_vm._e(),(slotProps.data.pagamentoEfetuado == 'N' && _vm.habilitarPix)?_c('Button',{staticStyle:{\"margin-right\":\"0.5em\"},attrs:{\"title\":\"Consultar Pagamento PIX\",\"icon\":\"pi pi-search\"},on:{\"click\":function($event){return _vm.consultarPagamentoPix(slotProps.data.id)}}}):_vm._e()]}}])}),_c('Column',{attrs:{\"headerStyle\":\"width: 10%\",\"field\":\"vencimentoFormatado\",\"header\":\"Vencimento\",\"bodyStyle\":\"text-align:right\"}}),_c('Column',{attrs:{\"headerStyle\":\"width: 8em\",\"field\":\"valorFormatado\",\"header\":\"Valor\",\"bodyStyle\":\"text-align:center\"}})],1),_c('hr'),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',[_c('Button',{staticClass:\"p-button-danger\",attrs:{\"label\":\"Fechar\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){return _vm.hideBoletos()}}})],1)])])],1),_c('Dialog',{style:({ width: '30vw' }),attrs:{\"visible\":_vm.showEscolhaPix,\"contentStyle\":{ overflow: 'visible' },\"modal\":true},on:{\"update:visible\":function($event){_vm.showEscolhaPix=$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}])},[_c('div',{staticClass:\"col-md-8 mb-8\"},[_c('Button',{staticStyle:{\"margin-right\":\"0.5em\"},attrs:{\"label\":\"QR Code\",\"icon\":\"pi pi-bars\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.criarPagamentoPix()}}}),_c('Button',{attrs:{\"label\":\"Boleto\",\"icon\":\"pi pi-print\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.carregarVencimentoBoleto(\n          _vm.idDamAgrupamento,\n          _vm.tipoDam,\n          _vm.dataVencimento,\n          'P'\n        )}}})],1),_c('hr'),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',[_c('Button',{staticClass:\"p-button-danger\",attrs:{\"label\":\"Fechar\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.showEscolhaPix = false}}})],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}])},[_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))])])])])]),_c('hr'),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',[_c('Button',{staticClass:\"p-button-danger\",attrs:{\"label\":\"Fechar\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.showPix = false}}})],1)])])]),_c('Dialog',{style:({ width: '40vw' }),attrs:{\"header\":\"Aplicar desconto em Valores Declarados\",\"visible\":_vm.displayItensDecBeneficio,\"modal\":true},on:{\"update:visible\":function($event){_vm.displayItensDecBeneficio=$event}}},[_c('h1',{staticClass:\"titulo-header\"},[_vm._v(\"\\n      Aplicar desconto em Valores Declarados\\n      \"),_c('Button',{staticClass:\"p-button-rounded p-button-text\",attrs:{\"id\":\"icon-close-modals\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.displayItensDecBeneficio = false}}})],1),_c('br'),_c('DataTable',{staticStyle:{\"min-width\":\"100%\"},attrs:{\"value\":_vm.listItensDeclaracao,\"paginator\":true,\"rows\":10,\"autoLayout\":true}},[_c('Column',{attrs:{\"headerStyle\":\"width: 8em\",\"field\":\"valorFormatado\",\"header\":\"Valor\",\"bodyStyle\":\"text-align:center\"}}),_c('Column',{attrs:{\"headerStyle\":\"width: 8em\",\"field\":\"aliquotaFormatado\",\"header\":\"Alíquota\",\"bodyStyle\":\"text-align:center\"}}),_c('Column',{attrs:{\"headerStyle\":\"width: 8em\",\"field\":\"abatimentoFormatado\",\"header\":\"Desconto\",\"bodyStyle\":\"text-align:center\"},scopedSlots:_vm._u([{key:\"body\",fn:function(slotProps){return [_c('money',_vm._b({staticClass:\"p-inputtext input-right\",attrs:{\"id\":\"abatimento\",\"name\":\"abatimento\"},model:{value:(slotProps.data.abatimento),callback:function ($$v) {_vm.$set(slotProps.data, \"abatimento\", $$v)},expression:\"slotProps.data.abatimento\"}},'money',_vm.money,false))]}}])}),_c('Column',{attrs:{\"headerStyle\":\"width: 8em\",\"field\":\"valorIssFormatado\",\"header\":\"ISS\",\"bodyStyle\":\"text-align:center\"},scopedSlots:_vm._u([{key:\"body\",fn:function(slotProps){return [_vm._v(\"\\n          \"+_vm._s(_vm.getTotalIss(\n              slotProps.data.valor,\n              slotProps.data.abatimento,\n              slotProps.data.aliquota\n            ))+\"\\n        \")]}}])})],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:{\"label\":\"Emitir DAM\",\"type\":\"button\",\"icon\":\"pi pi-check\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.encerrarDeclaracaoBeneficio()}}}),_c('Button',{staticClass:\"p-button-danger\",attrs:{\"label\":\"Fechar\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){return _vm.hideItensDecbeneficio()}}})],1)])])],1),_c('Dialog',{style:({ width: '30vw' }),attrs:{\"header\":\"Pesquisar DAM por Nfse\",\"visible\":_vm.showPesqNota,\"contentStyle\":{ overflow: 'visible' },\"modal\":true},on:{\"update:visible\":function($event){_vm.showPesqNota=$event}}},[_c('h1',{staticClass:\"titulo-header\"},[_vm._v(\"\\n      Pesquisar DAM por Nfse\\n      \"),_c('Button',{staticClass:\"p-button-rounded p-button-text\",attrs:{\"id\":\"icon-close-modals\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.showPesqNota = false}}})],1),_c('br'),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"placeholder\":\"Número Nfse\"},model:{value:(_vm.numeroNfsePesquisa),callback:function ($$v) {_vm.numeroNfsePesquisa=$$v},expression:\"numeroNfsePesquisa\"}})],1),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"placeholder\":\"CPF/CNPJ/Nome Prestador\"},model:{value:(_vm.filtro),callback:function ($$v) {_vm.filtro=$$v},expression:\"filtro\"}})],1),_c('hr'),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',[_c('Button',{staticClass:\"mr-2\",attrs:{\"label\":\"Pesquisar\",\"icon\":\"pi pi-check\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.pesquisarDamPorNota()}}}),_c('Button',{staticClass:\"p-button-danger\",attrs:{\"label\":\"Fechar\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.showPesqNota = false}}})],1)])])]),(_vm.declaracaoSelecionada)?_c('Dialog',{style:({ width: '30vw' }),attrs:{\"header\":\"Transferência de Valores\",\"visible\":_vm.showTransfValores,\"modal\":true},on:{\"update:visible\":function($event){_vm.showTransfValores=$event}}},[_c('h1',{staticClass:\"titulo-header\"},[_vm._v(\"\\n      Transferência de Valores\\n      \"),_c('Button',{staticClass:\"p-button-rounded p-button-text\",attrs:{\"id\":\"icon-close-modals\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.showTransfValores = false}}})],1),_c('br'),_vm._v(\"\\n    DAM Selecionado: \"+_vm._s(_vm.declaracaoSelecionada.numero)),_c('br'),_c('br'),_vm._v(\"\\n    ATENÇÃO! Essa opção deve ser utilizada para transferir os calculos/valores do dam selecionado para outro,\\n    nos casos onde há pagamento em dams canceladas/retificados e pagos.\\n    caso confirme a operação informe abaixo o numero do dam de destino\\n    \"),_c('hr'),_c('span',{staticClass:\"p-fluid\"},[_c('InputText',{attrs:{\"placeholder\":\"Número DAM Destino\"},model:{value:(_vm.numeroDeclaracaoDestino),callback:function ($$v) {_vm.numeroDeclaracaoDestino=$$v},expression:\"numeroDeclaracaoDestino\"}})],1),_c('hr'),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',[_c('Button',{staticClass:\"mr-2\",attrs:{\"label\":\"Transferir\",\"icon\":\"pi pi-check\"},on:{\"click\":function($event){return _vm.transferirCalculos()}}}),_c('Button',{staticClass:\"p-button-secondary\",attrs:{\"label\":\"Fechar\",\"icon\":\"pi pi-times\"},on:{\"click\":function($event){_vm.showTransfValores = false}}})],1)])])]):_vm._e()],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card-header\",attrs:{\"id\":\"topo\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col col-xs-2\"},[_c('h4',{staticClass:\"panel-title\"},[_c('span',{staticClass:\"title\"},[_vm._v(\"Gerenciamento das Emissões de DAM de\\n                Serviço Tomados para o Município.\")]),_c('br'),_c('span',{staticClass:\"navigation\"},[_vm._v(\"Substituição Tributária > Emissão de DAM\")])])])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container-fluid\"},[_c('div',{staticClass:\"row\"},[_c('h4',{staticClass:\"panel-title\",staticStyle:{\"margin-top\":\"1px\"}},[_c('span',{staticClass:\"title\"},[_vm._v(\"Notas Fiscais relacionadas ao DAM.\")])])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container-fluid\"},[_c('div',{staticClass:\"row\"},[_c('h4',{staticClass:\"panel-title\",staticStyle:{\"margin-top\":\"1px\"}},[_c('span',{staticClass:\"title\"},[_vm._v(\"Notas Fiscais relacionadas ao DAM.\")])])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('h4',{staticClass:\"panel-title\"},[_c('span',{staticClass:\"title\"},[_vm._v(\"DAMS Gerados no período.\")])])}]\n\nexport { render, staticRenderFns }","<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\">Gerenciamento das Emissões de DAM de\r\n                  Serviço Tomados para o Município.</span>\r\n                <br />\r\n                <span class=\"navigation\">Substituição Tributária > Emissão de DAM</span>\r\n              </h4>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"card-body\">\r\n          <label style=\"font-weight: bold; font-size: 12px\">Filtro Pesquisa:</label>\r\n          <div class=\"row\">\r\n            <div class=\"col-md-4 col-lg-2 mb-3\">\r\n              <span class=\"p-fluid\">\r\n                <Calendar id=\"dataIni\" name=\"dataFim\" v-model=\"dataIni\" :showIcon=\"true\" dateFormat=\"dd/mm/yy\"\r\n                  placeholder=\"Data Inicial\" @keyup.enter=\"pesquisar\" v-maska=\"'##/##/####'\" />\r\n              </span>\r\n            </div>\r\n            <div class=\"col-md-4 col-lg-2 mb-3\">\r\n              <span class=\"p-fluid\">\r\n                <Calendar id=\"dataFim\" name=\"dataFim\" v-model=\"dataFim\" :showIcon=\"true\" dateFormat=\"dd/mm/yy\"\r\n                  placeholder=\"Data Final\" v-maska=\"'##/##/####'\" />\r\n              </span>\r\n            </div>\r\n            <div class=\"col-md-4 col-lg-1\">\r\n              <Button @click=\"pesquisar()\" alt=\"Pesquisar\" label=\"Pesquisar\" type=\"button\" class=\"p-button-primary mr-2\"\r\n                icon=\"pi pi-search\" :disabled=\"loading\" />\r\n            </div>\r\n            <div class=\"col-md-4 col-lg-2 mb-3\">\r\n              <Button @click=\"showNotaDam()\" alt=\"Pesquisar Por Nfse\" label=\"Pesquisar Por Nfse\" type=\"button\"\r\n                class=\"p-button-primary mr-2 p-button-success\" icon=\"pi pi-search\" :disabled=\"loading\" />\r\n              <label style=\"font-size: 12px\" v-if=\"this.numeroNfsePesquisa\">Filtro Nfse Número:\r\n                {{ this.numeroNfsePesquisa }}</label>\r\n              <label style=\"font-size: 12px\" v-if=\"this.filtro\">Filtro CPF/CNPJ/Nome Prestador:\r\n                {{ this.filtro }}</label>\r\n            </div>\r\n          </div>\r\n\r\n          <hr />\r\n          <template v-if=\"displayDetalhe\">\r\n            <div class=\"row\">\r\n              <div class=\"container-fluid\">\r\n                <div class=\"row\">\r\n                  <Card style=\"width: 100%\">\r\n                    <template slot=\"title\">Detalhamento DAM de Número\r\n                      {{ this.declaracaoSelecionada.numero }}</template>\r\n                    <template slot=\"content\">\r\n                      Data: {{ this.declaracaoSelecionada.dataFormatada }}\r\n                      <br />\r\n                    </template>\r\n                  </Card>\r\n                </div>\r\n              </div>\r\n              <div class=\"container-fluid\">\r\n                <div class=\"row\">\r\n                  <h4 class=\"panel-title\" style=\"margin-top: 1px\">\r\n                    <span class=\"title\">Notas Fiscais relacionadas ao DAM.</span>\r\n                  </h4>\r\n                </div>\r\n              </div>\r\n              <div class=\"container-fluid\" style=\"padding-top: 5px\">\r\n                <div class=\"row\">\r\n                  <DataTable id=\"teste\" :value=\"listNotasDeclaradas\" :paginator=\"true\" :rows=\"10\" :key=\"1\"\r\n                    :autoLayout=\"true\" style=\"min-width: 100%\">\r\n                    <Column headerStyle=\"width: 10%\" field=\"tipo\" header=\"Tipo\" bodyStyle=\"text-align:right\">\r\n                      <template #body=\"slotProps\">\r\n                        {{\r\n                          (notaTomador && (slotProps.data.tipo === 'DAPS' || slotProps.data.tipo === 'DAPS/Prestador' ||\r\n                            slotProps.data.tipo === 'DAPS/Tomador') ? 'Nota Tomador' : slotProps.data.tipo)\r\n                        }}\r\n                      </template>\r\n                    </Column>\r\n                    <Column headerStyle=\"width: 10%\" field=\"numero\" header=\"Numero\" bodyStyle=\"text-align:right\">\r\n                    </Column>\r\n                    <Column headerStyle=\"width: 8em\" field=\"dataEmissaoFormatada\" header=\"Emissão\"\r\n                      bodyStyle=\"text-align:center\">\r\n                    </Column>\r\n                    <Column headerStyle=\"width: 8em\" field=\"dataGeracaoFormatada\" header=\"Geração\"\r\n                      bodyStyle=\"text-align:center\">\r\n                    </Column>\r\n                    <Column headerStyle=\"width: 10%\" field=\"valorFormatado\" header=\"Valor\" bodyStyle=\"text-align:right\">\r\n                    </Column>\r\n                    <Column headerStyle=\"width: 8%\" field=\"aliquota\" header=\"Alíquota\" bodyStyle=\"text-align:right\">\r\n                    </Column>\r\n                    <Column headerStyle=\"width: 8%\" field=\"valorDeducaoFormatado\" header=\"Desconto\"\r\n                      bodyStyle=\"text-align:right\">\r\n                    </Column>\r\n                    <Column headerStyle=\"width: 10%\" field=\"valorIssFormatado\" header=\"Valor ISS\"\r\n                      bodyStyle=\"text-align:right\">\r\n                    </Column>\r\n                    <Column field=\"prestador\" header=\"Prestador\"></Column>\r\n                  </DataTable>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </template>\r\n          <template v-else-if=\"displayRetificar\">\r\n            <div class=\"row\">\r\n              <div class=\"container-fluid\">\r\n                <div class=\"row\">\r\n                  <Card style=\"width: 100%\">\r\n                    <template slot=\"title\">DAM de Número\r\n                      {{ this.declaracaoSelecionada.numero }} Selecionado para\r\n                      edição.</template>\r\n                    <template slot=\"content\">\r\n                      Data: {{ this.declaracaoSelecionada.dataFormatada }}\r\n                      <br />\r\n                    </template>\r\n                  </Card>\r\n                </div>\r\n              </div>\r\n              <div class=\"container-fluid\">\r\n                <div class=\"row\">\r\n                  <h4 class=\"panel-title\" style=\"margin-top: 1px\">\r\n                    <span class=\"title\">Notas Fiscais relacionadas ao DAM.</span>\r\n                  </h4>\r\n                </div>\r\n              </div>\r\n              <div class=\"container-fluid\">\r\n                <div class=\"row\">\r\n                  <Button type=\"button\" title=\"Remover Todos\" class=\"p-button-primary mr-2 p-button-danger\"\r\n                    icon=\"pi pi-times\" style=\"margin-right: 0.5em\" @click=\"removerNotasDeclaracao()\" :disabled=\"loading\"\r\n                    label=\"Remover Todos\"></Button>\r\n                </div>\r\n              </div>\r\n              <div class=\"container-fluid\" style=\"padding-top: 5px\">\r\n                <div class=\"row\">\r\n                  <DataTable id=\"teste\" :value=\"listNotasDeclaradas\" :paginator=\"true\" :rows=\"10\" :key=\"2\"\r\n                    :autoLayout=\"true\" style=\"min-width: 100%\">\r\n                    <Column headerStyle=\"width: 4em\" header bodyStyle=\"text-align: center\">\r\n                      <template #body=\"slotProps\">\r\n                        <Button type=\"button\" title=\"Remover\" class=\"p-button-primary mr-2 p-button-danger\"\r\n                          icon=\"pi pi-times\" style=\"margin-right: 0.5em\" @click=\"removerNotaDeclaracao(slotProps.data)\"\r\n                          :disabled=\"loading\"></Button>\r\n                      </template>\r\n                    </Column>\r\n                    <Column headerStyle=\"width: 10%\" field=\"tipo\" header=\"Tipo\" bodyStyle=\"text-align:right\">\r\n                      <template #body=\"slotProps\">\r\n                        {{\r\n                          (notaTomador && (slotProps.data.tipo === 'DAPS' || slotProps.data.tipo === 'DAPS/Prestador' ||\r\n                            slotProps.data.tipo === 'DAPS/Tomador') ? 'Nota Tomador' : slotProps.data.tipo)\r\n                        }}\r\n                      </template>\r\n                    </Column>\r\n                    <Column headerStyle=\"width: 10%\" field=\"numero\" header=\"Numero\" bodyStyle=\"text-align:right\">\r\n                    </Column>\r\n                    <Column headerStyle=\"width: 8em\" field=\"dataEmissaoFormatada\" header=\"Emissão\"\r\n                      bodyStyle=\"text-align:center\">\r\n                    </Column>\r\n                    <Column headerStyle=\"width: 8em\" field=\"dataGeracaoFormatada\" header=\"Geração\"\r\n                      bodyStyle=\"text-align:center\">\r\n                    </Column>\r\n                    <Column headerStyle=\"width: 12%\" field=\"valorFormatado\" header=\"Valor\" bodyStyle=\"text-align:right\">\r\n                    </Column>\r\n                    <Column field=\"prestador\" header=\"Prestador\"></Column>\r\n                  </DataTable>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </template>\r\n          <template v-else>\r\n            <div class=\"row pr-3 pl-3\">\r\n              <h4 class=\"panel-title\">\r\n                <span class=\"title\">DAMS Gerados no período.</span>\r\n              </h4>\r\n              <DataTable :value=\"listDeclaracao\" :paginator=\"true\" :rows=\"10\" class=\"p-datatable-responsive\" :key=\"0\"\r\n                :autoLayout=\"true\" style=\"min-width: 100%\" :rowClass=\"rowClass\" ref=\"dt1\" :filters=\"filtersModel\">\r\n                <template #empty>\r\n                  Nenhum DAM encontrado!\r\n                </template>\r\n                <Column headerStyle=\"width: 1%\">\r\n                  <template #body=\"slotProps\">\r\n                    <div class=\"dropdown\">\r\n                      <Button class=\"btn btn-primary\" type=\"button\" id=\"dropdownMenuButton\" icon=\"pi pi-angle-down\"\r\n                        data-toggle=\"dropdown\" title=\"Opções\" aria-haspopup=\"true\" aria-expanded=\"false\"></Button>\r\n                      <div class=\"dropdown-menu\" aria-labelledby=\"dropdownMenuButton\">\r\n                        <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading\"\r\n                          @click=\"carregarDetalhamento(slotProps.data)\">\r\n                          <span class=\"pi pi-file mr-2\" style=\"padding-right: 2vw\"></span>Detalhamento DAM\r\n                        </button>\r\n                        <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading\"\r\n                          @click=\"impressaoDeclaracao(slotProps.data.id, slotProps.data.pago)\">\r\n                          <span class=\"pi pi-print mr-2\" style=\"padding-right: 2vw\"></span>Impressão Detalhamento\r\n                        </button>\r\n                        <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading\" @click=\"\r\n                          impressaoBoletos(\r\n                            slotProps.data.id,\r\n                            slotProps.data.pago\r\n                          )\"\r\n                          v-if=\"slotProps.data.dataEncerramento && !slotProps.data.dataVigenciaFinal && slotProps.data.semMovimento != 'Sim' && slotProps.data.idBolDebito === 'S'\">\r\n                          <span class=\"pi pi-print mr-2\" style=\"padding-right: 2vw\"></span>Impressão Boleto(s)\r\n                        </button>\r\n                        <div class=\"dropdown-divider\" v-if=\"!slotProps.data.dataEncerramento &&\r\n                          !slotProps.data.dataVigenciaFinal\r\n                        \" />\r\n                        <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading\"\r\n                          @click=\"carregarRetificacao(slotProps.data)\" v-if=\"slotProps.data.dataEncerramento &&\r\n                            !slotProps.data.dataVigenciaFinal &&\r\n                            slotProps.data.pago != 'Sim' &&\r\n                            (slotProps.data.idBolDebito === 'S' || slotProps.data.idBolDebito === 'M')\r\n                          \">\r\n                          <span class=\"pi pi-replay mr-2\" style=\"padding-right: 2vw\"></span>Editar DAM\r\n                        </button>\r\n                        <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading\"\r\n                          @click=\"cancelarDeclaracao(slotProps.data.id)\" v-if=\"!slotProps.data.dataEncerramento &&\r\n                            !slotProps.data.dataVigenciaFinal\r\n                          \">\r\n                          <span class=\"pi pi-times mr-2\" style=\"padding-right: 2vw\"></span>Cancelar\r\n                        </button>\r\n                      </div>\r\n                    </div>\r\n                  </template>\r\n                </Column>\r\n                <Column headerStyle=\"width: 3%\" field=\"numeroAno\" header=\"Número DAM\">\r\n                  <template #body=\"slotProps\">\r\n                    <div :class=\"lineClass(slotProps.data)\">\r\n                      {{ slotProps.data.numeroAno }}\r\n                    </div>\r\n                  </template>\r\n                  <template #filter>\r\n                    <InputText type=\"text\" v-model=\"filtersModel['numeroAno']\" class=\"p-column-filter\"\r\n                      placeholder=\"Iniciando com\" />\r\n                  </template>\r\n                </Column>\r\n                <Column headerStyle=\"width: 3%\" field=\"dataFormatada\" header=\"Data\">\r\n                  <template #body=\"slotProps\">\r\n                    <div :class=\"lineClass(slotProps.data)\">\r\n                      {{ slotProps.data.dataFormatada }}\r\n                    </div>\r\n                  </template>\r\n                  <template #filter>\r\n                    <InputText type=\"text\" v-model=\"filtersModel['dataFormatada']\" class=\"p-column-filter\"\r\n                      placeholder=\"Iniciando com\" />\r\n                  </template>\r\n                </Column>\r\n                <Column headerStyle=\"width: 10%\" field=\"situacaoDam\" header=\"Status\">\r\n                  <template #body=\"slotProps\">\r\n                    <div :class=\"lineClass(slotProps.data)\">\r\n                      {{ slotProps.data.situacaoDam }}\r\n                    </div>\r\n                  </template>\r\n                  <template #filter>\r\n                    <InputText type=\"text\" v-model=\"filtersModel['situacaoDam']\" class=\"p-column-filter\"\r\n                      placeholder=\"Iniciando com\" />\r\n                  </template>\r\n                </Column>\r\n                <Column headerStyle=\"width: 3%\" field=\"pago\" header=\"Pago?\">\r\n                  <template #body=\"slotProps\">\r\n                    <div :class=\"lineClass(slotProps.data)\">\r\n                      {{ slotProps.data.pago }}\r\n                    </div>\r\n                  </template>\r\n                  <template #filter>\r\n                    <InputText type=\"text\" v-model=\"filtersModel['pago']\" class=\"p-column-filter\"\r\n                      placeholder=\"Iniciando com\" />\r\n                  </template>\r\n                </Column>\r\n                <Column headerStyle=\"width: 5%\" field=\"valorPago\" header=\"Valor Pago\">\r\n                  <template #body=\"slotProps\">\r\n                    <div :class=\"lineClass(slotProps.data)\">\r\n                      {{ slotProps.data.valorPagoFormatado }}\r\n                    </div>\r\n                  </template>\r\n                  <template #filter>\r\n                    <InputText type=\"text\" v-model=\"filtersModel['valorPago']\" class=\"p-column-filter\"\r\n                      placeholder=\"Iniciando com\" />\r\n                  </template>\r\n                </Column>\r\n                <template #footer>\r\n                  <div style=\"text-align: right\">\r\n                    <Button icon=\"pi pi-external-link\" label=\"Exportar para CSV\" @click=\"exportCSVDt1($event)\" />\r\n                  </div>\r\n                </template>\r\n              </DataTable>\r\n            </div>\r\n          </template>\r\n          <template v-if=\"!displayDetalhe\">\r\n            <h4 class=\"panel-title\">\r\n              <span class=\"title\" v-if=\"!displayRetificar\">Notas Fiscais em Aberto para Emissão do DAM.</span>\r\n              <span class=\"title\" v-if=\"displayRetificar\">Adicione abaixo novas notas ao DAM.</span>\r\n            </h4>\r\n            <hr />\r\n            <Checkbox v-model=\"checkTodos\" :binary=\"true\" @change=\"selecionarTodos()\" />\r\n            <span style=\"padding-left: 5px; font-weight: bold; font-size: 12px\">Selecionar Todos</span>\r\n            <div style=\"padding-top: 10px\">\r\n              <DataTable :value=\"listNotas\" :filters.sync=\"filters\" :paginator=\"true\" :rows=\"10\" :autoLayout=\"true\"\r\n                style=\"min-width: 100%\" ref=\"dt2\" :loading=\"loading\">\r\n                <template #header>\r\n                  <div style=\"text-align: center\">\r\n                    <InputText v-model=\"filters['global']\" placeholder=\"Filtrar\" style=\"width: 50%; min-width: 300px\" />\r\n                    <i class=\"pi pi-search\" style=\"margin: 4px 4px 0px 0px\"></i>\r\n                  </div>\r\n                </template>\r\n                <Column headerStyle=\"width: 3%\" field=\"selecionado\" header>\r\n                  <template #body=\"slotProps\">\r\n                    <Checkbox v-model=\"slotProps.data.selecionado\" :binary=\"true\" />\r\n                  </template>\r\n                </Column>\r\n                <Column headerStyle=\"width: 1%\">\r\n                  <template #body=\"slotProps\">\r\n                    <div class=\"dropdown\">\r\n                      <Button class=\"btn btn-primary\" type=\"button\" id=\"dropdownMenuButton\" icon=\"pi pi-angle-down\"\r\n                        data-toggle=\"dropdown\" title=\"Opções\" aria-haspopup=\"true\" aria-expanded=\"false\"></Button>\r\n                      <div class=\"dropdown-menu\" aria-labelledby=\"dropdownMenuButton\">\r\n                        <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading\"\r\n                          @click=\"impressaoNota(slotProps.data.id)\">\r\n                          <span class=\"pi pi-print mr-2\"></span>Imprimir\r\n                        </button>\r\n                        <button class=\"dropdown-item\" type=\"button\" :disabled=\"loading\"\r\n                          v-if=\"isNotaFiscal(slotProps.data.id)\" @click=\"downloadXml(slotProps.data.id)\">\r\n                          <span class=\"pi pi-download mr-2\"></span>Exportar\r\n                        </button>\r\n                      </div>\r\n                    </div>\r\n                  </template>\r\n                </Column>\r\n                <Column headerStyle=\"width: 10%\" field=\"tipo\" header=\"Tipo\" bodyStyle=\"text-align:right\">\r\n                  <template #body=\"slotProps\">\r\n                    {{\r\n                      (notaTomador && (slotProps.data.tipo === 'DAPS' || slotProps.data.tipo === 'DAPS/Prestador' ||\r\n                        slotProps.data.tipo\r\n                        === 'DAPS/Tomador') ? 'Nota Tomador' : slotProps.data.tipo)\r\n                    }}\r\n                  </template>\r\n                </Column>\r\n                <Column headerStyle=\"width: 5%\" field=\"numero\" header=\"Número\" bodyStyle=\"text-align:right\"></Column>\r\n                <Column headerStyle=\"width: 8em\" field=\"competenciaFormatada\" header=\"Competência\"\r\n                  bodyStyle=\"text-align:center\">\r\n                </Column>\r\n                <Column headerStyle=\"width: 8em\" field=\"dataGeracaoFormatada\" header=\"Geração\"\r\n                  bodyStyle=\"text-align:center\"></Column>\r\n                <Column headerStyle=\"width: 10em\" field=\"valorFormatado\" header=\"Valor\" bodyStyle=\"text-align:right\">\r\n                </Column>\r\n                <Column headerStyle=\"width: 10em\" field=\"valorDeducaoFormatado\" header=\"Dedução\"\r\n                  bodyStyle=\"text-align:right\"></Column>\r\n                <Column headerStyle=\"width: 8em\" field=\"aliquota\" header=\"Alíquota\" bodyStyle=\"text-align:right\">\r\n                </Column>\r\n                <Column headerStyle=\"width: 10em\" field=\"valorIssFormatado\" header=\"Valor Iss\"\r\n                  bodyStyle=\"text-align:right\">\r\n                </Column>\r\n                <Column field=\"prestador\" header=\"Prestador\"></Column>\r\n                <Column headerStyle=\"width: 6em\" field=\"situacao\" header=\"Situação\" bodyStyle=\"text-align:center\">\r\n                </Column>\r\n                <template #footer>\r\n                  <div style=\"text-align: right\">\r\n                    <Button icon=\"pi pi-external-link\" label=\"Exportar para CSV\" @click=\"exportCSVDt2($event)\" />\r\n                  </div>\r\n                </template>\r\n              </DataTable>\r\n            </div>\r\n          </template>\r\n          <hr />\r\n          <template v-if=\"(!displayRetificar && !displayDetalhe)\">\r\n            <Button @click=\"gerarDAM()\" alt=\"Gerar DAM\" label=\"Gerar DAM\" type=\"button\"\r\n              class=\"p-button-primary mr-2 p-button-success\" icon=\"pi pi-check\" :disabled=\"loading\" />\r\n          </template>\r\n          <template v-else-if=\"displayRetificar\">\r\n            <Button @click=\"adicionarNotasDeclaracao()\" label=\"Adicionar\" type=\"button\" class=\"p-button-primary mr-2\"\r\n              icon=\"pi pi-check\" :disabled=\"loading\" />\r\n            <hr />\r\n            <Button @click=\"editarDam()\" label=\"Editar DAM\" type=\"button\" class=\"p-button-primary mr-2 p-button-success\"\r\n              icon=\"pi pi-replay\" :disabled=\"loading\" />\r\n            <Button @click=\"hideRetificar()\" label=\"Cancelar\" type=\"button\"\r\n              class=\"p-button-primary mr-2 p-button-danger\" icon=\"pi pi-times\" :disabled=\"loading\" />\r\n          </template>\r\n          <template v-else-if=\"displayDetalhe\">\r\n            <Button @click=\"hideDetalhe()\" label=\"Voltar\" type=\"button\" class=\"p-button-primary mr-2 p-button-danger\"\r\n              icon=\"pi pi-arrow-left\" :disabled=\"loading\" />\r\n          </template>\r\n        </div>\r\n      </div>\r\n    </div>\r\n    <Dialog header=\"Competência\" :visible.sync=\"showSelectComp\" :style=\"{ width: '30vw' }\"\r\n      :contentStyle=\"{ overflow: 'visible' }\" :modal=\"true\">\r\n      <h1 class=\"titulo-header\">\r\n        Competência\r\n        <Button id=\"icon-close-modals\" icon=\"pi pi-times\" class=\"p-button-rounded p-button-text\"\r\n          @click=\"showSelectComp = false\" />\r\n      </h1><br />\r\n      <span class=\"p-fluid\">\r\n        <Dropdown id=\"filtroAno\" v-model=\"filtroAno\" :options=\"listAnos\" optionLabel=\"name\"\r\n          placeholder=\"Selecione um Ano\" />\r\n      </span>\r\n      <span class=\"p-fluid\">\r\n        <Dropdown id=\"filtroMes\" v-model=\"filtroMes\" :options=\"listMeses\" optionLabel=\"name\"\r\n          placeholder=\"Selecione um Mês\" />\r\n      </span>\r\n      <hr />\r\n      <div class=\"container\">\r\n        <div class=\"row\">\r\n          <div>\r\n            <Button label=\"Selecionar\" icon=\"pi pi-check\" @click=\"pesquisar()\" :disabled=\"loading\" class=\"mr-2\"/>\r\n            <Button label=\"Fechar\" icon=\"pi pi-times\" @click=\"fecharSelectCompetencia()\" class=\"p-button-danger\" />\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </Dialog>\r\n    <Dialog header=\"Aviso\" :visible.sync=\"displayDecSemMov\" :style=\"{ width: '30vw' }\" :modal=\"true\">\r\n      Confirma realizar o DAM sem Movimento para Competência?\r\n      <hr />\r\n      <div class=\"container\">\r\n        <div class=\"row\">\r\n          <div>\r\n            <Button label=\"Sim\" icon=\"pi pi-check\" @click=\"declararSemMovimento()\" :disabled=\"loading\" class=\"mr-2\"/>\r\n            <Button label=\"Não\" icon=\"pi pi-times\" @click=\"hideDecSemMov()\" class=\"p-button-secondary\" />\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </Dialog>\r\n    <Dialog header=\"Imprimir Boleto\" :visible.sync=\"displayVencBoleto\" :style=\"{ width: '30vw' }\"\r\n      :contentStyle=\"{ overflow: 'visible' }\" :modal=\"true\">\r\n      <h1 class=\"titulo-header\">\r\n        Imprimir Boleto\r\n        <Button id=\"icon-close-modals\" icon=\"pi pi-times\" class=\"p-button-rounded p-button-text\"\r\n          @click=\"displayVencBoleto = false\" />\r\n      </h1><br />\r\n      <div class=\"col-md-8 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      <hr />\r\n      <div class=\"container\">\r\n        <div class=\"row\">\r\n          <div>\r\n            <Button label=\"Sim\" icon=\"pi pi-check\" @click=\"imprimirBoleto()\" v-if=\"tipoEmissaoBoleto === 'N'\"\r\n              :disabled=\"loading\" class=\"mr-2\"/>\r\n            <Button label=\"Sim\" icon=\"pi pi-check\" @click=\"imprimirBoletoPix()\" v-if=\"tipoEmissaoBoleto === 'P'\"\r\n              :disabled=\"loading\" class=\"mr-2\"/>\r\n            <Button label=\"Não\" icon=\"pi pi-times\" @click=\"hideVencBoleto()\" class=\"p-button-secondary\" />\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </Dialog>\r\n    <Dialog header=\"Boleto\" :visible.sync=\"displayBoletos\" :style=\"{ width: '35vw' }\" :modal=\"true\">\r\n      <h1 class=\"titulo-header\">\r\n        Boleto\r\n        <Button id=\"icon-close-modals\" icon=\"pi pi-times\" class=\"p-button-rounded p-button-text\"\r\n          @click=\"displayBoletos = false\" />\r\n      </h1><br />\r\n      <DataTable :value=\"listBoletos\" :paginator=\"true\" :rows=\"10\" :autoLayout=\"true\" style=\"min-width: 100%\">\r\n        <Column headerStyle=\"width: 2.5em\" header bodyStyle=\"text-align: center\">\r\n          <template #body=\"slotProps\">\r\n            <Button type=\"button\" title=\"Imprimir Boleto\" class=\"p-button-primary mr-2\" icon=\"pi pi-print\"\r\n              style=\"margin-right: 0.5em\" @click=\"\r\n                carregarVencimentoBoleto(\r\n                  slotProps.data.id,\r\n                  slotProps.data.tipo,\r\n                  slotProps.data.dataVencimento,\r\n                  'N'\r\n                )\r\n                \" :disabled=\"loading\" v-if=\"slotProps.data.pagamentoEfetuado == 'N'\"></Button>\r\n            <Button type=\"button\" title=\"Pagar com PIX\" class=\"p-button-outlined mr-2\" icon=\"pi pix-icon\"\r\n              style=\"margin-right: 0.5em\" @click=\"\r\n                escolhaPagamentoPix(\r\n                  slotProps.data.id,\r\n                  slotProps.data.tipo,\r\n                  slotProps.data.dataVencimento\r\n                )\r\n                \" :disabled=\"loading\" v-if=\"slotProps.data.pagamentoEfetuado == 'N' && habilitarPix\"></Button>\r\n            <Button title=\"Consultar Pagamento PIX\" icon=\"pi pi-search\" style=\"margin-right: 0.5em\"\r\n              @click=\"consultarPagamentoPix(slotProps.data.id)\"\r\n              v-if=\"slotProps.data.pagamentoEfetuado == 'N' && habilitarPix\" />\r\n          </template>\r\n        </Column>\r\n        <Column headerStyle=\"width: 10%\" field=\"vencimentoFormatado\" header=\"Vencimento\" bodyStyle=\"text-align:right\">\r\n        </Column>\r\n        <Column headerStyle=\"width: 8em\" field=\"valorFormatado\" header=\"Valor\" bodyStyle=\"text-align:center\"></Column>\r\n      </DataTable>\r\n      <hr />\r\n      <div class=\"container\">\r\n        <div class=\"row\">\r\n          <div>\r\n            <Button label=\"Fechar\" icon=\"pi pi-times\" @click=\"hideBoletos()\" class=\"p-button-danger\" />\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </Dialog>\r\n    <Dialog :visible.sync=\"showEscolhaPix\" :style=\"{ width: '30vw' }\" :contentStyle=\"{ overflow: 'visible' }\"\r\n      :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=\"col-md-8 mb-8\">\r\n        <Button label=\"QR Code\" icon=\"pi pi-bars\" @click=\"criarPagamentoPix()\" style=\"margin-right: 0.5em\"\r\n          :disabled=\"loading\" />\r\n        <Button label=\"Boleto\" icon=\"pi pi-print\" @click=\"\r\n          carregarVencimentoBoleto(\r\n            idDamAgrupamento,\r\n            tipoDam,\r\n            dataVencimento,\r\n            'P'\r\n          )\r\n          \" :disabled=\"loading\" />\r\n      </div>\r\n      <hr />\r\n      <div class=\"container\">\r\n        <div class=\"row\">\r\n          <div>\r\n            <Button label=\"Fechar\" icon=\"pi pi-times\" @click=\"showEscolhaPix = false\" class=\"p-button-danger\" />\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </Dialog>\r\n    <Dialog :visible.sync=\"showPix\" :style=\"{ width: '40vw' }\" :modal=\"true\">\r\n      <template #header>\r\n        <Button class=\"p-button-outlined mr-2\" icon=\"pi pix-icon\" />\r\n        <h3>Pagar com PIX</h3>\r\n      </template>\r\n      <div class=\"card-body\">\r\n        <div class=\"row\">\r\n          <div class=\"col-md-6 mb-2\">\r\n            <QRCanvas :options=\"optionsPix\" />\r\n          </div>\r\n          <div class=\"col-md-6 mb-2\">\r\n            <div style=\"padding-top: 20px\">\r\n              Utilize o App de sua Instituição Financeira, na opção PIX escolha\r\n              pagar com QR Code, confirme os dados e realize o Pagamento. <br />\r\n              <br /><span style=\"font-weight: bold\">Valor Total:\r\n                {{ this.pixGerado ? this.pixGerado.valorFormatado : 0 }}</span>\r\n            </div>\r\n          </div>\r\n        </div>\r\n      </div>\r\n\r\n      <hr />\r\n      <div class=\"container\">\r\n        <div class=\"row\">\r\n          <div>\r\n            <Button label=\"Fechar\" icon=\"pi pi-times\" @click=\"showPix = false\" class=\"p-button-danger\" />\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </Dialog>\r\n    <Dialog header=\"Aplicar desconto em Valores Declarados\" :visible.sync=\"displayItensDecBeneficio\"\r\n      :style=\"{ width: '40vw' }\" :modal=\"true\">\r\n      <h1 class=\"titulo-header\">\r\n        Aplicar desconto em Valores Declarados\r\n        <Button id=\"icon-close-modals\" icon=\"pi pi-times\" class=\"p-button-rounded p-button-text\"\r\n          @click=\"displayItensDecBeneficio = false\" />\r\n      </h1><br />\r\n      <DataTable :value=\"listItensDeclaracao\" :paginator=\"true\" :rows=\"10\" :autoLayout=\"true\" style=\"min-width: 100%\">\r\n        <Column headerStyle=\"width: 8em\" field=\"valorFormatado\" header=\"Valor\" bodyStyle=\"text-align:center\"></Column>\r\n        <Column headerStyle=\"width: 8em\" field=\"aliquotaFormatado\" header=\"Alíquota\" bodyStyle=\"text-align:center\">\r\n        </Column>\r\n        <Column headerStyle=\"width: 8em\" field=\"abatimentoFormatado\" header=\"Desconto\" bodyStyle=\"text-align:center\">\r\n          <template #body=\"slotProps\">\r\n            <money id=\"abatimento\" name=\"abatimento\" v-model=\"slotProps.data.abatimento\" v-bind=\"money\"\r\n              class=\"p-inputtext input-right\"></money>\r\n          </template>\r\n        </Column>\r\n        <Column headerStyle=\"width: 8em\" field=\"valorIssFormatado\" header=\"ISS\" bodyStyle=\"text-align:center\">\r\n          <template #body=\"slotProps\">\r\n            {{\r\n              getTotalIss(\r\n                slotProps.data.valor,\r\n                slotProps.data.abatimento,\r\n                slotProps.data.aliquota\r\n              )\r\n            }}\r\n          </template>\r\n        </Column>\r\n      </DataTable>\r\n      <hr />\r\n      <div class=\"container\">\r\n        <div class=\"row\">\r\n          <div>\r\n            <Button @click=\"encerrarDeclaracaoBeneficio()\" label=\"Emitir DAM\" type=\"button\"\r\n              class=\"p-button-primary mr-2 p-button-success\" icon=\"pi pi-check\" :disabled=\"loading\" />\r\n            <Button label=\"Fechar\" icon=\"pi pi-times\" @click=\"hideItensDecbeneficio()\" class=\"p-button-danger\" />\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </Dialog>\r\n    <Dialog header=\"Pesquisar DAM por Nfse\" :visible.sync=\"showPesqNota\" :style=\"{ width: '30vw' }\"\r\n      :contentStyle=\"{ overflow: 'visible' }\" :modal=\"true\">\r\n      <h1 class=\"titulo-header\">\r\n        Pesquisar DAM por Nfse\r\n        <Button id=\"icon-close-modals\" icon=\"pi pi-times\" class=\"p-button-rounded p-button-text\"\r\n          @click=\"showPesqNota = false\" />\r\n      </h1><br />\r\n      <span class=\"p-fluid\">\r\n        <InputText v-model=\"numeroNfsePesquisa\" placeholder=\"Número Nfse\" />\r\n      </span>\r\n      <span class=\"p-fluid\">\r\n        <InputText v-model=\"filtro\" placeholder=\"CPF/CNPJ/Nome Prestador\" />\r\n      </span>\r\n      <hr />\r\n      <div class=\"container\">\r\n        <div class=\"row\">\r\n          <div>\r\n            <Button label=\"Pesquisar\" icon=\"pi pi-check\" @click=\"pesquisarDamPorNota()\" :disabled=\"loading\" class=\"mr-2\"/>\r\n            <Button label=\"Fechar\" icon=\"pi pi-times\" @click=\"showPesqNota = false\" class=\"p-button-danger\" />\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </Dialog>\r\n    <Dialog header=\"Transferência de Valores\" :visible.sync=\"showTransfValores\" :style=\"{ width: '30vw' }\" :modal=\"true\"\r\n      v-if=\"declaracaoSelecionada\">\r\n      <h1 class=\"titulo-header\">\r\n        Transferência de Valores\r\n        <Button id=\"icon-close-modals\" icon=\"pi pi-times\" class=\"p-button-rounded p-button-text\"\r\n          @click=\"showTransfValores = false\" />\r\n      </h1><br />\r\n      DAM Selecionado: {{ declaracaoSelecionada.numero }}<br /><br />\r\n      ATENÇÃO! Essa opção deve ser utilizada para transferir os calculos/valores do dam selecionado para outro,\r\n      nos casos onde há pagamento em dams canceladas/retificados e pagos.\r\n      caso confirme a operação informe abaixo o numero do dam de destino\r\n      <hr />\r\n      <span class=\"p-fluid\">\r\n        <InputText v-model=\"numeroDeclaracaoDestino\" placeholder=\"Número DAM Destino\" />\r\n      </span>\r\n      <hr/>\r\n      <div class=\"container\">\r\n        <div class=\"row\">\r\n          <div>\r\n            <Button label=\"Transferir\" icon=\"pi pi-check\" @click=\"transferirCalculos()\" class=\"mr-2\"/>\r\n            <Button label=\"Fechar\" icon=\"pi pi-times\" @click=\"showTransfValores = false\" class=\"p-button-secondary\" />\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 DeclaracaoService from \"../services/tributario/declaracao.substituicao.service\";\r\nimport LoginService from \"../services/acesso/login.service\";\r\nimport ReportService from \"../services/report.service\";\r\nimport NotaDeclaracaoEdicao from \"../models/tributario/NotaDeclaracaoEdicao\";\r\nimport { QRCanvas } from \"qrcanvas-vue\";\r\n\r\nexport default {\r\n  name: \"declaracaoNormal\",\r\n  components: {\r\n    QRCanvas,\r\n  },\r\n  data() {\r\n    return {\r\n      money: money,\r\n      filtersModel: {},\r\n      keyVenc: 0,\r\n      keyVencBoleto: 1,\r\n      competencia: \"\",\r\n      inativo: false,\r\n      checkTodos: false,\r\n      loading: false,\r\n      dataIni: null,\r\n      dataFim: null,\r\n      listAnos: [],\r\n      listMeses: [],\r\n      listDeclaracao: [],\r\n      listItensDeclaracao: [],\r\n      displayItensDecBeneficio: false,\r\n      listNotas: [],\r\n      filters: {},\r\n      currentUser: null,\r\n      competenciaLimite: null,\r\n      showSelectComp: false,\r\n      displayDecSemMov: false,\r\n      showImpressaoBoletos: false,\r\n      idDeclaracaoSelecionada: null,\r\n      dataVencimento: null,\r\n      listNotasDeclaradas: [],\r\n      declaracaoSelecionada: null,\r\n      displayRetificar: false,\r\n      displayDetalhe: false,\r\n      displayBoletos: false,\r\n      listBoletos: [],\r\n      idDecLancamentoSelecionado: null,\r\n      tipoDam: null,\r\n      tipoEmissaoBoleto: \"N\",\r\n      idDamAgrupamento: null,\r\n      displayVencBoleto: false,\r\n      habilitarPix: false,\r\n      showEscolhaPix: false,\r\n      showPix: false,\r\n      optionsPix: {\r\n        cellSize: 5,\r\n        data: \"hello\",\r\n      },\r\n      pixGerado: null,\r\n      numeroNfsePesquisa: '',\r\n      showPesqNota: false,\r\n      notaDeclaracaoEdicao: null,\r\n      filtro: '',\r\n      notaTomador: false,\r\n      numeroDeclaracaoDestino: null,\r\n      showTransfValores: false,\r\n    };\r\n  },\r\n\r\n  created() {\r\n    this.notaTomador = false;\r\n    this.dataIni = this.subtractMonths(new Date(), 2);\r\n    this.dataFim = new Date();\r\n    this.competenciaLimite = new Date();\r\n    this.competenciaLimite.setMonth(this.competenciaLimite.getMonth());\r\n    this.currentUser = LoginService.currentUserValue;\r\n    this.habilitarPix = this.currentUser.configuracao.idBolUtilizarPix === \"S\";\r\n    this.inativo =\r\n      this.currentUser && this.currentUser.contribuinte\r\n        ? !this.currentUser.contribuinte.ativo\r\n        : false;\r\n    if (\"19533831040781681800D2584C905F8A\" === this.currentUser.usuario.idCliente) {\r\n      this.notaTomador = true;\r\n    }\r\n    this.carregarAnos();\r\n    this.carregarMeses();\r\n    this.carregarCompetenciaAtual();\r\n    this.pesquisar();\r\n  },\r\n\r\n  methods: {\r\n    rowClass(data) {\r\n      return data.status === \"Cancelada\" || data.status === \"Retificada\"\r\n        ? \"red-row\"\r\n        : data.status === \"Encerrada\"\r\n          ? \"green-row\"\r\n          : null;\r\n    },\r\n    lineClass(data) {\r\n      return data.status === \"Cancelada\" ||\r\n        data.status === \"Retificada\" ||\r\n        data.status === \"Encerrada\"\r\n        ? \"white-line\"\r\n        : null;\r\n    },\r\n    rolarPagina() {\r\n      document.getElementById(\"topo\").scrollIntoView({\r\n        behavior: \"smooth\",\r\n      });\r\n    },\r\n\r\n    subtractMonths(date, months) {\r\n      const dateCopy = new Date(date);\r\n      dateCopy.setMonth(dateCopy.getMonth() - months);\r\n      return dateCopy;\r\n    },\r\n    alterarCompetencia() {\r\n      this.showSelectComp = true;\r\n    },\r\n    fecharSelectCompetencia() {\r\n      this.showSelectComp = false;\r\n    },\r\n    pesquisar() {\r\n      this.numeroNfsePesquisa = '';\r\n      this.filtro = '';\r\n      this.processando(true);\r\n\r\n      if (!this.dataIni || !this.dataFim) {\r\n        this.$root.$emit(\r\n          \"alert:warn\",\r\n          \"Filtro de Pesquisa de datas inicial e final obrigatório!\"\r\n        );\r\n        return;\r\n      }\r\n\r\n      DeclaracaoService.findAllDeclaracoesPorPeriodo(\r\n        this.currentUser.contribuinte.idContribuinte,\r\n        this.dataIni,\r\n        this.dataFim\r\n      ).then((response) => {\r\n        this.listDeclaracao = response.data;\r\n      });\r\n\r\n      DeclaracaoService.findAllNotasEmAbertoPorPeriodo(\r\n        this.currentUser.contribuinte.idContribuinte,\r\n        this.dataIni,\r\n        this.dataFim\r\n      )\r\n        .then((responseNota) => {\r\n          this.listNotas = responseNota.data;\r\n        })\r\n        .then(() => {\r\n          this.showSelectComp = false;\r\n          this.processando(false);\r\n        });\r\n    },\r\n    processando(show) {\r\n      if (show) {\r\n        this.loading = true;\r\n        this.$root.$emit(\"loading:show\");\r\n      } else {\r\n        this.loading = false;\r\n        this.$root.$emit(\"loading:hide\");\r\n      }\r\n    },\r\n    carregarItensBeneficio(idDeclaracao) {\r\n      DeclaracaoService.findAllItensDeclaracao(idDeclaracao).then(\r\n        (response) => {\r\n          this.listItensDeclaracao = response.data;\r\n          this.displayItensDecBeneficio = true;\r\n        }\r\n      );\r\n    },\r\n    carregarAnos() {\r\n      let ano = this.competenciaLimite.getFullYear();\r\n      // eslint-disable-next-line\r\n      for (var i = ano; i > ano - 10; i--) {\r\n        this.listAnos.push({ name: i, key: i });\r\n      }\r\n    },\r\n    carregarMeses() {\r\n      this.listMeses.push({ name: \"Janeiro\", key: 1 });\r\n      this.listMeses.push({ name: \"Fevereiro\", key: 2 });\r\n      this.listMeses.push({ name: \"Março\", key: 3 });\r\n      this.listMeses.push({ name: \"Abril\", key: 4 });\r\n      this.listMeses.push({ name: \"Maio\", key: 5 });\r\n      this.listMeses.push({ name: \"Junho\", key: 6 });\r\n      this.listMeses.push({ name: \"Julho\", key: 7 });\r\n      this.listMeses.push({ name: \"Agosto\", key: 8 });\r\n      this.listMeses.push({ name: \"Setembro\", key: 9 });\r\n      this.listMeses.push({ name: \"Outubro\", key: 10 });\r\n      this.listMeses.push({ name: \"Novembro\", key: 11 });\r\n      this.listMeses.push({ name: \"Dezembro\", key: 12 });\r\n    },\r\n    carregarCompetenciaAtual() {\r\n      let ano = this.competenciaLimite.getFullYear();\r\n      let mes = this.competenciaLimite.getMonth();\r\n      mes = mes + 1;\r\n\r\n      this.filtroAno = this.listAnos.filter((local) => local.key == ano)[0];\r\n      this.filtroMes = this.listMeses.filter((local) => local.key == mes)[0];\r\n      this.competencia = this.filtroMes.name + \"/\" + ano;\r\n    },\r\n    selecionarTodos() {\r\n      if (this.checkTodos) {\r\n        this.listNotas.forEach(function (value) {\r\n          value.selecionado = true;\r\n        });\r\n      } else {\r\n        this.listNotas.forEach(function (value) {\r\n          value.selecionado = false;\r\n        });\r\n      }\r\n    },\r\n    gerarDAM() {\r\n      if (\r\n        (!this.listNotas || this.listNotas.length <= 0)\r\n      ) {\r\n        this.$root.$emit(\r\n          \"alert:warn\",\r\n          \"Selecione ao menos uma nota para gerar o DAM!\"\r\n        );\r\n        return;\r\n      }\r\n      let checked = false;\r\n      this.listNotas.forEach(function (value) {\r\n        if (value.selecionado) {\r\n          checked = true;\r\n          return;\r\n        }\r\n      });\r\n      if (!checked) {\r\n        this.$root.$emit(\r\n          \"alert:warn\",\r\n          \"Selecione ao menos uma nota para gerar o DAM!\"\r\n        );\r\n      } else {\r\n        this.processando(true);\r\n        this.gerarDAMNotas();\r\n      }\r\n    },\r\n    confirmaDeclararSemMovimento() {\r\n      this.processando(false);\r\n      this.displayDecSemMov = true;\r\n    },\r\n    hideDecSemMov() {\r\n      this.displayDecSemMov = false;\r\n    },\r\n    declararSemMovimento() {\r\n      DeclaracaoService.declararSemMov(\r\n        this.currentUser.usuario.idCliente,\r\n        this.currentUser.usuario.idUsuario,\r\n        this.currentUser.contribuinte.idContribuinte,\r\n        this.filtroAno.key,\r\n        this.filtroMes.key\r\n      ).then((response) => {\r\n        console.log(response);\r\n        this.pesquisar();\r\n        this.$root.$emit(\r\n          \"alert:success\",\r\n          \"DAM sem Movimento gerado com sucesso!\"\r\n        );\r\n      });\r\n      this.displayDecSemMov = false;\r\n    },\r\n    gerarDAMNotas() {\r\n      this.processando(true);\r\n      let listNotasSelecionadas = [];\r\n      this.listNotas.forEach(function (value) {\r\n        if (value.selecionado) {\r\n          listNotasSelecionadas.push(value);\r\n        }\r\n      });\r\n      DeclaracaoService.gerarDam(\r\n        this.currentUser.usuario.idCliente,\r\n        this.currentUser.usuario.idUsuario,\r\n        this.currentUser.contribuinte.idContribuinte,\r\n        this.filtroAno.key,\r\n        this.filtroMes.key,\r\n        \"N\",\r\n        listNotasSelecionadas\r\n      ).then(\r\n        (response) => {\r\n          console.log(response);\r\n          this.pesquisar();\r\n          this.$root.$emit(\"alert:success\", \"DAM gerado com sucesso!\");\r\n        },\r\n        (error) => {\r\n          console.log(error);\r\n          this.$root.$emit(\"alert:error\", error.response.data);\r\n        }\r\n      ).then(() => {\r\n        this.processando(false);\r\n      });\r\n    },\r\n    cancelarDeclaracao(idDeclaracao) {\r\n      this.processando(true);\r\n      DeclaracaoService.cancelar(\r\n        this.currentUser.usuario.idUsuario,\r\n        this.currentUser.contribuinte.idContribuinte,\r\n        idDeclaracao\r\n      )\r\n        .then((response) => {\r\n          console.log(response);\r\n          this.pesquisar();\r\n          this.$root.$emit(\r\n            \"alert:success\",\r\n            \"DAM cancelado com sucesso!\"\r\n          );\r\n        })\r\n        .then(() => {\r\n          this.processando(false);\r\n        });\r\n    },\r\n    openTransferirCalculoes(declaracao) {\r\n      this.declaracaoSelecionada = declaracao;\r\n      this.idDeclaracaoSelecionada = declaracao.id;\r\n      this.showTransfValores = true;\r\n      this.numeroDeclaracaoDestino = null;\r\n    },\r\n    transferirCalculos() {\r\n      this.processando(true);\r\n      DeclaracaoService.transferirCalculosDeclaracao(\r\n        this.idDeclaracaoSelecionada,\r\n        this.numeroDeclaracaoDestino\r\n      )\r\n        .then((response) => {\r\n          console.log(response);\r\n          this.pesquisar();\r\n          this.showTransfValores = false;\r\n          this.$root.$emit(\r\n            \"alert:success\",\r\n            \"Transferência realizada com sucesso!\"\r\n          );\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    encerrarDeclaracaoBeneficio() {\r\n      this.processando(true);\r\n      DeclaracaoService.encerrarComBeneficio(\r\n        this.currentUser.usuario.idUsuario,\r\n        this.listItensDeclaracao\r\n      )\r\n        .then(\r\n          (response) => {\r\n            console.log(response);\r\n            this.pesquisar();\r\n            this.$root.$emit(\r\n              \"alert:success\",\r\n              \"DAM encerrado com sucesso!\"\r\n            );\r\n          },\r\n          (error) => {\r\n            this.$root.$emit(\"alert:error\", error.response.data);\r\n          }\r\n        )\r\n        .then(() => {\r\n          this.processando(false);\r\n        });\r\n    },\r\n    encerrarDeclaracao(id) {\r\n      this.idDeclaracaoSelecionada = id;\r\n      this.processando(true);\r\n      DeclaracaoService.encerrar(\r\n        this.currentUser.usuario.idCliente,\r\n        this.currentUser.usuario.idUsuario,\r\n        this.currentUser.contribuinte.idContribuinte,\r\n        this.idDeclaracaoSelecionada\r\n      )\r\n        .then(\r\n          (response) => {\r\n            console.log(response);\r\n            if (response.data === \"BG\") {\r\n              this.carregarItensBeneficio(this.idDeclaracaoSelecionada);\r\n            } else {\r\n              this.pesquisar();\r\n              this.$root.$emit(\r\n                \"alert:success\",\r\n                \"DAM encerrado com sucesso!\"\r\n              );\r\n            }\r\n          },\r\n          (error) => {\r\n            console.log(error);\r\n            this.$root.$emit(\r\n              \"alert:error\",\r\n              \"Não foi possível gerar o DAM, verifique com o administrador do sistema se o Serviço de Geração de DAM esta disponível!\"\r\n            );\r\n          }\r\n        )\r\n        .then(() => {\r\n          this.processando(false);\r\n        });\r\n    },\r\n    carregarRetificacao(declaracao) {\r\n      this.processando(true);\r\n      this.declaracaoSelecionada = declaracao;\r\n      DeclaracaoService.competenciaDamEmFiscalizacao(this.declaracaoSelecionada.id)\r\n        .then((responseFisc) => {\r\n          console.log(responseFisc);\r\n          if (responseFisc.data === 'S') {\r\n            this.$root.$emit(\r\n              \"alert:warn\",\r\n              \"Não sera possível Editar o DAM, Contribuinte em processo de Fiscalização para um dos períodos do DAM!\"\r\n            );\r\n            this.processando(false);\r\n            return;\r\n          }\r\n          DeclaracaoService.carregarNotasDeclaracao(this.declaracaoSelecionada.id)\r\n            .then((response) => {\r\n              this.listNotasDeclaradas = response.data;\r\n              this.displayRetificar = true;\r\n            })\r\n            .then(() => {\r\n              this.processando(false);\r\n            });\r\n        })\r\n    },\r\n    carregarDetalhamento(declaracao) {\r\n      this.processando(true);\r\n      this.declaracaoSelecionada = declaracao;\r\n      DeclaracaoService.carregarNotasDeclaracao(this.declaracaoSelecionada.id)\r\n        .then((response) => {\r\n          this.listNotasDeclaradas = response.data;\r\n          this.displayDetalhe = true;\r\n        })\r\n        .then(() => {\r\n          this.processando(false);\r\n        });\r\n    },\r\n    hideRetificar() {\r\n      this.processando(true);\r\n      this.declaracaoSelecionada = null;\r\n      this.displayRetificar = false;\r\n      this.displayDetalhe = false;\r\n      this.pesquisar();\r\n      this.rolarPagina();\r\n      this.processando(false);\r\n    },\r\n    hideDetalhe() {\r\n      this.processando(true);\r\n      this.declaracaoSelecionada = null;\r\n      this.displayDetalhe = false;\r\n      this.pesquisar();\r\n      this.rolarPagina();\r\n      this.processando(false);\r\n    },\r\n    adicionarNotasDeclaracao() {\r\n      this.processando(true);\r\n      for (let i = this.listNotas.length - 1; i >= 0; i--) {\r\n        if (this.listNotas[i].selecionado) {\r\n          this.listNotasDeclaradas.push(this.listNotas[i]);\r\n          this.listNotas.splice(i, 1);\r\n        }\r\n      }\r\n      this.listNotasDeclaradas.sort(function (a, b) {\r\n        return parseFloat(b.numero) - parseFloat(a.numero);\r\n      });\r\n      this.rolarPagina();\r\n      this.processando(false);\r\n    },\r\n    removerNotaDeclaracao(notaDec) {\r\n      this.processando(true);\r\n      notaDec.selecionado = false;\r\n      this.listNotas.push(notaDec);\r\n      this.listNotasDeclaradas.forEach(function (item, index, object) {\r\n        if (item.id === notaDec.id) {\r\n          object.splice(index, 1);\r\n        }\r\n      });\r\n      this.listNotas.sort(function (a, b) {\r\n        return parseFloat(b.numero) - parseFloat(a.numero);\r\n      });\r\n      this.rolarPagina();\r\n      this.processando(false);\r\n    },\r\n    removerNotasDeclaracao() {\r\n      this.processando(true);\r\n      let newList = this.listNotas.slice();\r\n      this.listNotasDeclaradas.forEach(function (item) {\r\n        newList.push(item);\r\n      });\r\n      this.listNotas = newList;\r\n      this.listNotasDeclaradas = [];\r\n      this.listNotas.sort(function (a, b) {\r\n        return parseFloat(b.numero) - parseFloat(a.numero);\r\n      });\r\n      this.rolarPagina();\r\n      this.processando(false);\r\n    },\r\n    editarDam() {\r\n      this.processando(true);\r\n      this.notaDeclaracaoEdicao = new NotaDeclaracaoEdicao();\r\n      this.notaDeclaracaoEdicao.notasFiscaisDam = this.listNotasDeclaradas;\r\n      this.notaDeclaracaoEdicao.notasFiscaisSemDam = this.listNotas;\r\n      DeclaracaoService.editarDam(\r\n        this.currentUser.usuario.idUsuario,\r\n        this.declaracaoSelecionada.id,\r\n        this.notaDeclaracaoEdicao\r\n      )\r\n        .then((response) => {\r\n          console.log(response);\r\n          this.pesquisar();\r\n          this.$root.$emit(\r\n            \"alert:success\",\r\n            \"DAM editado com sucesso!\"\r\n          );\r\n          this.hideRetificar();\r\n        },\r\n          (error) => {\r\n            console.log(error);\r\n            let erro = \"\";\r\n            if (error.response && error.response.data) {\r\n              erro = error.response.data;\r\n            }\r\n            this.$root.$emit(\r\n              \"alert:error\",\r\n              erro\r\n            );\r\n          })\r\n        .then(() => {\r\n          this.processando(false);\r\n        });\r\n    },\r\n    impressaoNota(idNotaNotaDeclaracao) {\r\n      this.processando(true);\r\n      let ret = idNotaNotaDeclaracao.split(\";\");\r\n      let id = ret[1];\r\n      if (ret[0] === \"N\") {\r\n        let nomeRel = this.observacaoClienteNfse\r\n          ? \"NotaFiscalEletronicaObs\"\r\n          : \"NotaFiscalEletronica\";\r\n        ReportService.imprimir(nomeRel, [\r\n          {\r\n            param: \"where\",\r\n            string: \" and nota_fiscal.id = '\" + 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      } else {\r\n        ReportService.imprimir((this.notaTomador ? 'NotaFiscalTomador' : 'NotaFiscalAuxiliar'), [\r\n          {\r\n            param: \"where\",\r\n            string: \" and nota.id = '\" + id + \"' \",\r\n          },\r\n        ])\r\n          .then(\r\n            () => { },\r\n            (error) => {\r\n              this.$root.$emit(\"alert:warn\", \"Erro ao Imprimir!\");\r\n              console.log(error);\r\n            }\r\n          )\r\n          .then(() => {\r\n            this.processando(false);\r\n          });\r\n      }\r\n    },\r\n    impressaoDeclaracao(id, pago) {\r\n      this.processando(true);\r\n      ReportService.imprimir(\"DetalhamentoDAM\", [\r\n        {\r\n          param: \"ID\",\r\n          string: id,\r\n        },\r\n        {\r\n          param: \"TIPO\",\r\n          string: \"S\",\r\n        },\r\n        {\r\n          param: \"PAGO\",\r\n          string: pago,\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 imprimir Detalhamento DAM!\"\r\n            );\r\n            console.log(error);\r\n          }\r\n        )\r\n        .then(() => {\r\n          this.processando(false);\r\n        });\r\n    },\r\n    impressaoBoletos(id, pago) {\r\n      console.log(pago);\r\n      this.processando(true);\r\n      this.idDeclaracaoSelecionada = id;\r\n      DeclaracaoService.competenciaEmFiscalizacao(this.idDeclaracaoSelecionada)\r\n        .then((responseFisc) => {\r\n          console.log(responseFisc);\r\n          if (responseFisc.data === 'S') {\r\n            this.$root.$emit(\r\n              \"alert:warn\",\r\n              \"Não sera possível a Imppressão do Boleto, Contribuinte em processo de Fiscalização para um dos períodos do DAM!\"\r\n            );\r\n            this.processando(false);\r\n            return;\r\n          }\r\n          DeclaracaoService.findBoletos(id)\r\n            .then((response) => {\r\n              this.listBoletos = response.data;\r\n            })\r\n            .then(() => {\r\n              this.showImpressaoBoletos = true;\r\n\r\n              this.displayBoletos = true;\r\n              this.processando(false);\r\n            });\r\n        })\r\n    },\r\n    hideBoletos() {\r\n      this.displayBoletos = false;\r\n    },\r\n    hideItensDecbeneficio() {\r\n      this.displayItensDecBeneficio = false;\r\n    },\r\n    escolhaPagamentoPix(idDamAgrupamento, tipoDam, dataVencimento) {\r\n      this.idDamAgrupamento = idDamAgrupamento;\r\n      this.tipoDam = tipoDam;\r\n      this.dataVencimento = dataVencimento;\r\n      this.showEscolhaPix = true;\r\n    },\r\n    criarPagamentoPix() {\r\n      this.processando(true);\r\n      this.showEscolhaPix = false;\r\n      DeclaracaoService.criarPagamentoPix(\r\n        this.idDamAgrupamento,\r\n        this.idDeclaracaoSelecionada\r\n      )\r\n        .then(\r\n          (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.showEscolhaPix = false;\r\n          this.processando(false);\r\n        });\r\n    },\r\n    carregarVencimentoBoleto(id, tipo, dataVencimento, tipoEmissao) {\r\n      this.tipoEmissaoBoleto = tipoEmissao;\r\n      this.showEscolhaPix = false;\r\n      let d = dataVencimento.split(\"-\");\r\n      this.tipoDam = tipo;\r\n      if (this.tipoDam === \"A\") {\r\n        this.idDamAgrupamento = id;\r\n      } else {\r\n        this.idDecLancamentoSelecionado = id;\r\n      }\r\n      this.dataVencimento = new Date(d[0], d[1] - 1, d[2]);\r\n      this.displayVencBoleto = true;\r\n    },\r\n    hideVencBoleto() {\r\n      this.displayVencBoleto = false;\r\n      this.idDecLancamentoSelecionado = null;\r\n      this.idDamAgrupamento = null;\r\n    },\r\n    imprimirBoleto() {\r\n      if (!this.dataVencimento) {\r\n        this.$root.$emit(\"alert:warn\", \"Data de Vencimento Obrigatória!\");\r\n        return;\r\n      }\r\n      this.processando(true);\r\n      var novaData = new Date();\r\n      if (novaData > this.dataVencimento) {\r\n        this.dataVencimento = novaData;\r\n      }\r\n      DeclaracaoService.atualizarParcelaDam(\r\n        this.tipoDam,\r\n        this.idDamAgrupamento,\r\n        this.idDeclaracaoSelecionada,\r\n        this.dataVencimento,\r\n        this.currentUser.usuario.idUsuario\r\n      )\r\n        .then(\r\n          (response) => {\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.hideBoletos();\r\n          this.processando(false);\r\n        });\r\n    },\r\n    isNotaFiscal(idNotaNotaDeclaracao) {\r\n      let ret = idNotaNotaDeclaracao.split(\";\");\r\n      return ret[0] === \"N\";\r\n    },\r\n    downloadXml(nfseId) {\r\n      this.processando(true);\r\n      let ret = nfseId.split(\";\");\r\n      let id = ret[1];\r\n      ReportService.downloadXml(id)\r\n        .then(\r\n          (data) => {\r\n            console.log(data);\r\n          },\r\n          (error) => {\r\n            this.$root.$emit(\"alert:warn\", \"Erro ao efetuar o download!\");\r\n            console.log(error);\r\n          }\r\n        )\r\n        .then(() => {\r\n          this.processando(false);\r\n        });\r\n    },\r\n    consultarPagamentoPix(idDamAgrupamento) {\r\n      if (idDamAgrupamento) {\r\n        this.processando(true);\r\n        DeclaracaoService.consultarPagamentoPix(\r\n          this.idDeclaracaoSelecionada,\r\n          idDamAgrupamento\r\n        )\r\n          .then(\r\n            (response) => {\r\n              this.pesquisar();\r\n              this.hideBoletos();\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      DeclaracaoService.atualizaVencimentoBoleto(\r\n        this.tipoDam,\r\n        this.idDamAgrupamento,\r\n        this.idDeclaracaoSelecionada,\r\n        this.dataVencimento\r\n      )\r\n        .then(\r\n          (response) => {\r\n            let idGerado = response.data;\r\n            DeclaracaoService.criarPagamentoPixCp(\r\n              idGerado,\r\n              this.idDeclaracaoSelecionada\r\n            )\r\n              .then(\r\n                (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.hideBoletos();\r\n          this.processando(false);\r\n        });\r\n    },\r\n    getTotalIss(valor, abatimento, aliquota) {\r\n      if (abatimento > valor) {\r\n        abatimento = valor;\r\n      }\r\n      let val = ((valor - abatimento) * aliquota) / 100;\r\n      if (!val) return \"0,00\";\r\n      const valueString = val.toFixed(2).replace(\".\", \",\");\r\n      return valueString.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \".\");\r\n    },\r\n    formatted_string(pad, user_str, pad_pos) {\r\n      if (typeof user_str === \"undefined\") return pad;\r\n      if (pad_pos == \"l\") {\r\n        return (pad + user_str).slice(-pad.length);\r\n      } else {\r\n        return (user_str + pad).substring(0, pad.length);\r\n      }\r\n    },\r\n    showNotaDam() {\r\n      this.showPesqNota = true;\r\n    },\r\n    pesquisarDamPorNota() {\r\n      this.processando(true);\r\n\r\n      if (!this.dataIni || !this.dataFim) {\r\n        this.$root.$emit(\r\n          \"alert:warn\",\r\n          \"Filtro de Pesquisa de datas inicial e final obrigatório!\"\r\n        );\r\n        this.processando(false);\r\n        return;\r\n      } else if (this.numeroNfsePesquisa.trim() === '' && this.filtro.trim() === '') {\r\n        this.$root.$emit(\r\n          \"alert:warn\",\r\n          \"Filtro obrigatório!\"\r\n        );\r\n        this.processando(false);\r\n        return;\r\n      }\r\n\r\n\r\n      DeclaracaoService.findAllDeclaracoesPorPeriodoNumero(\r\n        this.currentUser.contribuinte.idContribuinte,\r\n        this.dataIni,\r\n        this.dataFim,\r\n        this.numeroNfsePesquisa.trim(),\r\n        this.filtro\r\n      ).then((response) => {\r\n        this.listDeclaracao = response.data;\r\n      }).then(() => {\r\n        this.showPesqNota = false;\r\n        this.processando(false);\r\n      });\r\n\r\n    },\r\n    async exportCSVDt1() {\r\n      await DeclaracaoService.getConsultaRelDamXls(this.dataIni, this.dataFim, null, null).then(\r\n        (response) => {\r\n          response.data;\r\n          this.sqlRelatorio = response.data;\r\n        },\r\n        (error) => {\r\n          console.log(error);\r\n        }\r\n      );\r\n      this.imprimirExcel();\r\n    },\r\n    exportCSVDt2() {\r\n      this.$refs.dt2.exportCSV();\r\n    },\r\n    imprimirExcel() {\r\n      this.imprimirConsultaTipo('xls');\r\n    },\r\n    imprimirConsultaTipo(tipo) {\r\n      this.processando(true);\r\n      ReportService.imprimir(\"ConsultaDamXls\", [\r\n        {\r\n          param: \"P_CONSULTA\",\r\n          string: this.sqlRelatorio\r\n        }\r\n      ], tipo)\r\n        .then(\r\n          () => { },\r\n          error => {\r\n            this.$root.$emit(\"alert:warn\", \"Erro ao Imprimir!\");\r\n            console.log(error);\r\n          }\r\n        )\r\n        .then(() => {\r\n          this.processando(false);\r\n        });\r\n    },\r\n  },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.white-line {\r\n  color: white;\r\n}\r\n\r\n/deep/ .green-row {\r\n  background-color: #28a745 !important;\r\n}\r\n\r\n/deep/ .red-row {\r\n  background-color: #fd7272 !important;\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!./DamSubstituicao.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!./DamSubstituicao.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DamSubstituicao.vue?vue&type=template&id=37f4ed96&scoped=true&\"\nimport script from \"./DamSubstituicao.vue?vue&type=script&lang=js&\"\nexport * from \"./DamSubstituicao.vue?vue&type=script&lang=js&\"\nimport style0 from \"./DamSubstituicao.vue?vue&type=style&index=0&id=37f4ed96&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  \"37f4ed96\",\n  null\n  \n)\n\nexport default component.exports","class NotaDeclaracaoEdicao{\r\n    constructor(){\r\n        \r\n    }\r\n}\r\n\r\nexport default NotaDeclaracaoEdicao\r\n","const money = {\r\n    decimal: \",\",\r\n    thousands: \".\",\r\n    prefix: \"R$ \",\r\n    suffix: \"\",\r\n    precision: 2,\r\n    masked: false\r\n}\r\nexport default money","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!./DamSubstituicao.vue?vue&type=style&index=0&id=37f4ed96&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!./DamSubstituicao.vue?vue&type=style&index=0&id=37f4ed96&lang=scss&scoped=true&\"","import axios from 'axios';\r\nimport LoginService from '../acesso/login.service'\r\n\r\nconst API_URL = process.env.VUE_APP_BASE_URL + '/api/declaracaoSubstituicao/';\r\n\r\nclass DeclaracaoSubstituicao {\r\n    constructor() {\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    findAllDeclaracoes(idContribuinte, ano, mes) {\r\n        return axios.get(API_URL + 'allDeclaracoesSubstituicao?idContribuinte=' + idContribuinte + '&ano=' + ano + '&mes=' + mes, { headers: this.headers });\r\n    }\r\n\r\n    findAllDeclaracoesNumero(idContribuinte, ano, mes, numero, filtro) {\r\n        return axios.get(API_URL + 'allDeclaracoesSubstituicaoNumero?idContribuinte=' + idContribuinte + '&ano=' + ano + '&mes=' + mes + '&numero=' + numero + '&filtro=' + filtro, { headers: this.headers });\r\n    }\r\n\r\n    findAllDeclaracoesPorPeriodo(idContribuinte, dataIni, dataFim) {\r\n        return axios.get(API_URL + 'allDeclaracoesPorPeriodo?idContribuinte=' + idContribuinte + '&dataIni=' + dataIni + '&dataFim=' + dataFim, { headers: this.headers });\r\n    }\r\n\r\n    findAllDeclaracoesPorPeriodoNumero(idContribuinte, dataIni, dataFim, numero, filtro) {\r\n        return axios.get(API_URL + 'allDeclaracoesPorPeriodoNumero?idContribuinte=' + idContribuinte + '&dataIni=' + dataIni + '&dataFim=' + dataFim + '&numero=' + numero + '&filtro=' + filtro, { headers: this.headers });\r\n    }\r\n\r\n    findAllDecAvulsa(idDeclaracao) {\r\n        return axios.get(API_URL + 'allDecAvulsa?idDeclaracao=' + idDeclaracao, { headers: this.headers });\r\n    }\r\n\r\n    findAllNotasEmAberto(idContribuinte, ano, mes) {\r\n        return axios.get(API_URL + 'allNotasFiscaisSubstituicao?idContribuinte=' + idContribuinte + '&ano=' + ano + '&mes=' + mes, { headers: this.headers });\r\n    }\r\n\r\n    findAllNotasEmAbertoPorPeriodo(idContribuinte, dataIni, dataFim) {\r\n        return axios.get(API_URL + 'allNotasFiscaisEmAbertoPorPeriodo?idContribuinte=' + idContribuinte + '&dataIni=' + dataIni + '&dataFim=' + dataFim, { headers: this.headers });\r\n    }\r\n\r\n    findBoletos(id) {\r\n        return axios.get(API_URL + 'allBoletos?idDeclaracao=' + id, { headers: this.headers });\r\n    }\r\n\r\n    declarar(idCliente, idUsuario, idContribuinte, ano, mes, tipo, notasFiscais) {\r\n        return axios.post(API_URL + 'declaracaoSubstituicao?idCliente=' + idCliente + '&idContribuinte=' + idContribuinte + '&idUsuario=' + idUsuario + '&ano=' + ano + '&mes=' + mes + '&tipo=' + tipo, JSON.stringify(notasFiscais),\r\n            { headers: this.headers });\r\n    }\r\n\r\n    gerarDam(idCliente, idUsuario, idContribuinte, ano, mes, tipo, notasFiscais) {\r\n        return axios.post(API_URL + 'gerarDamSubstituicao?idCliente=' + idCliente + '&idContribuinte=' + idContribuinte + '&idUsuario=' + idUsuario + '&ano=' + ano + '&mes=' + mes + '&tipo=' + tipo, JSON.stringify(notasFiscais),\r\n            { headers: this.headers });\r\n    }\r\n\r\n    editarDam(idUsuario, idDeclaracao, notasFiscais) {\r\n        return axios.post(API_URL + 'editarDam?idUsuario=' + idUsuario + '&idDeclaracao=' + idDeclaracao, JSON.stringify(notasFiscais),\r\n            { headers: this.headers });\r\n    }\r\n\r\n    declararParc(idCliente, idUsuario, idContribuinte, ano, mes, tipo, notasFiscais) {\r\n        return axios.post(API_URL + 'declaracaoSubstituicaoParc?idCliente=' + idCliente + '&idContribuinte=' + idContribuinte + '&idUsuario=' + idUsuario + '&ano=' + ano + '&mes=' + mes + '&tipo=' + tipo, JSON.stringify(notasFiscais),\r\n            { headers: this.headers });\r\n    }\r\n\r\n    declararSemMov(idCliente, idUsuario, idContribuinte, ano, mes) {\r\n        return axios.post(API_URL + 'declaracaoSubstSemMov?idCliente=' + idCliente + '&idContribuinte=' + idContribuinte + '&idUsuario=' + idUsuario + '&ano=' + ano + '&mes=' + mes, null,\r\n            { headers: this.headers });\r\n    }\r\n\r\n    cancelar(idUsuario, idContribuinte, idDeclaracao) {\r\n        return axios.post(API_URL + 'cancelar?idContribuinte=' + idContribuinte + '&idUsuario=' + idUsuario + '&idDeclaracao=' + idDeclaracao, null,\r\n            { headers: this.headers });\r\n    }\r\n\r\n    encerrar(idCliente, idUsuario, idContribuinte, idDeclaracao, vencimento) {\r\n        return axios.post(API_URL + 'encerrarDeclaracao?idCliente=' + idCliente + '&idContribuinte=' + idContribuinte + '&idUsuario=' + idUsuario + '&idDeclaracao=' + idDeclaracao + '&vencimento=' + vencimento, null,\r\n            { headers: this.headers });\r\n    }\r\n\r\n    encerrarParc(idCliente, idUsuario, idContribuinte, idDeclaracao, vencimento) {\r\n        return axios.post(API_URL + 'encerrarDeclaracaoParc?idCliente=' + idCliente + '&idContribuinte=' + idContribuinte + '&idUsuario=' + idUsuario + '&idDeclaracao=' + idDeclaracao + '&vencimento=' + vencimento, null,\r\n            { headers: this.headers });\r\n    }\r\n\r\n    retificar(idUsuario, idContribuinte, idCliente, idDeclaracao, notasFiscais) {\r\n        return axios.post(API_URL + 'retificar?idUsuario=' + idUsuario + '&idContribuinte=' + idContribuinte + '&idCliente=' + idCliente + '&idDeclaracao=' + idDeclaracao, JSON.stringify(notasFiscais),\r\n            { headers: this.headers });\r\n    }\r\n\r\n    carregarNotasDeclaracao(idDeclaracao) {\r\n        return axios.get(API_URL + 'allNotasDeclaracao?idDeclaracao=' + idDeclaracao, { headers: this.headers });\r\n    }\r\n\r\n    atualizarVencimento(idDamAgrupamento, idDeclaracao, dataVencimento) {\r\n        return axios.post(API_URL + 'atualizarVencimento?idDamAgrupamento=' + idDamAgrupamento + '&idDeclaracao=' + idDeclaracao + '&dataVencimento=' + dataVencimento, null, { headers: this.headers });\r\n    }\r\n\r\n    atualizarParcelaDam(tipoDam, idDamAgrupamento, idDeclaracao, dataVencimento, idUsuario) {\r\n        console.log(tipoDam);\r\n        return axios.post(API_URL + 'atualizarParcelaDam?idDamAgrupamento=' + idDamAgrupamento + '&idDeclaracao=' + idDeclaracao + '&dataVencimento=' + dataVencimento + '&idUsuario=' + idUsuario, null, { headers: this.headers });\r\n    }\r\n\r\n    criarPagamentoPix(idDamAgrupamento, idDeclaracao) {\r\n        return axios.post(API_URL + 'criarPagamentoPix?idDamAgrupamento=' + idDamAgrupamento + '&idDeclaracao=' + idDeclaracao, null, { headers: this.headers });\r\n    }\r\n\r\n    criarPagamentoPixCp(idCalculoParcelado, idDeclaracao) {\r\n        return axios.post(API_URL + 'criarPagamentoPixCp?idCalculoParcelado=' + idCalculoParcelado + '&idDeclaracao=' + idDeclaracao, null, { headers: this.headers });\r\n    }\r\n\r\n    consultarPagamentoPix(idDeclaracao, idDamAgrupamento) {\r\n        return axios.get(API_URL + 'consultarPagamentoPix?idDeclaracao=' + idDeclaracao + '&idDamAgrupamento=' + idDamAgrupamento, { headers: this.headers });\r\n    }\r\n\r\n    competenciaEmFiscalizacao(idDeclaracao) {\r\n        return axios.get(API_URL + 'competenciaEmFiscalizacao?idDeclaracao=' + idDeclaracao, { headers: this.headers });\r\n    }\r\n\r\n    competenciaDamEmFiscalizacao(idDeclaracao) {\r\n        return axios.get(API_URL + 'competenciaDamEmFiscalizacao?idDeclaracao=' + idDeclaracao, { headers: this.headers });\r\n    }\r\n\r\n    carregarDadosCredito(idUsuario, idDeclaracao) {\r\n        return axios.get(API_URL + 'carregarDadosCredito?idUsuario=' + idUsuario + '&idDeclaracao=' + idDeclaracao, { headers: this.headers });\r\n    }\r\n\r\n    aplicarCredito(idUsuario, idDeclaracao) {\r\n        return axios.post(API_URL + 'aplicarCredito?idUsuario=' + idUsuario + '&idDeclaracao=' + idDeclaracao, null, { headers: this.headers });\r\n    }\r\n\r\n    transferirCalculosDeclaracao(idDeclaracaoOrigem, numeroDeclaracaoDestino) {\r\n        return axios.post(API_URL + 'transferirCalculosDeclaracao?idDeclaracaoOrigem=' + idDeclaracaoOrigem + '&numeroDeclaracaoDestino=' + numeroDeclaracaoDestino, null, { headers: this.headers });\r\n    }\r\n\r\n    suspenderGuia(idUsuario, idDeclaracao) {\r\n        return axios.post(API_URL + 'suspenderGuia?idUsuario=' + idUsuario + '&idDeclaracao=' + idDeclaracao, null, { headers: this.headers });\r\n    }\r\n\r\n    cancelarSuspencaoGuia(idUsuario, idDeclaracao) {\r\n        return axios.post(API_URL + 'cancelarSuspencaoGuia?idUsuario=' + idUsuario + '&idDeclaracao=' + idDeclaracao, null, { headers: this.headers });\r\n    }\r\n\r\n    retencaoIndevida(idUsuario, motivoRetencaoIndevida, nota) {\r\n        return axios.post(API_URL + 'retencaoIndevida?idUsuario=' + idUsuario + '&motivoRetencaoIndevida=' + motivoRetencaoIndevida, JSON.stringify(nota), { headers: this.headers });\r\n    }\r\n\r\n    getConsultaRelDamXls(dataIni, dataFim, numero, filtro) {\r\n        this.idContribuinte = LoginService.currentUserValue.contribuinte.idContribuinte;\r\n        return axios.get(API_URL + 'getConsultaDamSubRelatorioXls?idContribuinte=' + this.idContribuinte\r\n            + '&dataIni=' + dataIni\r\n            + '&dataFim=' + dataFim\r\n            + '&numero=' + numero\r\n            + '&filtro=' + filtro,\r\n            { headers: this.headers });\r\n    }\r\n\r\n    getConsultaRelDecXlsComp(ano, mes, numero, filtro) {\r\n        this.idContribuinte = LoginService.currentUserValue.contribuinte.idContribuinte;\r\n        return axios.get(API_URL + 'getConsultaDecSubRelatorioXlsComp?idContribuinte=' + this.idContribuinte\r\n            + '&ano=' + ano\r\n            + '&mes=' + mes\r\n            + '&numero=' + numero\r\n            + '&filtro=' + filtro,\r\n            { headers: this.headers });\r\n    }\r\n}\r\n\r\nexport default new DeclaracaoSubstituicao();"],"sourceRoot":""}