(window.webpackJsonp=window.webpackJsonp||[]).push([[215],{2062: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),n=e(78);function d(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 c(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(o){Object(r.a)(t,o,source[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(source,o))}))}return t}var l={components:{ValidationProvider:e(307).ValidationProvider},props:{dados:{type:Object,default:function(){},required:!0},getValidationState:{type:Function,default:function(){return!1},required:!0}},data:function(){return{optionsTipoPontoControle:[]}},computed:c(c({},Object(n.c)({empresa:"empresa/empresaAtual"})),{},{dadosComputados:{get:function(){return this.dados},set:function(t){this.$emit("update:dados",t)}},validation:{get:function(){return this.getValidationState},set:function(t,o){this.$emit("update:validation",t)}}}),mounted:function(){this.findObras(),this.findTipoPontoControle()},methods:{findObras:function(){var t=this;this.$obraService.findObras(this.empresa.sigla).then((function(o){t.optionsObra=o.data})).catch((function(o){t.$notifyApiError(o,"Erro")}))},findTipoPontoControle:function(){var t=this;this.$tipoPontoControleService.findTiposPontoControle(null).then((function(o){t.optionsTipoPontoControle=o.data})).catch((function(o){t.$notifyApiError(o,"Erro ao buscar tipos de ponto de controle")}))}}},f=e(42),component=Object(f.a)(l,(function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("b-card",[e("div",{staticClass:"mt-4",attrs:{slot:"header"},slot:"header"},[e("b-row",[e("b-col",{staticClass:"d-flex justify-content-start"},[e("fa-icon",{staticStyle:{"font-size":"1.3rem"},attrs:{icon:"ticket-alt"}}),t._v(" "),e("h3",{staticClass:"ml-3"},[t._v("Informações")])],1)],1)],1),t._v(" "),e("b-row",[e("b-col",{attrs:{cols:"6"}},[e("validation-provider",{attrs:{name:"Descrição",rules:{required:!0}},scopedSlots:t._u([{key:"default",fn:function(o){return[e("b-form-group",{attrs:{label:"Descrição:"}},[e("b-form-input",{attrs:{type:"text",maxlength:"150",disabled:"D"===t.dadosComputados.status,state:t.validation(o)},model:{value:t.dadosComputados.descricao,callback:function(o){t.$set(t.dadosComputados,"descricao",o)},expression:"dadosComputados.descricao"}})],1)]}}])})],1),t._v(" "),e("b-col",{attrs:{cols:"6"}},[e("validation-provider",{attrs:{name:"Tipo",rules:{required:!0}},scopedSlots:t._u([{key:"default",fn:function(o){return[e("b-form-group",{attrs:{label:"Tipo:"}},["D"!==t.dadosComputados.status?e("InputAutocomplete",{attrs:{placeholder:"Selecione...","return-key":"id",items:t.optionsTipoPontoControle,render:function(t){return t.descricao},state:t.validation(o)},model:{value:t.dadosComputados.idTipo,callback:function(o){t.$set(t.dadosComputados,"idTipo",o)},expression:"dadosComputados.idTipo"}}):void 0!==t.dadosComputados.tipo?e("b-form-input",{attrs:{disabled:""},model:{value:t.dadosComputados.tipo.descricao,callback:function(o){t.$set(t.dadosComputados.tipo,"descricao",o)},expression:"dadosComputados.tipo.descricao"}}):e("b-form-input",{staticClass:"my-2",attrs:{disabled:""}})],1)]}}])})],1)],1)],1)}),[],!1,null,null,null);o.default=component.exports;installComponents(component,{InputAutocomplete:e(399).default})}}]);
//# sourceMappingURL=a8ea000-1.2.11.js.map