(window.webpackJsonp=window.webpackJsonp||[]).push([[192],{1472:function(e,t,c){"use strict";c.r(t);c(4),c(31),c(32),c(165),c(15),c(73);var n={props:{racs:{type:Array,default:function(){return[]},required:!0},checklist:{type:Object,default:function(){},required:!1}},data:function(){return{fieldsRac:[{key:"numero",label:"Número"},{key:"datInspecao",label:"Data Inspeção"},{key:"prazo",label:"Prazo"},{key:"descricao",label:"Descrição"}]}},methods:{goToRAC:function(e){var t,c=new URLSearchParams;null!==(t=this.checklist)&&void 0!==t&&t.numero&&(c.append("src","checklist"),c.append("checklist",this.checklist.numero),sessionStorage.setItem("checklistOrigin",this.checklist.numero),sessionStorage.setItem("racDestination",e.id.idRac));var n="".concat(c.size>0?"?":"").concat(c.toString()),r=this.$router.resolve({path:"/ambiental/fichas/rac/".concat(e.id.idRac).concat(n)});window.open(r.href,"_blank"),this.$bvModal.hide("modalRac"),this.$emit("racVisualized",e)}}},r=c(42),component=Object(r.a)(n,(function(){var e=this,t=e.$createElement,c=e._self._c||t;return c("b-card",[c("div",{staticClass:"mt-4",attrs:{slot:"header"},slot:"header"},[c("b-row",[c("b-col",{staticClass:"d-flex justify-content-start"},[c("fa-icon",{staticStyle:{"font-size":"1.5rem"},attrs:{icon:"tree"}}),e._v(" "),c("h3",{staticClass:"ml-3"},[e._v("RAC")])],1)],1)],1),e._v(" "),c("b-row",[c("b-table",{staticClass:"mt-2",staticStyle:{cursor:"pointer"},attrs:{striped:"",hover:"","show-empty":"",fields:e.fieldsRac,items:e.racs,"empty-text":"Não há RAC incluída."},on:{"row-clicked":e.goToRAC},scopedSlots:e._u([{key:"cell(numero)",fn:function(t){return[e._v("\n        "+e._s(t.item.numero)+"\n      ")]}},{key:"cell(descricao)",fn:function(t){return[void 0!==t.item.descricao?c("div",[e._v("\n          "+e._s(t.item.descricao.length>400?t.item.descricao.substring(0,400)+"...":t.item.descricao)+"\n        ")]):e._e()]}},{key:"cell(datInspecao)",fn:function(t){return[e._v("\n        "+e._s(e._f("formatDate")(t.item.datInspecao))+"\n      ")]}}])})],1)],1)}),[],!1,null,null,null);t.default=component.exports}}]);
//# sourceMappingURL=d7f6c40-1.2.11.js.map