"use strict";(self["webpackChunkfront"]=self["webpackChunkfront"]||[]).push([[967],{49344:function(t,e,s){s.d(e,{Z:function(){return l}});var o=s(16746),i=s(75352),r=(0,i.Ji)("v-breadcrumbs__divider","li"),a=s(96669),n=s(67678),l=(0,n.Z)(a.Z).extend({name:"v-breadcrumbs",props:{divider:{type:String,default:"/"},items:{type:Array,default:()=>[]},large:Boolean},computed:{classes(){return{"v-breadcrumbs--large":this.large,...this.themeClasses}}},methods:{genDivider(){return this.$createElement(r,this.$slots.divider?this.$slots.divider:this.divider)},genItems(){const t=[],e=!!this.$scopedSlots.item,s=[];for(let i=0;i{}},chatview:{type:Boolean,default:!0},indx:{type:Number,default:0},level:{type:Number,default:1}},data:()=>({dialogdetail:!1,person:{},show:!1,comment:"",menu:!1,action_confirm:!1,comment_up:"",level_helper:[{},{type:"Проект",responsible:"rp",r_text:"Руководитель проекта",store:"getProject",child:"project_tasks"},{type:"Задача",responsible:"responsible",r_text:"Ответственный",store:"gettasks",child:"task_work"},{type:"Работа",responsible:"responsible",r_text:"Ответственный",store:"getworks",child:"work_assignment"},{type:"Поручение",responsible:"responsible",r_text:"Исполнитель",store:"getworks"}]}),computed:{...f(["getUser"]),...v.mapGetters(["getworks"]),..._.mapGetters(["allpersons","getProject"]),...g.mapGetters(["gettasks"]),daycalc(){return this.calcdays(this.todo.datestart,this.todo.dateend,this.todo.status,3,5)},parentresp(){if(this.level>2)return void 0!=this.todo.parent.responsible?this.todo.parent.responsible:0;{console.log(this.todo,"TODO");let t=this.todo.parent.users;return t=t.find((t=>2==t.role.id)),console.log(t,"aaaa"),void 0!=t?t.user:0}},todo(){let t={parent:this[this.level_helper[this.level-1].store]},e=this.indx>0?this.getworks.work_assignment[this.indx-1]:this[this.level_helper[this.level].store];return console.log({...e,...t},"CURPAR"),{...e,...t}},workaccepted(){try{let t=0;return this.todo[this.level_helper[this.level].child].forEach((e=>{5==e.status.id&&(t+=1)})),t/this.todo[this.level_helper[this.level].child].length*100}catch(t){return"0"}},checkRESP(){return console.log(this.todo,"TOTOTOTODO"),this.todo.responsible.id==this.getUser.id}},mounted(){d().locale("ru")},methods:{...v.mapMutations(["setWorks"]),chs(t){this.$emit("changestatus",{val:this.todo,action:4,h_action:7,comment:this.comment_up.length>0?this.comment_up:null,ididit:t}),this.comment_up="",this.action_confirm=!1},parenthref(){if(0==this.indx){let t=this.$route.path.split("/");t.length=t.length-2,this.$router.push(t.join("/"))}else this.$emit("changetab",0)},childready(){if(this.inf.child in this.inf.data&&0==this.inf.data[this.inf.child].length)return!0;try{return this.inf.data[this.inf.child].every((t=>[3,5].includes(t.status.id)))}catch{return!1}},showuserinfo(t){this.person=this.searchUser(t,this.allpersons),this.dialogdetail=!0},dialogger(){l.$.$emit("chatuserdialog",{place:"rightchat",chat:{id:this.chat.id,level:this.chat.level,parent:this.chat.parent}})}}},y=w,x=s(43736),b=s(43453),k=s.n(b),C=s(37359),Z=s(49344),S=s(16746),$=s(60266),O=s(99223),j=s(44568),N=s(29592),V=s(73905),D=s(11713),A=s(92648),I=(0,x.Z)(y,o,i,!1,null,null,null),M=I.exports;k()(I,{VAlert:C.Z,VBreadcrumbs:Z.Z,VBreadcrumbsItem:S.Z,VCol:$.Z,VDivider:O.Z,VMenu:j.Z,VProgressLinear:N.Z,VRating:V.Z,VRow:D.Z,VTextarea:A.Z})},55188:function(t,e,s){s.d(e,{Z:function(){return g}});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("v-row",{staticClass:"flex-grow-0 px-5"},[s("v-col",{staticClass:"pb-0 pt-2"},[s("v-text-field",{staticClass:"mb-0 pt-0",attrs:{label:"Введите краткое название",required:"","hide-details":""},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1)],1),s("v-row",{staticClass:"flex-grow-0 px-5"},[s("v-col",{staticClass:"pb-0 pt-2"},[s("v-text-field",{staticClass:"mb-0 pt-0",attrs:{label:"Введите полное название",required:"","hide-details":""},model:{value:t.longname,callback:function(e){t.longname=e},expression:"longname"}})],1)],1),s("v-row",{staticClass:"flex-grow-0 px-5"},[s("v-col",{staticClass:"align-self-center py-0"},[s("Datepiker",{attrs:{mb:"mt-0 pt-1",min:t.actionmethod.min,max:t.actionmethod.max,datestartstore:t.actionmethod.datestartstore,dateendstore:t.actionmethod.dateendstore}})],1),s("v-col",{staticClass:"align-self-end py-0"},[s("v-select",{attrs:{"item-text":"text","item-value":"id",items:t.resources,label:t.actionmethod.responsible_text,required:"","return-object":""},model:{value:t.responsible,callback:function(e){t.responsible=e},expression:"responsible"}})],1)],1),s("v-row",{staticClass:"flex-grow-0 px-5"},[s("v-col",{staticClass:"pb-0 pt-2 d-flex"},[s("span",{staticClass:"caption"},[t._v("Сложность:")]),t._v(" "),s("v-rating",{staticClass:"pb-2",attrs:{color:"warning","empty-icon":"mdi-star-outline","full-icon":"mdi-star","half-icon":"mdi-star-half-full",hover:"",length:"5",size:"16"},model:{value:t.difficult,callback:function(e){t.difficult=e},expression:"difficult"}})],1)],1),s("v-row",{staticClass:"px-5 mt-0"},[s("v-col",{staticClass:"py-0"},[s("v-textarea",{staticClass:"inputext aa_border",attrs:{"hide-details":"",label:"Описание",rows:"4","auto-grow":""},model:{value:t.description,callback:function(e){t.description=e},expression:"description"}})],1)],1)],1)},i=[],r={name:"AddAssigment",props:{actionmethod:{type:Object,default:()=>{}},dialoginfo:{type:Object,default:()=>({})},resources:{type:Array,default:()=>[]}},computed:{name:{get(){return this.dialoginfo.name},set(t){this.$emit("changeddialog",Object.assign(this.dialoginfo,{name:t}))}},longname:{get(){return this.dialoginfo.longname},set(t){this.$emit("changeddialog",Object.assign(this.dialoginfo,{longname:t}))}},responsible:{get(){return this.dialoginfo.responsible},set(t){this.$emit("changeddialog",Object.assign(this.dialoginfo,{responsible:t}))}},description:{get(){return this.dialoginfo.description},set(t){this.$emit("changeddialog",Object.assign(this.dialoginfo,{description:t}))}},difficult:{get(){return this.dialoginfo.difficult},set(t){this.$emit("changeddialog",Object.assign(this.dialoginfo,{difficult:t}))}}}},a=r,n=s(43736),l=s(43453),c=s.n(l),d=s(60266),u=s(73905),p=s(11713),h=s(57135),m=s(17808),f=s(92648),v=(0,n.Z)(a,o,i,!1,null,null,null),g=v.exports;c()(v,{VCol:d.Z,VRating:u.Z,VRow:p.Z,VSelect:h.Z,VTextField:m.Z,VTextarea:f.Z})}}]); //# sourceMappingURL=967.f519fe46.js.map