(window.webpackJsonp=window.webpackJsonp||[]).push([[454],{1959:function(t,e,o){"use strict";o.r(e);o(6),o(5),o(7),o(4),o(12),o(8),o(13);var r=o(2),c=o(78);function n(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,o)}return e}function l(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?n(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):n(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var d={name:"RacHistorico",data:function(){return{historicos:[],variant:"white",loading:!1}},computed:l({},Object(c.c)({empresa:"empresa/empresaAtual",idRac:"rac/idRacHist"})),watch:{idRac:function(){console.log("ModalHistoricoRAC=>",this.idRac),null!==this.idRac&&(this.loading=!0,this.findHistoricos())}},methods:l(l({},Object(c.b)({clearIdRacHist:"rac/clearIdRacHist"})),{},{cancelModalHistorico:function(){this.clearIdRacHist(),this.historicos=[],this.$bvModal.hide("modalHistorico")},findHistoricos:function(){var t=this;this.historicos=[],this.$racService.findHistoricosRac(this.empresa.sigla,this.idRac).then((function(e){t.historicos=e.data,t.loading=!1})).catch((function(e){t.loading=!1,t.$notify({group:"msgs",title:"Erro",text:e.response?e.response.data.message:e,type:"error"})}))}})},h=o(42),component=Object(h.a)(d,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("b-modal",{attrs:{id:"modalHistorico",size:"lg",centered:"","hide-header-close":"","hide-footer":"","no-close-on-backdrop":""},scopedSlots:t._u([{key:"modal-title",fn:function(){return[t._v(" Histórico da RAC ")]},proxy:!0}])},[t._v(" "),o("b-overlay",{staticClass:"mt-2",attrs:{variant:t.variant,show:t.loading,rounded:"false"},scopedSlots:t._u([{key:"overlay",fn:function(){return[o("div",{staticClass:"text-center"},[o("b-spinner",{staticClass:"font-weight-bold",staticStyle:{width:"2, 5rem",height:"2, 5rem"},attrs:{variant:"primary"}}),t._v(" "),o("p",{staticClass:"font-weight-bold"},[t._v("Carregando...")])],1)]},proxy:!0}])},[t._v(" "),o("b-row",[o("b-col",{attrs:{sm:"12",md:"12",xl:"12"}},[o("div",[t.historicos.length>0?o("b-list-group",t._l(t.historicos,(function(e,r){return o("b-list-group-item",{key:r,attrs:{href:"#"}},[t._v("\n              "+t._s(t._f("formatDateTime")(e.datHorHistorico))+"\n              "+t._s(" - "+e.usuario.nome)+"\n              "+t._s(" - "+e.descricao)+"\n            ")])})),1):t._e(),t._v(" "),0==t.historicos.length?o("b-list-group",[o("b-list-group-item",[o("h6",[t._v("RAC sem histórico")])])],1):t._e()],1)])],1)],1),t._v(" "),o("b-row",{staticClass:"mt-2 pt-3"},[o("b-button",{staticClass:"my-2 ml-2 rounded",attrs:{size:"sm",variant:"outline-secondary"},on:{click:function(e){return t.cancelModalHistorico()}}},[o("fa-icon",{attrs:{icon:"undo-alt"}}),t._v(" "),o("span",{staticClass:"ml-1"},[t._v("Voltar")])],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports}}]);
//# sourceMappingURL=ed987e5-1.2.11.js.map