(window.webpackJsonp=window.webpackJsonp||[]).push([[400],{2202:function(e,r,t){"use strict";t.r(r);t(6),t(5),t(7),t(4),t(12),t(8),t(13);var n=t(2),o=t(78);function c(object,e){var r=Object.keys(object);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(object);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),r.push.apply(r,t)}return r}var l={props:{},data:function(){return{observacaoEncerramento:""}},computed:function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(r){Object(n.a)(e,r,source[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(source,r))}))}return e}({},Object(o.c)({empresa:"empresa/empresaAtual",empresas:"empresa/empresas"})),methods:{saveEncerramento:function(){var e=this;this.$correspondenciaService.executeEncerrar(this.empresa.sigla,{observacaoEncerramento:this.observacaoEncerramento}).then((function(){e.$bvModal.hide("encerramento"),e.$bvToast.toast("Encerramento realizado com sucesso",{title:"Sucesso",variant:"success",solid:!0})})).catch((function(r){e.$bvToast.toast(r,{title:"Erro",variant:"danger",solid:!0})}))}}},m=l,d=t(42),component=Object(d.a)(m,(function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("b-modal",{attrs:{id:"encerramento",size:"md",centered:"","hide-header-close":"","hide-footer":""},scopedSlots:e._u([{key:"modal-header",fn:function(){return[t("h5",{staticClass:"modal-title"},[e._v("Confirma o encerramento deste oficio")])]},proxy:!0}])},[e._v(" "),t("b-col",[t("b-form-group",{attrs:{label:"Informações encerramento:"}},[t("b-form-textarea",{staticClass:"my-2",model:{value:e.observacaoEncerramento,callback:function(r){e.observacaoEncerramento=r},expression:"observacaoEncerramento"}})],1),e._v(" "),t("b-row",[t("b-button",{attrs:{variant:"primary"},on:{click:e.saveEncerramento}},[e._v("\n        Salvar\n      ")]),e._v(" "),t("b-col",{staticClass:"d-flex justify-content-end"},[t("b-button",{attrs:{variant:"secondary"},on:{click:function(r){return e.$bvModal.hide("encerramento")}}},[e._v("\n          Cancelar\n        ")])],1)],1)],1)],1)}),[],!1,null,null,null);r.default=component.exports}}]);
//# sourceMappingURL=e9360f9-1.2.11.js.map