(window.webpackJsonp=window.webpackJsonp||[]).push([[1001],{1828:function(e,t,l){"use strict";l.r(t);var o={name:"MarcasLongitudinais",components:{},props:{monitoracao:{type:Object,required:!0},medidas:{type:Array,default:function(){return[]}},blocked:{type:Boolean,default:function(){return!1}}},data:function(){return{fieldsInscricoes:[{key:"numero",label:"Nro."},{key:"sigla",label:"Elemento"},{key:"media",label:"Média"},{key:"residual",label:"% residual"},{key:"m1",label:"m1"},{key:"m2",label:"m2"},{key:"m3",label:"m3"},{key:"minimo",label:"Minímo"}]}},computed:{isBlockedEditAux:{get:function(){return this.blocked},set:function(e){this.$emit("update:blocked",e)}},monitData:{get:function(){return this.monitoracao},set:function(e){this.$emit("update:monitoracao",e)}},medidasLocal:{get:function(){return this.medidas},set:function(e){this.$emit("update:medidas",e)}}},methods:{lockedEdit:function(){return!0!==this.isBlockedEditAux}}},d=l(42),component=Object(d.a)(o,(function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("b-card",{staticClass:"mt-2"},[l("div",{attrs:{slot:"header"},slot:"header"},[l("b-row",[l("b-col",{attrs:{cols:"10"}},[l("h3",{staticClass:"primary mt-4"},[e._v("Inscrições no Pavimento")])])],1)],1),e._v(" "),l("b-table",{staticClass:"mt-3",staticStyle:{"overflow-x":"scroll"},attrs:{hover:!0,"no-border-collapse":!0,items:e.medidasLocal,fields:e.fieldsInscricoes,"head-variant":"light",responsive:"sm",selectable:"","empty-text":"Não há dados disponíveis.","show-empty":""},scopedSlots:e._u([{key:"cell(sigla)",fn:function(t){return[l("b-form-input",{attrs:{value:t.item.sigla,disabled:e.lockedEdit()},model:{value:e.medidasLocal[t.index].sigla,callback:function(l){e.$set(e.medidasLocal[t.index],"sigla",l)},expression:"medidasLocal[row.index].sigla"}})]}},{key:"cell(media)",fn:function(t){return[l("b-form-input",{attrs:{value:t.item.media,disabled:e.lockedEdit()},model:{value:e.medidasLocal[t.index].media,callback:function(l){e.$set(e.medidasLocal[t.index],"media",l)},expression:"medidasLocal[row.index].media"}})]}},{key:"cell(residual)",fn:function(t){return[l("b-form-input",{attrs:{value:t.item.residual,disabled:e.lockedEdit()},model:{value:e.medidasLocal[t.index].residual,callback:function(l){e.$set(e.medidasLocal[t.index],"residual",l)},expression:"medidasLocal[row.index].residual"}})]}},{key:"cell(m1)",fn:function(t){return[l("b-form-input",{attrs:{value:t.item.m1,disabled:e.lockedEdit()},model:{value:e.medidasLocal[t.index].m1,callback:function(l){e.$set(e.medidasLocal[t.index],"m1",l)},expression:"medidasLocal[row.index].m1"}})]}},{key:"cell(m2)",fn:function(t){return[l("b-form-input",{attrs:{value:t.item.m2,disabled:e.lockedEdit()},model:{value:e.medidasLocal[t.index].m2,callback:function(l){e.$set(e.medidasLocal[t.index],"m2",l)},expression:"medidasLocal[row.index].m2"}})]}},{key:"cell(m3)",fn:function(t){return[l("b-form-input",{attrs:{value:t.item.m3,disabled:e.lockedEdit()},model:{value:e.medidasLocal[t.index].m3,callback:function(l){e.$set(e.medidasLocal[t.index],"m3",l)},expression:"medidasLocal[row.index].m3"}})]}},{key:"cell(minimo)",fn:function(t){return[l("b-form-input",{attrs:{value:t.item.minimo,disabled:e.lockedEdit()},model:{value:e.medidasLocal[t.index].minimo,callback:function(l){e.$set(e.medidasLocal[t.index],"minimo",l)},expression:"medidasLocal[row.index].minimo"}})]}}])}),e._v(" "),l("b-row",{staticClass:"mt-3"},[l("b-col",{attrs:{cols:"3"}},[l("b-form-group",{attrs:{label:"Média Geral:"}},[l("vue-autonumeric",{staticClass:"form-control",attrs:{options:{decimalCharacter:",",decimalPlaces:2,digitGroupSeparator:"."},disabled:""},model:{value:e.monitData.mediaGeral,callback:function(t){e.$set(e.monitData,"mediaGeral",t)},expression:"monitData.mediaGeral"}})],1)],1),e._v(" "),l("b-col",{attrs:{cols:"3"}},[l("b-form-group",{attrs:{label:"% Residual Geral:"}},[l("vue-autonumeric",{staticClass:"form-control",attrs:{options:{decimalCharacter:",",decimalPlaces:2,digitGroupSeparator:"."},disabled:""},model:{value:e.monitData.residualGeral,callback:function(t){e.$set(e.monitData,"residualGeral",t)},expression:"monitData.residualGeral"}})],1)],1),e._v(" "),l("b-col",{attrs:{cols:"3"}},[l("b-form-group",{attrs:{label:"Situação Geral:"}},[l("b-form-input",{staticClass:"bg-danger text-white",attrs:{value:"R"==e.monitData.situacaoGeral?"Reprovado":"Aprovado",disabled:""}})],1)],1),e._v(" "),l("b-col",{attrs:{cols:"3"}},[l("b-form-group",{attrs:{label:"Aparência Geral:"}},[l("b-form-input",{attrs:{readonly:"",value:"B"===e.monitData.aparenciaGeral?"Boa":"R"===e.monitData.aparenciaGeral?"Regular":"Ruim",disabled:""}})],1)],1)],1)],1)}),[],!1,null,null,null);t.default=component.exports}}]);
//# sourceMappingURL=9a4d675-1.2.11.js.map