(window.webpackJsonp=window.webpackJsonp||[]).push([[1210],{1669:function(t,e,r){var content=r(2231);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(122).default)("50841517",content,!0,{sourceMap:!1})},2230:function(t,e,r){"use strict";r(1669)},2231:function(t,e,r){var o=r(121)(!1);o.push([t.i,".verticaltext{width:1px;word-wrap:break-word;white-space:pre-wrap}",""]),t.exports=o},2628:function(t,e,r){"use strict";r.r(e);r(6),r(5),r(12),r(8),r(13);var o=r(2),c=(r(7),r(4),r(207)),n=r.n(c),l=r(78);function d(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}var v=r(404);n.a.extend(v);var f={data:function(){return{isOpen:!1,filter:{expirado:"s",arquivos:"p"},rac:[],optionsStatus:[],logs:[]}},computed:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Object(l.c)({empresa:"empresa/empresaAtual",empresas:"empresa/empresas"})),mounted:function(){this.findLogs(),this.findRacs(),this.findStatus()},methods:{findLogs:function(){var t=this,e=n()().format("YYYY-MM-DD");this.$racService.findLogs(this.empresa.sigla,n()().utc(e,"YYYY-MM-DD").format(),n()().utc(e,"YYYY-MM-DD").format()).then((function(e){var r=e.data;if(void 0!==r&&r.length>0)for(var o=r.length>5?r.length-5:r.length-1;o<r.length;o++){var element=r[o];void 0!==element&&t.logs.push({quem:element.usuario.nome,oque:element.descricao,quando:n()(element.datHorHistorico).format("DD/MM/YYYY HH:mm")})}}))},findRacs:function(){var t=this;this.$racService.findRacs(this.empresa.sigla,this.filter).then((function(e){for(var r=0;r<e.data.length;r++)if(r>=e.data.length-5){var element=e.data[r];t.rac.push({codigo:element.numero,status:t.findStatus(element.status),atualizacao:n()(element.datCriacao).format("DD/MM/YYYY")}),t.rac=t.rac.reverse()}}))},findStatus:function(t){return"P"===t?"Pendente":"G"===t?"Aguardando":"V"===t?"Aprovação":"A"===t?"Aprovada":"R"===t?"Reprovada":"E"===t?"Encerrada":"X"===t?"Executada":"C"===t?"Cancelada":void 0}}},h=f,_=(r(2230),r(42)),component=Object(_.a)(h,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"customizer",class:{open:t.isOpen}},[r("div",{staticClass:"handle",on:{click:function(e){t.isOpen=!t.isOpen}}},[r("i",{staticClass:"i-Reload spin"})]),t._v(" "),r("vue-perfect-scrollbar",{staticClass:"customizer-body ps rtl-ps-none",attrs:{settings:{suppressScrollX:!0,wheelPropagation:!1}}},[r("div",{},[r("div",{staticClass:"log-card-header",attrs:{id:"headingOne"}},[r("h5",{staticClass:"mb-0 text-center text-white font-weight-bold"},[t._v("LOG")])]),t._v(" "),r("div",{staticClass:"card-body"},[r("h5",{staticClass:"card-title"},[r("i",{staticClass:"i-Tree-3"}),t._v(" RAC")]),t._v(" "),r("table",{staticClass:"table"},[r("thead",[r("tr",[r("th",{attrs:{scope:"col"}},[t._v("Código")]),t._v(" "),r("th",{attrs:{scope:"col"}},[t._v("Status")]),t._v(" "),r("th",{attrs:{scope:"col"}},[t._v("Atualização")])])]),t._v(" "),r("tbody",t._l(t.rac,(function(e,o){return r("tr",{key:o},[r("th",{attrs:{scope:"row"}},[t._v(t._s(e.codigo))]),t._v(" "),r("td",[t._v(t._s(e.status))]),t._v(" "),r("td",[t._v(t._s(e.atualizacao))])])})),0)]),t._v(" "),r("hr"),t._v(" "),r("h5",{staticClass:"card-title"},[r("i",{staticClass:"i-Reload"}),t._v(" Log")]),t._v(" "),r("table",{staticClass:"table"},[r("thead",[r("tr",[r("th",{attrs:{scope:"col"}},[t._v("Quem?")]),t._v(" "),r("th",{attrs:{scope:"col"}},[t._v("O que?")]),t._v(" "),r("th",{attrs:{scope:"col"}},[t._v("Quando?")])])]),t._v(" "),r("tbody",t._l(t.logs,(function(e,o){return r("tr",{key:o+e},[r("th",{attrs:{scope:"row"}},[t._v(t._s(e.quem))]),t._v(" "),r("td",[t._v(t._s(e.oque))]),t._v(" "),r("td",[t._v(t._s(e.quando))])])})),0)])])])])],1)])}),[],!1,null,null,null);e.default=component.exports}}]);
//# sourceMappingURL=1280820-1.2.11.js.map