{"version":3,"sources":["webpack:///./src/components/Pages/PageDefault/PageDefault.vue?05d0","webpack:///./src/components/TreeviewSubordination/TreeviewSubordination.vue?e087","webpack:///./src/components/Pages/PageDefault/PageDefault.vue?cc0b","webpack:///./src/components/Pages/PageDefault/props.js","webpack:///src/components/Pages/PageDefault/PageDefault.vue","webpack:///./src/components/Pages/PageDefault/PageDefault.vue?841d","webpack:///./src/components/Pages/PageDefault/usePageDefault.js","webpack:///./src/components/Pages/PageDefault/PageDefault.vue","webpack:///./src/components/TreeviewSubordination/TreeviewSubordination.vue?bdd2","webpack:///./src/components/TreeviewSubordination/props.js","webpack:///./src/components/TreeviewSubordination/TreeviewSubordination.vue?899e","webpack:///src/components/TreeviewSubordination/TreeviewSubordination.vue","webpack:///./src/components/TreeviewSubordination/useTreeSubordination.js","webpack:///./src/components/TreeviewSubordination/TreeviewSubordination.vue","webpack:///./src/components/uikit/UiCard/UiCard.vue?a621","webpack:///./src/components/uikit/UiCard/UiCard.vue?80e5","webpack:///./src/components/uikit/UiCard/UiCard.vue?61f0","webpack:///src/components/uikit/UiCard/UiCard.vue","webpack:///./src/components/uikit/UiCard/props.js","webpack:///./src/components/uikit/UiCard/UiCard.vue","webpack:///./src/components/uikit/UiCard/index.js","webpack:///./src/common/estimate/helpers.js","webpack:///./src/components/Pages/PageDefault/PageDefault.vue?7fce","webpack:///./src/components/uikit/UiCard/UiCard.vue?ce80","webpack:///./src/views/Papers/PapersHR.vue?ab3a","webpack:///./src/views/Papers/PapersHR.vue?e991","webpack:///src/views/Papers/PapersHR.vue","webpack:///./src/views/Papers/PapersHR.vue","webpack:///./src/components/TreeviewSubordination/TreeviewSubordination.vue?930d"],"names":["module","exports","title","type","String","routeBackLink","icon","isLoadingContent","Boolean","default","isBordered","isScreenSetDisabled","isHeaderContent","isAdaptiveBlock","size","isWithoutBorder","isStepBackOff","maxWidth","isWithoutPadding","isTranslateTitleOff","components","UiContainer","UiCard","UiLoader","StepBack","props","setup","dispatch","useStore","isLoading","ref","usePage","getSectionIcon","getPageTitle","pageTitle","computed","isTitleHidden","sectionIcon","onMounted","a","value","component","_obj","_vm","this","_h","$createElement","_c","_self","attrs","_e","class","$style","Header","Padding","HeaderTitle","HeaderContent","_t","context","locals","list","Array","blockingList","isCurrentUser","emits","emit","state","getters","treeItemList","profile","getProfile","subordination","app","items","length","forEach","element","isExist","find","i","employee_id","item","disabled","push","estimate","getStructureSubordination","setTree","map","emp","some","e","APP_GET_STRUCTURE_TREE","employeeId","data","rootCurrentUser","selection","getLanguageField","watch","onUpdateSelection","newValue","methods","clearSelection","$emit","handleSearch","val","allOpened","lastOpen","open","$refs","tree","updateAll","Content","Section","Search","$t","on","model","callback","$$v","search","expression","Tree","selectionType","$event","scopedSlots","_u","key","fn","locked","unassigned","_v","_s","_l","node","id","EmployeePosition","Container","AdaptiveBlock","WithoutBorder","checkFormAvailable","formId","role","workflow","store","routeName","router","$route","name","isAvailable","isDisabled","form","getForm","checkRole","meta","workflowItem","object_id","business_role","status_id","editable","checkDeadline","Date","toISOString","slice","checkTableFilter","user","year","filter","currentEstimate","Number","checkUrlId","checkPeriodId","route","period","sub","hr","checkFieldAvailable","fieldRole","formAvailable","setArchiveList","forms","currentYear","helpers","getCurrentYear","menu","path","archiveList","sort","b","uniqueYears","getUniqueValue","subMenu","menuItemIndex","findIndex","estimate_name","calculatePrize","goals","dictionary","grade","gradeDicItem","count","totalWeight","prize","assessment","weight","goalMark","description","goal_mark","toFixed","final_mark","checkZeroValue","estimateList","estimateAll","getMaxSortValue","payload","end_date","root","manager_id","resChildren","recursiveChildren","level","c","resGrandChildren","isPowerUser","gc","employee_name","name_eng","employee_name_eng","photo_name","children","extend","hide","start_date","resMe","resStructure","manager_name","manager_name_eng","isManager","unattachedEmployees","resUnassignedChildren","resUnassignedEmployees","commit","text","debug","getActualForms","period_status","saveFormTableData","table","dataList","routeId","currentForm","showError","error","TableService","edit","object","createGuid","estimate_id","add","checkFormIsFinal","is_final","isClientVinyl","param","client","code","includes","isClientConti","PageDefault","TreeviewSubordination","mounted","setStepsList","stepsList","step","locale","requestTypes","formData","handleNextStep","handleSend","alert","staticClass","index","$set","docType","file","handleUpdateSelection"],"mappings":"4GAAA,oE,uBCCAA,EAAOC,QAAU,CAAC,QAAU,wCAAwC,QAAU,wCAAwC,OAAS,uCAAuC,iBAAmB,iDAAiD,KAAO,uC,oCCDjP,I,gDCAe,GACbC,MAAO,CACLC,KAAMC,QAERC,cAAe,CACbF,KAAMC,QAERE,KAAM,CACJH,KAAMC,QAERG,iBAAkB,CAChBJ,KAAMK,QACNC,SAAS,GAEXC,WAAY,CACVP,KAAMK,QACNC,SAAS,GAEXE,oBAAqB,CACnBR,KAAMK,QACNC,SAAS,GAEXG,gBAAiB,CACfT,KAAMK,QACNC,SAAS,GAEXI,gBAAiB,CACfV,KAAMK,QACNC,SAAS,GAEXK,KAAM,CACJX,KAAMC,OACNK,QAAS,UAEXM,gBAAiB,CACfZ,KAAMK,QACNC,SAAS,GAEXO,cAAe,CACbb,KAAMK,QACNC,SAAS,GAEXQ,SAAU,CACRd,KAAMC,OACNK,QAAS,IAEXS,iBAAkB,CAChBf,KAAMK,QACNC,SAAS,GAEXU,oBAAqB,CACnBhB,KAAMK,QACNC,SAAS,I,qEC3Cb,ICTmX,EDSnX,CACEW,WAAY,CACVC,YAAJ,IACIC,OAAJ,IACIC,SAAJ,IACIC,SAAJ,KAEEC,MAAF,EACEC,MARF,SAQA,GACI,IAAJ,EEde,SAAyBD,GACtC,IAAQE,EAAaC,cAAbD,SAEFE,EAAYC,aAAI,GAEtB,EAGIC,cAFFC,EADF,EACEA,eACAC,EAFF,EAEEA,aAGIC,EAAYC,aAAS,kBAAMF,EAAaR,EAAMvB,UAC9CkC,EAAgBD,aAAS,kBAAMV,aAAN,EAAMA,EAAOW,iBACtCC,EAAcF,aAAS,kBAAMH,OAUnC,OARAM,YAAS,sBAAC,sBAAAC,EAAA,yDACHd,WAAOd,oBADJ,gCAEAgB,EAAS,uBAFT,OAKR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EAAIwF,GAAGlD,EAAKkE,MAAM,UAASpG,EAAG,OAAO,CAACE,MAAM,CAAC,MAAQ,UAAU,UAAYN,EAAIoD,UAAUrB,QAAQyC,GAAG,CAAC,MAAQxE,EAAIyO,aAAa,CAACzO,EAAIuF,GAAG,IAAIvF,EAAIwF,GAAGxF,EAAIuE,GAAG,cAAc,QAAQ,IAAI,IAAI,IAAI,OACtmF,IGUpB,EACA,KACA,KACA,MAIa,UAAAzE,E,2CClBf","file":"js/chunk-6069d9df.1fdbb58f.js","sourcesContent":["export { default } from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-0-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PageDefault.vue?vue&type=style&index=0&lang=scss&module=true&\"; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-0-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PageDefault.vue?vue&type=style&index=0&lang=scss&module=true&\"","// extracted by mini-css-extract-plugin\nmodule.exports = {\"Content\":\"TreeviewSubordination__Content__HfeH4\",\"Section\":\"TreeviewSubordination__Section__2AVde\",\"Search\":\"TreeviewSubordination__Search__2vut4\",\"EmployeePosition\":\"TreeviewSubordination__EmployeePosition__2JQ8M\",\"Tree\":\"TreeviewSubordination__Tree__778Ea\"};","var render = function () {\nvar _obj;\nvar _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('UiContainer',{attrs:{\"size\":_vm.size,\"is-without-padding\":_vm.isWithoutPadding,\"max-width\":_vm.maxWidth}},[_c('UiCard',{attrs:{\"is-adaptive-block\":_vm.props.isAdaptiveBlock,\"is-without-border\":_vm.props.isWithoutBorder,\"is-without-padding\":_vm.isWithoutPadding}},[(_vm.isLoading)?_c('UiLoader'):[(!_vm.isTitleHidden)?_c('div',{class:[_vm.$style.Header, ( _obj = {}, _obj[_vm.$style.Padding] = _vm.isWithoutPadding, _obj )]},[_c('div',{class:_vm.$style.HeaderTitle},[(!_vm.isStepBackOff)?_c('StepBack',{attrs:{\"title\":_vm.pageTitle,\"icon\":_vm.sectionIcon,\"route-link\":_vm.routeBackLink,\"is-translate-title-off\":_vm.isTranslateTitleOff}}):_vm._e()],1),(_vm.isHeaderContent)?_c('div',{class:_vm.$style.HeaderContent},[_vm._t(\"headerContent\")],2):_vm._e()]):_vm._e(),_c('div',[(_vm.isLoadingContent)?_c('UiLoader'):_vm._t(\"default\")],2)]],2)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default {\n title: {\n type: String,\n },\n routeBackLink: {\n type: String,\n },\n icon: {\n type: String,\n },\n isLoadingContent: {\n type: Boolean,\n default: false,\n },\n isBordered: {\n type: Boolean,\n default: false,\n },\n isScreenSetDisabled: {\n type: Boolean,\n default: false,\n },\n isHeaderContent: { // включает отображении контента в шапке\n type: Boolean,\n default: false,\n },\n isAdaptiveBlock: { // Одиночный блок на странице без тени и отступов (отступы от краёв добавляет контейнер)\n type: Boolean,\n default: false,\n },\n size: { // ширина контейнера /small /medium /full\n type: String,\n default: 'medium',\n },\n isWithoutBorder: { // отключает border у UiCard\n type: Boolean,\n default: false,\n },\n isStepBackOff: {\n type: Boolean,\n default: false,\n },\n maxWidth: {\n type: String,\n default: '',\n },\n isWithoutPadding: { // отключает padding у UiContainer и UiCard\n type: Boolean,\n default: false,\n },\n isTranslateTitleOff: {\n type: Boolean,\n default: false,\n },\n};\n","\n\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PageDefault.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PageDefault.vue?vue&type=script&lang=js&\"","import { onMounted, ref, computed } from '@vue/composition-api';\nimport { useStore } from '@vueblocks/vue-use-vuex';\nimport usePage from '@/common/page/usePage'\n\nexport default function usePageDefault (props) {\n const { dispatch } = useStore();\n\n const isLoading = ref(true);\n\n const {\n getSectionIcon,\n getPageTitle,\n } = usePage()\n\n const pageTitle = computed(() => getPageTitle(props.title));\n const isTitleHidden = computed(() => props?.isTitleHidden);\n const sectionIcon = computed(() => getSectionIcon());\n\n onMounted(async () => {\n if (!props?.isScreenSetDisabled) {\n await dispatch('APP_PULL_SCREENSETS');\n }\n\n isLoading.value = false;\n });\n\n return {\n isLoading,\n sectionIcon,\n pageTitle,\n isTitleHidden,\n };\n}\n","import { render, staticRenderFns } from \"./PageDefault.vue?vue&type=template&id=067b8a26&\"\nimport script from \"./PageDefault.vue?vue&type=script&lang=js&\"\nexport * from \"./PageDefault.vue?vue&type=script&lang=js&\"\nimport style0 from \"./PageDefault.vue?vue&type=style&index=0&lang=scss&module=true&\"\n\n\n\n\nfunction injectStyles (context) {\n \n this[\"$style\"] = (style0.locals || style0)\n\n}\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n injectStyles,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.isLoading)?_c('UiLoader'):_c('div',{class:_vm.$style.Content},[_c('div',{class:_vm.$style.Section},[_c('div',{class:_vm.$style.Search},[_c('VTextField',{attrs:{\"label\":_vm.$t('Search'),\"hide-details\":\"\",\"clearable\":\"\",\"clear-icon\":\"mdi-close-circle-outline\"},on:{\"input\":_vm.handleSearch},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1),_c('VTreeview',{ref:\"tree\",class:_vm.$style.Tree,attrs:{\"items\":_vm.treeItemList,\"search\":_vm.search,\"selectable\":\"\",\"selection-type\":_vm.selectionType,\"return-object\":\"\",\"open-on-click\":\"\",\"item-disabled\":\"locked\",\"open\":_vm.open},on:{\"update:open\":function($event){_vm.open=$event},\"update\":_vm.onUpdateSelection},scopedSlots:_vm._u([{key:\"prepend\",fn:function(ref){\nvar item = ref.item;\nreturn [(item.locked && !item.unassigned)?_c('VIcon',[_vm._v(\" mdi-checkbox-marked \")]):_vm._e(),(item.unassigned)?_c('VIcon',[_vm._v(\" mdi-folder-account-outline \")]):_vm._e()]}},{key:\"label\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(_vm.getLanguageField(item, 'name'))+\" \")]}}]),model:{value:(_vm.selection),callback:function ($$v) {_vm.selection=$$v},expression:\"selection\"}})],1),_c('div',{class:_vm.$style.Section},[(!_vm.selection.length)?_c('div',[_vm._v(\" \"+_vm._s(_vm.$t('Pick the employees'))+\" \")]):_vm._l((_vm.selection),function(node){return _c('div',{key:node.id},[_c('div',[_vm._v(_vm._s(_vm.getLanguageField(node, 'name')))]),_c('div',{class:_vm.$style.EmployeePosition},[_vm._v(\" \"+_vm._s(_vm.getLanguageField(node, 'position'))+\" \")])])})],2)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default {\n list: {\n type: Array,\n default: () => [],\n },\n blockingList: {\n type: Array,\n default: () => [],\n },\n // Отображать дерево текущего пользователю. Иначе от гендира\n isCurrentUser: {\n type: Boolean,\n default: false,\n },\n};\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TreeviewSubordination.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TreeviewSubordination.vue?vue&type=script&lang=js&\"","\n\n\n\n\n","import { useStore } from '@vueblocks/vue-use-vuex';\nimport { ref, computed, onMounted } from '@vue/composition-api';\n\nimport estimate from '@/common/estimate/helpers';\n\nexport default function useTreeSubordination (props, { emit }) {\n const { state, dispatch, getters } = useStore();\n\n const isLoading = ref(true);\n const treeItemList = ref([]);\n\n const profile = computed(() => getters?.getProfile);\n const subordination = computed(() => state?.app?.subordination);\n\n const items = computed(() => {\n // Если совпадает с блокирующим списком, то отмечать эти элементы\n if (props.blockingList.length) {\n // Построить новый список без изменения данных в стейте\n const list = []\n\n subordination.value.forEach(element => {\n const isExist = props.blockingList.find((i) => i === element.employee_id)\n\n // Блокировать совпадения и очищать созданные\n const item = {\n ...element,\n disabled: !!isExist,\n }\n\n list.push(item)\n });\n\n return estimate.getStructureSubordination(list)\n }\n\n return estimate.getStructureSubordination(subordination.value)\n });\n\n const setTree = async () => {\n const list = subordination?.value.map(emp => ({\n ...emp,\n disabled: !!props?.blockingList.some(e => e.employee_id === emp.employee_id),\n }));\n\n return await getters.APP_GET_STRUCTURE_TREE({\n employeeId: profile?.value?.employee_id,\n data: list,\n rootCurrentUser: true,\n });\n }\n\n onMounted(async () => {\n if (props?.isCurrentUser) {\n treeItemList.value = await setTree()\n }\n\n if (!subordination?.value?.length) {\n await dispatch('APP_PULL_SUBORDINATION');\n }\n\n isLoading.value = false;\n });\n\n return {\n items,\n treeItemList,\n isLoading,\n };\n}\n","import { render, staticRenderFns } from \"./TreeviewSubordination.vue?vue&type=template&id=2d44757f&\"\nimport script from \"./TreeviewSubordination.vue?vue&type=script&lang=js&\"\nexport * from \"./TreeviewSubordination.vue?vue&type=script&lang=js&\"\nimport style0 from \"./TreeviewSubordination.vue?vue&type=style&index=0&lang=scss&module=true&\"\n\n\n\n\nfunction injectStyles (context) {\n \n this[\"$style\"] = (style0.locals || style0)\n\n}\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n injectStyles,\n null,\n null\n \n)\n\nexport default component.exports","export { default } from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-0-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UiCard.vue?vue&type=style&index=0&lang=scss&module=true&\"; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-0-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UiCard.vue?vue&type=style&index=0&lang=scss&module=true&\"","var render = function () {\nvar _obj;\nvar _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:[_vm.$style.Container, ( _obj = {}, _obj[_vm.$style.AdaptiveBlock] = _vm.props.isAdaptiveBlock, _obj[_vm.$style.WithoutBorder] = _vm.props.isWithoutBorder, _obj[_vm.$style.Padding] = !_vm.props.isWithoutPadding, _obj )]},[_vm._t(\"default\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UiCard.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UiCard.vue?vue&type=script&lang=js&\"","\n\n\n\n\n","export default {\n isAdaptiveBlock: {\n type: Boolean,\n default: false,\n },\n isWithoutBorder: {\n type: Boolean,\n default: false,\n },\n isWithoutPadding: { // отключает padding\n type: Boolean,\n default: false,\n },\n};\n","import { render, staticRenderFns } from \"./UiCard.vue?vue&type=template&id=55a6e9d7&\"\nimport script from \"./UiCard.vue?vue&type=script&lang=js&\"\nexport * from \"./UiCard.vue?vue&type=script&lang=js&\"\nimport style0 from \"./UiCard.vue?vue&type=style&index=0&lang=scss&module=true&\"\n\n\n\n\nfunction injectStyles (context) {\n \n this[\"$style\"] = (style0.locals || style0)\n\n}\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n injectStyles,\n null,\n null\n \n)\n\nexport default component.exports","import UiCard from './UiCard.vue';\n\nexport default UiCard;\n","import { TableService } from '@/common/api.service.js';\nimport store from '@/store';\nimport helpers from '@/common/helpers';\nimport router from '@/router';\n\nexport default {\n checkFormAvailable (formId, role) {\n const { app: { workflow } } = store.state\n const { name: routeName } = router.app.$route;\n\n // роуты без проверки\n const availableList = ['estimate-period-edit', 'estimate']\n // роуты без редактирования\n const disabledList = ['estimate-form']\n\n const isAvailable = availableList.find(i => i === routeName);\n const isDisabled = disabledList.find(i => i === routeName);\n\n if (isAvailable) {\n return true;\n }\n\n if (isDisabled) {\n return false;\n }\n\n const form = this.getForm(formId);\n\n if (!form) {\n return false;\n }\n\n // Если роль не пришла, то получить из данных роута\n if (!role) {\n const routeRole = this.checkRole(router.app.$route.meta);\n\n switch (routeRole) {\n case 'sub':\n role = 'manager';\n break;\n case 'hr':\n role = 'hr';\n break;\n default:\n role = 'employee';\n break;\n }\n }\n\n const workflowItem = workflow.find((i) => {\n return i.object_id === 'estimate' &&\n i.business_role === role &&\n i.status_id === form.status_id\n })\n\n if (workflowItem?.editable === '1') {\n return true\n }\n\n return false;\n },\n checkDeadline (value) {\n const currentDate = new Date().toISOString().slice(0, 10); // текущая дата (обрезанная до год-месяц-день)\n return value < currentDate;\n },\n checkTableFilter (user, list, year) {\n let filter = '';\n\n if (year) {\n const currentEstimate = list.find(i => Number(i.year) === Number(year));\n filter = `estimate_id = '${currentEstimate?.id}'`;\n } else {\n filter = `estimate_id = '${user?.id}'`;\n }\n\n return filter;\n },\n checkUrlId (id) {\n return !!id;\n },\n checkPeriodId (route, period) {\n if (route.id) {\n return route.id;\n }\n\n return period.id;\n },\n checkRole (meta) {\n if (meta.sub) {\n return 'sub';\n }\n if (meta.hr) {\n return 'hr';\n }\n return 'own';\n },\n checkFieldAvailable (role, fieldRole, formAvailable) {\n if (role === 'hr') {\n return false;\n }\n\n if (!formAvailable) {\n return true;\n }\n\n if (role === 'sub' && fieldRole === 'sub') {\n return false;\n }\n\n if (role === 'own' && fieldRole === 'own') {\n return false;\n }\n\n return true;\n },\n setArchiveList (forms, role) {\n const currentYear = helpers.getCurrentYear();\n const menu = [];\n let path = null;\n const archiveList = forms.filter(i => Number(i.year) < currentYear);\n\n archiveList.sort((a, b) => Number(b.year) - Number(a.year));\n\n const uniqueYears = helpers.getUniqueValue(archiveList, 'year');\n\n switch (role) {\n case 'hr':\n path = '/estimate/';\n break;\n case 'sub':\n path = '/estimate-sub/';\n break;\n default:\n path = '/estimate-own/';\n break;\n }\n\n if (role === 'hr' || role === 'sub') {\n uniqueYears.forEach(item => {\n menu.push({\n title: item,\n route: `${path}${item}/forms`,\n });\n });\n\n return menu;\n }\n\n // создать меню с уникальным годом\n uniqueYears.forEach(item => {\n menu.push({\n title: item,\n subMenu: [],\n });\n });\n\n archiveList.forEach(item => {\n const menuItemIndex = menu.findIndex(\n i => Number(i.title) === Number(item.year),\n );\n\n menu[menuItemIndex].subMenu.push({\n title: item.estimate_name,\n route: `${path}${item.year}/form/${item.id}`,\n });\n });\n\n return menu;\n },\n calculatePrize (user) {\n const { goals, dictionary } = store.state.estimate;\n\n if (!user) return;\n\n const { grade = null } = user;\n\n if (grade === null || grade === '' || Number(grade) === 0) {\n return;\n }\n\n const gradeDicItem = dictionary.grade.find(i => {\n return grade <= Number(i.name) && grade >= Number(i.sort);\n });\n let count = 0;\n let totalWeight = 0;\n let prize = null;\n\n goals.forEach(element => {\n let { assessment = '', weight = '' } = element;\n assessment = Number(assessment);\n weight = Number(weight);\n\n // не учитываются оценки меньше или равно 50\n if (assessment <= 50) {\n assessment = 0;\n }\n\n count = count + assessment * weight;\n totalWeight = totalWeight + weight;\n });\n\n const goalMark = count / totalWeight;\n\n if (gradeDicItem) {\n prize = (goalMark * Number(gradeDicItem.description)) / 100;\n }\n\n const data = {\n id: user.id,\n goal_mark: goalMark.toFixed(2),\n final_mark: prize.toFixed(2),\n };\n\n return data;\n },\n checkZeroValue (list, item) {\n list.forEach(element => {\n if (item[element] === '.00') {\n item[element] = '0.00';\n }\n });\n\n return item;\n },\n getForm (id) {\n const { estimateList, estimateAll } = store.state.estimate;\n let form = null;\n\n form = estimateList.find(i => i.id === id);\n\n if (!form) {\n form = estimateAll.find(i => i.id === id);\n }\n\n if (!form) {\n return\n }\n\n return form;\n },\n getMaxSortValue (list) {\n return list.sort((a, b) => Number(b.sort) - Number(a.sort))[0].sort;\n },\n getStructureSubordination (list, payload) {\n // Если нужно дерево руководителей, тогда предварительно удалим строки сотрудников, которым никто не подчиняется\n const data = list.filter(i => i.type === 'direct' && !i.end_date?.length);\n const root = data.find(e => e.employee_id === e.manager_id);\n\n if (!root) {\n store.commit('MSG_SET_ITEM', {\n text: 'Ошибка построения списка',\n debug: true,\n });\n return;\n }\n\n // Первые потомки\n const children = data.filter(\n e =>\n e.manager_id === root.employee_id && e.employee_id !== root.employee_id,\n );\n\n // Рекурсивно обойдём строки и сформируем дерево\n // Если полноправный юзер, то всё дерево, иначе до вторых потомков\n const recursiveChildren = (items, level) => {\n const resChildren = [];\n\n if (!items || items.length === 0) return [];\n\n level = level + 1;\n\n items.forEach(c => {\n let resGrandChildren;\n\n if (!c.employee_id) return;\n\n if (store.getters.isPowerUser || level < 2) {\n resGrandChildren = recursiveChildren(\n data.filter(gc => gc.manager_id === c.employee_id),\n level,\n );\n }\n\n resChildren.push({\n id: c.employee_id,\n name: c.employee_name,\n name_eng: c.employee_name_eng,\n photo_name: c.photo_name,\n children: resGrandChildren,\n extend: false,\n hide: false,\n locked: c.disabled,\n start_date: c.start_date,\n manager_id: c.manager_id,\n });\n });\n\n return resChildren;\n };\n const resChildren = recursiveChildren(children, 0);\n\n const resMe = {\n id: root.employee_id,\n name: root.employee_name, // me\n name_eng: root.employee_name_eng,\n photo_name: root.photo_name,\n children: resChildren,\n hide: false,\n locked: root.disabled,\n start_date: root.start_date,\n manager_id: root.manager_id,\n };\n\n const resStructure = [];\n\n if (root.manager_id !== root.employee_id) {\n // Если это не генеральный\n resStructure.push({\n id: root.manager_id,\n name: root.manager_name, // my manager\n name_eng: root.manager_name_eng,\n isManager: true,\n photo_name: '',\n children: [resMe],\n });\n } else {\n // Добавим к генеральному директору сотрудников, которые не прикреплены\n const unattachedEmployees = data.filter(e => !e.manager_id);\n\n if (unattachedEmployees.length > 0) {\n const resUnassignedChildren = [];\n const resUnassignedEmployees = {\n id: 'UnassignedEmployees',\n name: 'Нераспределенные сотрудники',\n name_eng: 'Unassigned Employees',\n children: resUnassignedChildren,\n hide: false,\n locked: true,\n unassigned: true,\n };\n\n unattachedEmployees.forEach(i => {\n resUnassignedChildren.push({\n id: i.employee_id,\n name: i.employee_name,\n name_eng: i.employee_name_eng,\n children: [],\n locked: i.disabled,\n });\n });\n\n resMe.children.push(resUnassignedEmployees);\n }\n\n resStructure.push(resMe);\n }\n\n return resStructure;\n },\n // Получить актуальные формы\n getActualForms (forms) {\n return forms.filter(i => i.period_status === '1');\n },\n\n // Сохранить данные в таблицах формы\n async saveFormTableData (table, dataList, form, routeId) {\n const currentForm = this.getForm(routeId);\n let data = null;\n\n const showError = (text) => {\n data.error = text;\n store.commit('MSG_SET_ITEM', {\n text,\n debug: true,\n });\n\n return data;\n };\n\n if (!currentForm) {\n showError('Оценка: Ошибка определения формы');\n return data;\n }\n\n // Редактирование записи\n if (dataList?.id) {\n try {\n data = await TableService.edit({ object: table, data: form });\n\n return data\n } catch (error) {\n return showError('Оценка: Ошибка редактирования записи');\n }\n }\n\n // Создание новой записи\n form.id = helpers.createGuid();\n form.estimate_id = currentForm?.id;\n\n try {\n data = await TableService.add({ object: table, data: form });\n } catch (error) {\n return showError('Оценка: Ошибка добавления записи');\n }\n\n return data\n },\n\n // Проверка, что форма в финальном периоде\n checkFormIsFinal (form) {\n return !!Number(form?.is_final)\n },\n\n isClientVinyl () {\n return store.state?.param?.client?.code.includes('rusvinyl');\n },\n\n isClientConti () {\n return store.state?.param?.client?.code.includes('conti');\n },\n};\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"Header\":\"PageDefault__Header__24nsg\",\"Padding\":\"PageDefault__Padding__Ui2PJ\",\"HeaderContent\":\"PageDefault__HeaderContent__1g_k0\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"Container\":\"UiCard__Container__2r3Zj\",\"WithoutBorder\":\"UiCard__WithoutBorder__3Utj6\",\"Padding\":\"UiCard__Padding__1IkKj\",\"AdaptiveBlock\":\"UiCard__AdaptiveBlock__3xWP1\"};","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('PageDefault',{attrs:{\"title\":_vm.$t('Documents for signature')}},[_c('div',{staticClass:\"PapersContent\"},[_c('VStepper',{attrs:{\"non-linear\":\"\",\"outlined\":\"\",\"editable\":\"\"},model:{value:(_vm.step),callback:function ($$v) {_vm.step=$$v},expression:\"step\"}},[_c('VStepperHeader',{staticClass:\"stepper__header\"},[_vm._l((_vm.stepsList),function(item,index){return [(index !== 0)?_c('VDivider',{key:((item.text) + \"-divider\")}):_vm._e(),_c('VStepperStep',{key:item.text,attrs:{\"step\":(\"\" + (index + 1)),\"editable\":\"\"}},[_vm._v(\" \"+_vm._s(item.text)+\" \")])]})],2),_c('VStepperItems',[_c('VStepperContent',{attrs:{\"step\":\"1\"}},[(_vm.isLoading)?_c('UiLoader'):_vm._e(),_c('div',{staticClass:\"mb-4\"},[_c('VSelect',{attrs:{\"label\":_vm.$t('Тип документа'),\"prepend-icon\":\"mdi-file-document\",\"items\":_vm.requestTypes,\"item-text\":_vm.locale === 'en' ? 'name_eng' : 'name',\"item-value\":_vm.locale === 'en' ? 'name_eng' : 'name',\"item-disabled\":'false'},model:{value:(_vm.formData.docType),callback:function ($$v) {_vm.$set(_vm.formData, \"docType\", $$v)},expression:\"formData.docType\"}}),_c('VTextField',{attrs:{\"label\":_vm.$t('Описание'),\"prepend-icon\":\"mdi-card-text-outline\"},model:{value:(_vm.formData.text),callback:function ($$v) {_vm.$set(_vm.formData, \"text\", $$v)},expression:\"formData.text\"}}),_c('VTextarea',{attrs:{\"label\":_vm.$t('Comment'),\"prepend-icon\":\"mdi-comment\",\"no-resize\":\"\",\"rows\":\"3\"},model:{value:(_vm.formData.comment),callback:function ($$v) {_vm.$set(_vm.formData, \"comment\", $$v)},expression:\"formData.comment\"}}),_c('VFileInput',{attrs:{\"label\":_vm.$t('Загрузить файл')},model:{value:(_vm.formData.file),callback:function ($$v) {_vm.$set(_vm.formData, \"file\", $$v)},expression:\"formData.file\"}})],1),_c('VBtn',{attrs:{\"color\":\"primary\",\"disabled\":!_vm.formData.docType || !_vm.formData.file},on:{\"click\":function($event){return _vm.handleNextStep(2)}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"Дальше\"))+\" \")])],1),_c('VStepperContent',{attrs:{\"step\":\"2\"}},[_c('div',{staticClass:\"mb-12\"},[_c('TreeviewSubordination',{on:{\"update-selection\":_vm.handleUpdateSelection}})],1),_c('VBtn',{attrs:{\"color\":\"primary\",\"disabled\":!_vm.selection.length},on:{\"click\":function($event){return _vm.handleNextStep(3)}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"Дальше\"))+\" \")])],1),_c('VStepperContent',{attrs:{\"step\":\"3\"}},[_vm._l((_vm.selection),function(item){return _c('div',{key:item.id,staticClass:\"mb-12\"},[_vm._v(\" \"+_vm._s(item.name)+\" \")])}),_c('VBtn',{attrs:{\"color\":\"primary\",\"disabled\":!_vm.selection.length},on:{\"click\":_vm.handleSend}},[_vm._v(\" \"+_vm._s(_vm.$t(\"Отправить\"))+\" \")])],2)],1)],1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PapersHR.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PapersHR.vue?vue&type=script&lang=js&\"","\n\n\n","import { render, staticRenderFns } from \"./PapersHR.vue?vue&type=template&id=3a11042a&\"\nimport script from \"./PapersHR.vue?vue&type=script&lang=js&\"\nexport * from \"./PapersHR.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export { default } from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-0-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TreeviewSubordination.vue?vue&type=style&index=0&lang=scss&module=true&\"; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-0-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TreeviewSubordination.vue?vue&type=style&index=0&lang=scss&module=true&\""],"sourceRoot":""}