{"version":3,"sources":["webpack:///./src/components/mixins/permissoes.js","webpack:///./src/common/services/enumeradores/enumeradores.service.js","webpack:///./src/views/suprimentos/relatorio-estoque/RelatorioEstoque.vue?4403","webpack:///./src/views/suprimentos/relatorio-estoque/RelatorioEstoque.vue","webpack:///src/views/suprimentos/relatorio-estoque/RelatorioEstoque.vue","webpack:///./src/views/suprimentos/relatorio-estoque/RelatorioEstoque.vue?e6d4","webpack:///./src/views/suprimentos/relatorio-estoque/RelatorioEstoque.vue?679e","webpack:///./src/common/services/estoque/estoque.service.js","webpack:///./src/common/services/depositos/depositos.service.js"],"names":["data","acessos","store","getters","idPagina","this","$router","currentRoute","meta","id","computed","listaPermissoes","find","x","acesso","podeCadastrar","admin","permissoes","includes","podeEditar","podeExcluir","podeVisualizar","methods","verificarPermissao","permissao","acessoPermissao","EnumeradoresService","enumerador","ApiService","get","map","linha","objeto","text","descricao","value","render","_vm","_c","_self","attrs","$t","breadcrumbs","staticClass","class","selected","estoqueComMovimentacao","on","$event","selectOption","staticStyle","_v","estoqueSemMovimentacao","ref","model","selecionados","dataInicio","callback","$$v","$set","expression","_e","dataFim","opcoes","depositos","depositoId","realizarImpressaoRelatorioEstoque","_s","staticRenderFns","mixins","Permissoes","components","InputDateOnlyBtn","InputSelectSearch","Topbar","template","selectedOption","titulo","relatorioEstoqueLayoutDados","estoqueLayout","mounted","getEstoquelayout","getDepositos","option","$store","dispatch","START_LOADING","DepositoService","obterTodos","then","itens","deposito","depositoNovoId","catch","error","mensagem","erro","response","errors","finally","STOP_LOADING","validarFormulario","periodoFim","periodoInicial","helpers","$refs","relatorioEstoqueLayout","EstoqueService","obterRelatorioEstoque","documento","bytes","pdf","base64ToArrayBuffer","blob","Blob","type","link","document","createElement","href","window","URL","createObjectURL","download","nomeArquivo","click","err","showErrors","listar","row","component","apiBasePath","params","put","estoqueMovimentoId","body","parametros","DepositosService","form","post","itemId","delete"],"mappings":"gHAAA,gBAEe,QACbA,OACE,MAAO,CACLC,QAASC,O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WyG,IAC3B,GAAEF,gCAA0CG,KAEjD,OAAOtI,GAEX,oBAAoBuI,GAChB,IAAI,KAAEvI,SAAe4B,OAAWyG,IACzBF,EAAF,iBACDI,GAEJ,OAAOvI,GAEX,qBAAqBwI,GACjB,IAAI,KAAExI,SAAe4B,OAAWC,IACzBsG,EAAF,oBAAmC,CAACC,OAAQ,IAAII,KAErD,OAAOxI,GAEX,6BAA6BoI,GACzB,IAAI,KAAEpI,SAAe4B,OAAWC,IACzBsG,EAAF,0BAAwC,CAAEC,WAE/C,OAAOpI,GAEX,4BAA4BoI,GACxB,IAAI,KAAEpI,SAAe4B,OAAWC,IACzBsG,EAAF,oBAAkC,CAAEC,WAEzC,OAAOpI,IAIA2G,U,kCC1Cf,gBAEA,IAAIwB,EAAc,WAElB,MAAMM,EAAmB,CAErB,YAAYC,GACR,IAAI,KAAE1I,SAAe4B,OAAW+G,KAAM,GAAER,EAAeO,GACvD,OAAO1I,GAEX,aAAa0I,GACT,IAAI,KAAE1I,SAAe4B,OAAWyG,IAAK,GAAEF,EAAeO,GACtD,OAAO1I,GAEX,cAAc4I,GACV,IAAI,KAAE5I,SAAe4B,OAAWiH,OAAQ,GAAEV,KAAeS,KACzD,OAAO5I,GAEX,oBAAoB4I,GAChB,IAAI,KAAE5I,SAAe4B,OAAWC,IAAK,GAAEsG,KAAeS,KACtD,OAAO5I,GAEX,wCAAwC4I,GACpC,IAAI,KAAE5I,SAAe4B,OAAWC,IAAK,GAAEsG,gCAA0CS,KACjF,OAAO5I,GAEX,iBAAiBwI,GACb,IAAI,KAAExI,SAAe4B,OAAWC,IAAK,GAAEsG,EAAe,CAAEC,OAAQ,IAAII,KACpE,OAAOxI,IAIAyI","file":"js/chunk-01e5eb2e.eae2e3de.js","sourcesContent":["import store from \"@/store/Store\";\n\nexport default {\n data() {\n return {\n acessos: store.getters.acessos,\n idPagina: this.$router.currentRoute.meta.id,\n };\n },\n computed: {\n listaPermissoes() {\n return this.acessos.find((x) => x.acesso === this.idPagina);\n },\n podeCadastrar() {\n if (store.getters.admin) return true;\n return this.listaPermissoes.permissoes.includes(\"Criar\");\n },\n podeEditar() {\n if (store.getters.admin) return true;\n return this.listaPermissoes.permissoes.includes(\"Atualizar\");\n },\n podeExcluir() {\n if (store.getters.admin) return true;\n return this.listaPermissoes.permissoes.includes(\"Excluir\");\n },\n podeVisualizar() {\n if (store.getters.admin) return true;\n return this.listaPermissoes.permissoes.includes(\"Visualizar\");\n },\n },\n methods: {\n verificarPermissao(id, permissao) {\n if (store.getters.admin) return true;\n let acessoPermissao = this.acessos.find((x) => x.acesso === id);\n if (acessoPermissao) {\n return acessoPermissao.permissoes.includes(permissao);\n }\n return false;\n }\n }\n};\n","import ApiService from '@/common/api/api.service';\n\nconst EnumeradoresService = {\n async listar(enumerador) {\n let { data } = await ApiService.get(`enumeradores/${enumerador}`);\n data.data = data.data.map((linha) => ({\n ...linha,\n objeto: linha,\n text: linha.descricao,\n value: linha.id,\n }));\n return data;\n },\n};\n\nexport default EnumeradoresService;\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RelatorioEstoque.vue?vue&type=style&index=0&id=3f8b1920&prod&lang=css&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('topbar',{attrs:{\"titulo\":_vm.$t('ACADEMICO.IMPRIMIR_RELATORIO_ESTOQUE'),\"subtitulo\":_vm.$t('ACADEMICO.IMPRIMIR_RELATORIO_ESTOQUES'),\"breadcrumbs\":_vm.breadcrumbs}}),_c('b-row',[_c('b-col',{attrs:{\"cols\":\"3\"}},[_c('div',{staticClass:\"button-select\",class:{ selected: _vm.estoqueComMovimentacao },on:{\"click\":function($event){return _vm.selectOption('EstoqueComMovimentacao')}}},[_c('span',{staticClass:\"fa-stack fa-2x\"},[_c('i',{staticClass:\"fas fa-solid fa-arrow-right-arrow-left fa-stack-1x fa-inverse\",staticStyle:{\"color\":\"green\"}})]),_vm._v(\" Com movimentação \")])]),_c('b-col',{attrs:{\"cols\":\"3\"}},[_c('div',{staticClass:\"button-select\",class:{ selected: _vm.estoqueSemMovimentacao },on:{\"click\":function($event){return _vm.selectOption('EstoqueSemMovimentacao')}}},[_c('span',{staticClass:\"fa-stack fa-2x\"},[_c('i',{staticClass:\"fas fa-solid fa-ban fa-stack-1x fa-inverse\",staticStyle:{\"color\":\"red\"}})]),_vm._v(\" Sem movimentação \")])])],1),(_vm.estoqueComMovimentacao || _vm.estoqueSemMovimentacao)?_c('b-row',[(_vm.estoqueComMovimentacao)?_c('b-col',{staticClass:\"mt-3\",attrs:{\"cols\":\"12\",\"md\":\"3\"}},[_c('input-date-only-btn',{ref:\"peridioInicio\",attrs:{\"label\":'Período inicio',\"required\":\"\"},model:{value:(_vm.selecionados.dataInicio),callback:function ($$v) {_vm.$set(_vm.selecionados, \"dataInicio\", $$v)},expression:\"selecionados.dataInicio\"}})],1):_vm._e(),(_vm.estoqueComMovimentacao)?_c('b-col',{staticClass:\"mt-3\",attrs:{\"cols\":\"12\",\"md\":\"3\"}},[_c('input-date-only-btn',{ref:\"periodoFim\",attrs:{\"label\":'Período fim',\"required\":\"\"},model:{value:(_vm.selecionados.dataFim),callback:function ($$v) {_vm.$set(_vm.selecionados, \"dataFim\", $$v)},expression:\"selecionados.dataFim\"}})],1):_vm._e(),_c('b-col',{staticClass:\"mt-3\",attrs:{\"cols\":\"12\",\"md\":\"3\"}},[_c('input-select-search',{ref:\"depositoId\",attrs:{\"label\":_vm.$t(`SUPRIMENTOS.DEPOSITO`),\"options\":_vm.opcoes.depositos},model:{value:(_vm.selecionados.depositoId),callback:function ($$v) {_vm.$set(_vm.selecionados, \"depositoId\", $$v)},expression:\"selecionados.depositoId\"}})],1),_c('b-col',{staticClass:\"mt-3\",attrs:{\"cols\":\"12\",\"md\":\"auto\"}},[(_vm.podeVisualizar)?_c('b-button',{staticClass:\"botao-acao-filtro w-100\",attrs:{\"variant\":\"info\"},on:{\"click\":_vm.realizarImpressaoRelatorioEstoque}},[_vm._v(\" \"+_vm._s(_vm.$t('GERAL.GERAR_RELATORIO'))+\" \")]):_vm._e()],1)],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n \n \n \n \n \n Com movimentação\n \n \n\n \n \n \n \n \n Sem movimentação\n \n \n \n \n \n \n \n\n \n \n \n\n \n \n \n\n \n \n {{ $t('GERAL.GERAR_RELATORIO') }}\n \n \n \n \n\n\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RelatorioEstoque.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RelatorioEstoque.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./RelatorioEstoque.vue?vue&type=template&id=3f8b1920&\"\nimport script from \"./RelatorioEstoque.vue?vue&type=script&lang=js&\"\nexport * from \"./RelatorioEstoque.vue?vue&type=script&lang=js&\"\nimport style0 from \"./RelatorioEstoque.vue?vue&type=style&index=0&id=3f8b1920&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import ApiService from '@/common/api/api.service';\n\nlet apiBasePath = 'Estoque';\n\nconst EstoqueService = {\n async saidaManual(params) {\n let { data } = await ApiService.put(`${apiBasePath}/saida`, params);\n return data;\n },\n async estorno(estoqueMovimentoId) {\n let { data } = await ApiService.put(\n `${apiBasePath}/estorno?estoqueMovimentoId=${estoqueMovimentoId}`\n );\n return data;\n },\n async transferencia(body) {\n let { data } = await ApiService.put(\n `${apiBasePath}/transferencia`,\n body\n );\n return data;\n },\n async obterPorFiltro(parametros) {\n let { data } = await ApiService.get(\n `${apiBasePath}/obter-por-filtro`, {params: {...parametros}}\n );\n return data;\n },\n async buscaSaldoTotalProduto(params) {\n let { data } = await ApiService.get(\n `${apiBasePath}/obter-total-por-filtro`, { params }\n );\n return data;\n },\n async obterRelatorioEstoque(params) {\n let { data } = await ApiService.get(\n `${apiBasePath}/imprimir-estoque`, { params }\n );\n return data;\n }\n};\n\nexport default EstoqueService;\n","import ApiService from '@/common/api/api.service'\n\nlet apiBasePath = 'Deposito'\n\nconst DepositosService = {\n // FUNÇÕES CRUD:\n async criar(form) {\n let { data } = await ApiService.post(`${apiBasePath}`, form)\n return data\n },\n async editar(form) {\n let { data } = await ApiService.put(`${apiBasePath}`, form)\n return data\n },\n async excluir(itemId) {\n let { data } = await ApiService.delete(`${apiBasePath}/${itemId}`)\n return data\n },\n async obterDeposito(itemId) {\n let { data } = await ApiService.get(`${apiBasePath}/${itemId}`)\n return data\n },\n async obterDepositoQuantidadePorProduto(itemId) {\n let { data } = await ApiService.get(`${apiBasePath}/obter-deposito-por-produto/${itemId}`)\n return data\n },\n async obterTodos(parametros) {\n let { data } = await ApiService.get(`${apiBasePath}`, { params: {...parametros}})\n return data\n }\n}\n\nexport default DepositosService"],"sourceRoot":""}