"use strict";(self["webpackChunkcarabi_x2"]=self["webpackChunkcarabi_x2"]||[]).push([[2340],{9949:function(t,e,i){i.r(e),i.d(e,{default:function(){return c}});var l=function(){var t=this,e=t._self._c;return e("Modal",{ref:"modal",attrs:{title:"О маршруте",autoOpen:!0,fullHeight:!1},on:{closed:function(e){return t.$emit("closed")}}},[t.info?e("div",{staticClass:"uk-padding-small",staticStyle:{"flex-grow":"1","min-height":"1px",overflow:"auto"}},[e("div",{staticStyle:{display:"grid","grid-template-columns":"1fr 1fr","grid-gap":"10px"}},t._l(t.displays,(function(i){return e("div",{key:i.label},[e("div",{staticClass:"uk-text-right"},[t._v(t._s(i.label))]),e("div",{staticClass:"uk-text-bold"},[t._v(t._s(i.value))])])})),0)]):e("div",{staticClass:"uk-padding-small",staticStyle:{height:"200px",position:"relative"}},[e("Loader")],1)])},a=[],n=i(3216);const s=[{name:"START_TIME",label:"Начало",unit:""},{name:"FINISH_TIME",label:"Окончание",unit:""},{name:"TRANSPORT_NAME",label:"Транспорт",unit:""},{name:"TOTAL_GAS",label:"Расход топлива",unit:"л"},{name:"TOTAL_LENGTH",label:"Общий пробег",unit:"км"},{name:"TRACE_LENGTH",label:"Пробег по МЛ",unit:"км"}];var o={name:"LogisticRouteInfo",props:{model:Object},components:{Modal:()=>i.e(8362).then(i.bind(i,2215)),Loader:()=>i.e(8326).then(i.bind(i,1259))},data:()=>({info:null}),computed:{route(){return this.model.curRoute},displays(){if(null===this.info)return[];let t=[];for(let e of s)this.info[e.name]&&t.push({label:e.label,value:this.info[e.name]+(e.unit?" "+e.unit:"")});return t}},async created(){this.info=await n.vd.selectRow("GET_DRIVER_DAY_INFO",{employee_id:this.route.DRIVER_ID,day:this.model.curDateTxt}),this.info.START_TIME=this.info.START_TIME.replace(this.model.curDateTxt+" ",""),this.info.FINISH_TIME=this.info.FINISH_TIME.replace(this.model.curDateTxt+" ","")},methods:{}},u=o,r=i(1656),d=(0,r.A)(u,l,a,!1,null,null,null),c=d.exports}}]);
//# sourceMappingURL=LogisticRouteInfo.ed840b3f.js.map