(window.webpackJsonp=window.webpackJsonp||[]).push([[665],{2214:function(t,o,e){"use strict";e.r(o);e(6),e(5),e(7),e(4),e(12),e(8),e(13);var r=e(2),c=e(78);function n(object,t){var o=Object.keys(object);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(object);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),o.push.apply(o,e)}return o}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(o){Object(r.a)(t,o,source[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):n(Object(source)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(source,o))}))}return t}var m={name:"ObrigacaoLancamento",data:function(){return{lancamento:{},obrigacao:{nome:null,entidade:{nome:null},setor:{},responsavelSetor:{nome:null}}}},computed:l({},Object(c.c)({empresa:"empresa/empresaAtual"})),mounted:function(){var t=this,o=this.$route.params.edit,e=this.$route.params.sequencia;console.log("route==>",this.$route.params),this.$obrigacaoService.getLancamentoById(this.empresa.sigla,o,e).then((function(o){t.lancamento=o.data,t.obrigacao=l({},t.lancamento.obrigacao)}))},methods:{cancel:function(){this.$nuxt.$options.router.push("/obrigacao/agenda")}}},d=e(42),component=Object(d.a)(m,(function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"main-content"},[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-card",[e("div",{staticClass:"mt-3",attrs:{slot:"header"},slot:"header"},[e("h5",[t._v(t._s(t.obrigacao.nome))])]),t._v(" "),e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Descrição:"}},[e("b-form-textarea",{attrs:{rows:"3",cols:"50"},model:{value:t.obrigacao.descricao,callback:function(o){t.$set(t.obrigacao,"descricao",o)},expression:"obrigacao.descricao"}})],1)],1),t._v(" "),e("b-col",{attrs:{cols:"4"}},[e("b-form-group",{attrs:{label:"Prazo obrigação:"}},[e("b-form-input",{attrs:{type:"date"},model:{value:t.lancamento.datObrigacao,callback:function(o){t.$set(t.lancamento,"datObrigacao",o)},expression:"lancamento.datObrigacao"}})],1)],1),t._v(" "),e("b-col",{attrs:{cols:"4"}},[e("b-form-group",{attrs:{label:"Data entrega:"}},[e("b-form-input",{attrs:{type:"date"},model:{value:t.lancamento.datEntrega,callback:function(o){t.$set(t.lancamento,"datEntrega",o)},expression:"lancamento.datEntrega"}})],1)],1),t._v(" "),e("b-col",{attrs:{cols:"4"}},[e("b-form-group",{attrs:{label:"Formato:"}},[e("b-form-input",{attrs:{disabled:""},model:{value:t.obrigacao.formato,callback:function(o){t.$set(t.obrigacao,"formato",o)},expression:"obrigacao.formato"}})],1)],1),t._v(" "),e("b-col",{attrs:{cols:"5"}},[e("b-form-group",{attrs:{label:"Área:"}},[e("b-form-input",{attrs:{disabled:""},model:{value:t.obrigacao.area,callback:function(o){t.$set(t.obrigacao,"area",o)},expression:"obrigacao.area"}})],1)],1),t._v(" "),e("b-col",{attrs:{cols:"7"}},[e("b-form-group",{attrs:{label:"Entidade:"}},[e("b-form-input",{attrs:{disabled:""},model:{value:t.obrigacao.entidade.nome,callback:function(o){t.$set(t.obrigacao.entidade,"nome",o)},expression:"obrigacao.entidade.nome"}})],1)],1),t._v(" "),e("b-col",{attrs:{cols:"5"}},[e("b-form-group",{attrs:{label:"Setor:"}},[e("b-form-input",{attrs:{disabled:""},model:{value:t.obrigacao.setor.descricao,callback:function(o){t.$set(t.obrigacao.setor,"descricao",o)},expression:"obrigacao.setor.descricao"}})],1)],1),t._v(" "),e("b-col",{attrs:{cols:"7"}},[e("b-form-group",{attrs:{label:"Responsável setor:"}},[e("b-form-input",{attrs:{disabled:""},model:{value:t.obrigacao.responsavelSetor.nome,callback:function(o){t.$set(t.obrigacao.responsavelSetor,"nome",o)},expression:"obrigacao.responsavelSetor.nome"}})],1)],1)],1)],1)],1)],1),t._v(" "),e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-card",{staticClass:"mt-3"},[e("div",{staticClass:"mt-3",attrs:{slot:"header"},slot:"header"},[e("h5",[t._v("Correspondências")])])])],1)],1),t._v(" "),e("b-card",{staticClass:"mt-3"},[e("b-row",[e("b-col",[e("b-button",{staticClass:"my-2 ml-2 rounded",attrs:{size:"sm",variant:"success",type:"submit"}},[e("fa-icon",{attrs:{icon:"save"}}),t._v(" "),e("span",{staticClass:"ml-1"},[t._v("Salvar")])],1),t._v(" "),e("b-button",{staticClass:"my-2 ml-2 rounded",attrs:{size:"sm",variant:"outline-secondary"},on:{click:t.cancel}},[e("fa-icon",{attrs:{icon:"times"}}),t._v(" "),e("span",{staticClass:"ml-1"},[t._v("Cancelar")])],1)],1)],1)],1)],1)}),[],!1,null,null,null);o.default=component.exports}}]);
//# sourceMappingURL=ee7568e-1.2.11.js.map