{"version":3,"sources":["webpack:///./src/components/uikit/Buttons/BtnActionGrid/BtnActionGrid.vue?5b63","webpack:///./src/components/WorkflowActions.vue?94a8","webpack:///./src/components/uikit/Table/TableLabel.vue?b7e1","webpack:///./src/common/documentSection/sectionData.js","webpack:///./src/components/uikit/Buttons/BtnActionGrid/BtnActionGrid.vue?8c08","webpack:///./src/components/uikit/Buttons/BtnActionGrid/BtnActionGrid.vue?415d","webpack:///src/components/uikit/Buttons/BtnActionGrid/BtnActionGrid.vue","webpack:///./src/components/uikit/Buttons/BtnActionGrid/BtnActionGrid.vue","webpack:///./src/common/documentSection/documentTableHelpers.js","webpack:///./src/components/FileLoader.vue?d794","webpack:///./src/components/DataGrid.vue?4bda","webpack:///./src/components/uikit/UiLoader/index.js","webpack:///./src/components/DataGrid.vue?3c2d","webpack:///./src/common/document/useDocument.js","webpack:///./src/components/WorkflowActions.vue?aea7","webpack:///./src/common/actionCheck.js","webpack:///./src/components/WorkflowActions.vue?feed","webpack:///src/components/WorkflowActions.vue","webpack:///./src/common/device/checkDevice.js","webpack:///./src/components/WorkflowActions.vue","webpack:///./src/components/VTextareaEng.vue?6134","webpack:///./src/components/VTextareaEng.vue?15d3","webpack:///src/components/VTextareaEng.vue","webpack:///./src/components/VTextareaEng.vue","webpack:///./src/components/uikit/DragAndDrop/DragAndDrop.vue?4557","webpack:///./src/components/uikit/DragAndDrop/props.js","webpack:///src/components/uikit/DragAndDrop/DragAndDrop.vue","webpack:///./src/components/uikit/DragAndDrop/DragAndDrop.vue?5b64","webpack:///./src/components/uikit/DragAndDrop/useDragAndDrop.js","webpack:///./src/components/uikit/DragAndDrop/DragAndDrop.vue","webpack:///./src/components/uikit/DragAndDrop/index.js","webpack:///./src/components/uikit/Buttons/BtnActionGrid/BtnActionGrid.vue?fdb4","webpack:///./src/components/uikit/Buttons/ButtonDownloadDoc/ButtonDownloadDoc.vue?7dad","webpack:///./src/components/uikit/Buttons/ButtonDownloadDoc/ButtonDownloadDoc.vue?c25d","webpack:///src/components/uikit/Buttons/ButtonDownloadDoc/ButtonDownloadDoc.vue","webpack:///./src/components/uikit/Buttons/ButtonDownloadDoc/ButtonDownloadDoc.vue","webpack:///./src/components/WorkflowActions.vue?c6a6","webpack:///./src/components/FileLoader.vue?15e3","webpack:///./src/components/uikit/Buttons/ButtonPrint/ButtonPrint.vue?8b37","webpack:///src/components/uikit/Buttons/ButtonPrint/ButtonPrint.vue","webpack:///./src/components/uikit/Buttons/ButtonPrint/ButtonPrint.vue","webpack:///./src/components/uikit/Buttons/ButtonPrint/ButtonPrint.vue?49c2","webpack:///./src/components/FileLoader.vue?889a","webpack:///src/components/FileLoader.vue","webpack:///./src/components/FileLoader.vue","webpack:///./src/common/workflow/workflowHelpers.js","webpack:///./src/common/notification/useNotification.js","webpack:///./src/views/Statement/StatementMain.vue?e733","webpack:///./src/views/Statement/StatementMain.vue?827b","webpack:///src/views/Statement/StatementMain.vue","webpack:///./src/views/Statement/StatementMain.vue","webpack:///./src/components/FileLoader.vue?f19b","webpack:///./src/components/uikit/Table/TableLabel.vue?0eb7","webpack:///./src/components/DataGrid.vue?8134","webpack:///./src/components/uikit/Table/TableLabel.vue?25a8","webpack:///src/components/uikit/Table/TableLabel.vue","webpack:///./src/components/uikit/Table/TableLabel.vue","webpack:///./src/components/uikit/Table/TableLabel.vue?8a1f","webpack:///src/components/DataGrid.vue","webpack:///./src/components/DataGrid.vue?d2ad","webpack:///./src/components/DataGrid.vue","webpack:///./src/components/FileLoader.vue?9c55","webpack:///./src/common/paper/useDocumentSign.js"],"names":["module","exports","getSectionData","section","role","dispatch","store","Promise","all","getSectionTypeList","state","app","documentTypes","length","filter","i","object_id","startsWith","components","UiMenu","UiBtn","_vm","this","_h","$createElement","_c","_self","class","$style","Td","attrs","scopedSlots","_u","key","fn","ref","props","_b","BtnBoard","_t","context","locals","showError","text","commit","color","timeout","debug","checkCanCreateTableItemByStatus","workflow","workflowSectionList","roles","getRoleByRouteMeta","Object","keys","workflowList","workflowItem","find","item","status_id","status","object","STATUS_NAME","empty","Number","editable","UiLoader","useDocument","document","getters","useStore","route","useRoute","tt","useLanguage","isRev","meta","rev","requestTypeName","computed","docDescription","statuses","APP_GET_PROP","docStatus","value","id","statusText","docDate","moment","date","format","docStatusDate","status_date","employeeName","name","helpers","getInitials","getEmployeeName","getStatusDate","getDocDate","getRequestTypeName","getDocDescription","getStatusText","getWorkflowList","objectId","APP_GET_AVAILABLE_WORKFLOW","business_role","all_types","document_type_id","subordination","employee_id","type","check","vacation_schedule","paramData","param","data","message","callback","console","log","vacation_validate_full_month","next_status_id","vacations","vacation_schedule_period","replaced","replaced_vacation_ids","totalDays","totalWeekendDays","forEach","vacationItem","document_type_name_eng","days","weekendDays","APP_GET_DATEDIFF","startDate","start_date","endDate","end_date","dailyInfo","allowedWeekendDays","i18n","t","vacation_validate_unallocated_schedule","vacationLimits","period","limitItem","vacationsByType","reduce","sum","unsaved","norma","checkActionForbiddenPeriod","prepareData","updateItem","profile","getProfile","push","registrator_id","workflow_id","creator_id","organization_id","message_text","comment_text","message_text_eng","comment_text_eng","indicators","vacation_validate_process_schedule_together","TableService","add","link","router","diff","reject","vacation_correction","vacation2","includes","vacation_validate_unallocated_correction","parentVacations","indexOf","parentDays","childVacations","childDays","nextStatus","vacation_validate_process_correction_together","vacation","documentType","documentHelpers","getDocumentTypeData","documentTypeCode","code","isForSign","signHelpers","checkIsSignWorkflow","isEng","localeHelpers","comments","comments_eng","commentsEng","validateComment","getTextByAlias","files","checkFileAttached","overtime","docType","isNextWorkflow","detail","checkbox_work_agreement_actioncheck_require","details","work_on_holiday_agreement","checkbox_denial_confirm_actioncheck_require","work_denial_confirm","btrip","warningText","sub","is_weekend_included","isBtripMultiDestination","isBtripRequireExpense","btrip_require_expense","btripDateDisable","btrip_date_disable","docDetails","tripList","trip_destination_requests","tripListLast","lastTripLeaveDate","leave_on","innerText","checkValidDocument","otherBtripsWithoutExpence","dateBtripDateDisable","isAfter","checkDocument","estimate","goalsList","goals","valuationList","valuation","goalsWeight","goalsWeightTotal","planningGoalsWeight","planningGoalsWeightTotal","planningGoalsList","planningGoals","formLayoutTabs","layoutTabList","layout_tab","trim","split","list","element","findTab","isPlanningGoalsTab","isGoalsTab","isTypeYearly","isTypeInterim","isFinal","is_final","isGoalsList","isGoalsWeight","isPlanningGoalsWeight","isPlanGoalsList","isGoalSelfEsteem","isGoalAssessment","isValuationSelfEsteem","isValuationAssessment","isVinyl","client","url","history","current","selfEsteem","self_esteem","assessment","checkSubFields","checkEmployeeFields","material_assistance","absence","absence_validate","sickleave","paramHelpers","paramCheckSickleaveNumberOnClose","statement","statements","errorAlias","dismissalType","VTextareaEng","ModalSigning","FileLoader","String","default","documentName","disabled","Boolean","loading","availableWorkflow","Array","isRejectPrimary","isPrevStepDisabled","isLocalSigning","emits","setup","showErrorNotification","locale","$store","isSignature","sort","removePrevStep","buttonSaveIndex","isSigningDocument","fileLoaderDocument","signingDocument","documentTypeList","hooksDocument","watch","submitMessageDialog","val","editableItem","processFinal","methods","workflowColor","getRequestData","request_type_code","requestTypeCode","test","navigator","userAgent","component","Workflow","_l","$attrs","btnClass","loadingLocal","$vuetify","breakpoint","smAndDown","undefined","on","$event","handleChangeWorkflow","staticClass","_v","_e","_s","isLocalModalSigning","process","model","$$v","showMessageDialog","expression","modelMessage","text_eng","valueEng","$set","handleFileLoaderClose","downloadOptions","modelValue","setEng","slotAppend","messageText","changeLocale","update","emit","isWebpack","label","hint","nativeOn","apply","arguments","proxy","required","isDisabled","items","draggedIndex","onDragStart","event","index","dataTransfer","effectAllowed","setData","onDragOver","draggedItem","splice","onDrop","onDragEnd","newVal","newItems","deep","preventDefault","DragAndDrop","AppTooltip","icon","isArchive","downloadIcon","downloadHelpText","handleClick","e","stopPropagation","tooltipText","ButtonDownloadDoc","ButtonPrint","preview","isCards","propsValue","isSignAvailable","isFileSigned","frame","getElementById","modalTitle","fileOriginalName","handler","newValue","method","oldValue","beforeUnmount","close","showDialog","localUrl","fileName","$emit","download","href","setAttribute","body","appendChild","click","print","iframe","contentWindow","iframePrepare","contentDocument","iframeBody","getElementsByTagName","children","img","tagName","width","style","container","wrapper","card","header","headerTitle","headerButton","inner","iframeScale","content","subtitle","sign","handleOpenModalSigning","getDocumentEditableWorkflow","roleHelpers","getBusinessRole","getAvailableWorkflow","objectIdDoc","getObjectId","payload","nameRole","objectID","nameTable","table","el","disable_grid_button","a","b","doc","checkIsDeletedWorkflow","delete_allowed","useNotification","errorText","WorkflowActions","DataGrid","BtnActionGrid","getFormattedDate","businessRole","isHr","isCanCreate","documentTableHelpers","created","own","$route","init","editItem","$router","deleteItem","changeWorkflow","refreshData","initFinal","gridModel","initialized","gridPagination","sectionName","active","iconColor","desc","iconDesc","setColor","setDescIcon","Content","$t","IconSort","title","titleIcon","itemTitle","toolbarModel","Function","disableCreateItem","disableEditItem","disableDeleteItem","ignoreSavedFilters","disableWorkflow","isDisableActions","watchRefresh","Date","isStepBack","isToolbar","compareList","compareArrayName","requiredList","numbersList","StepBack","TableLabel","from","sortModel","propsTitle","sectionIcon","pageTitle","pagePreTitle","defineEng","slotChip","slotHeaders","getDateAndTime","sortModelList","gridHeaderList","filterList","filterOpened","visibleFix","handleFilter","grid","handleApplyFilter","map","filters","formatName","isPowerUser","isManager","isAdmin","isAccountant","isSub","isAvailableCSV","filterDefined","headerItem","defined","visibilityModelList","visibilityModel","sortList","itemsPerPage","defaultRowsNumber","dialogConfirmOK","oper","assign","editedItem","rowKey","clearItems","findIndex","parentComponent","initialize","saveLayouts","handleDate","layout","checkModel","beforeRefresh","storeVisib","setTimeout","visible","storeSortModel","dialogEdit","dialogConfirm","dialogClose","isDuplicateError","sortItemClick","sortItem","modelItem","saveModel","visibilityItemClick","visibilityItem","visibilityDraggingEnd","sortDraggingEnd","headerItemPrepared","applySearch","search","exists","searchoptions","multiple","nextMonth","setMonth","getMonth","lastMonth","existsOneFilter","obj","formatStr","edittype","lookupItem","formatValue","itemText","formatoptions","$n","toFixed","jsonmap","filterItem","oneOr","allOr","filterStr","opt","exportToCSV","hidelist","isServiceField","dataItem","prop","disableCSVLookup","dataExport","serviceFields","columns","delimiter","csv","today","setMinutes","getMinutes","getTimezoneOffset","tempLink","encodeURI","updateColModel","objectModel","align","fixed","resizable","sortable","sortorder","sorttype","itemModel","numorder","itemModelDefault","Math","max","hidedlg","editoptions","item_value","item_text","uniqItems","existsItems","elName","operator","itemKey","itemSelected","that","gridModelUpdated","numericRules","Toolbar","BtnBort","mdAndUp","toolbarItem","hidden","visibilityOpened","Card","Subtitle","BtnList","ActiveCard","sortOpened","clearCache","TableLoader","FooterCompactVue2","FooterCompact","itemsPerPageOptions","Top","TextOverflow","Select","raw","CheckBox","disabledItem","disabledChips","Headers","Headers__actions","Headers__status","prependIcon","prependClick","classModule","appendIcon","appendClick","indicatorColor","prependIconColor","p","BtnPlus","staticStyle","indexItem","mask","CardActions","saveItem","actionClose","actionSave","useDocumentSign","checkSignAvailable","file_name","checkFileSigned"],"mappings":"gHACAA,EAAOC,QAAU,CAAC,SAAW,iCAAiC,GAAK,6B,uBCAnED,EAAOC,QAAU,CAAC,SAAW,qC,oCCD7B,oE,mFCEe,KAEPC,eAFO,SAESC,EAASC,GAAM,wHAC3BC,EAAaC,IAAbD,SAD2B,SAG7BE,QAAQC,IAAI,CAChBH,EAAS,qBACTA,EAAS,2BAKTA,EAAS,wBAAyB,CAChCF,UACAC,WAZ+B,8CAiBrCK,mBAnBa,SAmBON,GAAS,MAC3B,UAA+BG,UAA/B,IAA+BA,KAA/B,UAA+BA,IAAOI,aAAtC,aAA+B,EAAcC,KAArCC,qBAAR,MAAwB,GAAxB,EAEA,OAAKT,WAASU,QAAWD,WAAeC,OAIjCD,aAAP,EAAOA,EAAeE,QAAO,SAACC,GAAD,uBAAOA,EAAEC,iBAAT,aAAO,EAAaC,WAAWd,MAHnD,M,sECzBb,I,wBCAoY,ECIpY,CACEe,WAAY,CACVC,OAAJ,IACIC,MAAJ,M,wBCSA,IAWe,EAXC,YACd,GHjBW,WAA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ourcesContent":["// extracted by mini-css-extract-plugin\nmodule.exports = {\"BtnBoard\":\"BtnActionGrid__BtnBoard__FT5Hm\",\"Td\":\"BtnActionGrid__Td__30g-3\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"Workflow\":\"WorkflowActions__Workflow__12tbm\"};","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!./TableLabel.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!./TableLabel.vue?vue&type=style&index=0&lang=scss&module=true&\"","import store from '@/store';\n\nexport default {\n // Получить данные, необходимые при заходе в раздел\n async getSectionData (section, role) {\n const { dispatch } = store\n\n await Promise.all([\n dispatch('APP_PULL_STATUSES'),\n dispatch('APP_PULL_DOCUMENT_TYPES'),\n // dispatch('APP_PULL_SUBORDINATION', {\n // reload: true,\n // select: 'employee_id,employee_name,employee_name_eng,employee_type,manager_id,manager_name,manager_name_eng,organization_id,type,start_date',\n // }),\n dispatch('WORKFLOW_PULL_SECTION', {\n section,\n role,\n }),\n ])\n },\n\n getSectionTypeList (section) {\n const { documentTypes = [] } = store?.state?.app;\n\n if (!section?.length || !documentTypes?.length) {\n return []\n }\n\n return documentTypes?.filter((i) => i.object_id?.startsWith(section));\n },\n};\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('td',{class:_vm.$style.Td},[_c('UiMenu',{attrs:{\"location\":\"left\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar props = ref.props;\nreturn [_c('UiBtn',_vm._b({attrs:{\"is-icon\":\"\",\"is-round\":\"\",\"color\":\"eg-secondary\",\"icon\":\"mdi-dots-vertical\",\"size\":\"small\"}},'UiBtn',props,false))]}}])},[_c('div',{class:_vm.$style.BtnBoard},[_vm._t(\"default\")],2)])],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!./BtnActionGrid.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!./BtnActionGrid.vue?vue&type=script&lang=js&\"","\n\n\n\n\n","import { render, staticRenderFns } from \"./BtnActionGrid.vue?vue&type=template&id=7df5b11d&\"\nimport script from \"./BtnActionGrid.vue?vue&type=script&lang=js&\"\nexport * from \"./BtnActionGrid.vue?vue&type=script&lang=js&\"\nimport style0 from \"./BtnActionGrid.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","\nimport store from '@/store'\nimport roles from '@/common/role/roleHelpers';\n\nimport { STATUS_NAME } from '@/constants/document/StatusName';\n\nexport default {\n showError (text) {\n store.commit('MSG_SET_ITEM', {\n text,\n color: 'error',\n timeout: 20000,\n debug: true,\n });\n },\n\n checkCanCreateTableItemByStatus (section, role) {\n const { workflowSectionList = {} } = store?.state?.workflow ?? [];\n\n // Использовать полученную роли или получить из роута\n role = role ?? roles.getRoleByRouteMeta();\n\n if (!Object.keys(workflowSectionList)?.length) {\n return false\n }\n\n const workflowList = workflowSectionList?.[section]?.[role] ?? []\n\n // Возможность создания записи в таблице определяется по workflow со стаутом empty\n const workflowItem = workflowList?.find((item) => {\n const { status_id: status = '', object_id: object = '' } = item ?? {};\n\n return status === STATUS_NAME?.empty && object === section\n });\n\n // Если на найден воркфлоу для текущего раздела по роли\n if (!workflowItem) {\n return false\n }\n\n return !!Number(workflowItem?.editable)\n },\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"FileLoader__container__nd7YO\",\"wrapper\":\"FileLoader__wrapper__TyKR0\",\"card\":\"FileLoader__card__PTGwu\",\"header\":\"FileLoader__header__2IPZK\",\"headerTitle\":\"FileLoader__headerTitle__1bxi4\",\"headerButton\":\"FileLoader__headerButton__17HMC\",\"inner\":\"FileLoader__inner__fJO25\",\"document\":\"FileLoader__document__ojE2j\",\"iframe\":\"FileLoader__iframe__1Ho73\",\"content\":\"FileLoader__content__3bbdE\",\"list\":\"FileLoader__list__32maT\",\"item\":\"FileLoader__item__10NjP\",\"subtitle\":\"FileLoader__subtitle__2EgCK\",\"sign\":\"FileLoader__sign__7BR3w\"};","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!./DataGrid.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!./DataGrid.vue?vue&type=style&index=0&lang=scss&module=true&\"","import UiLoader from './UiLoader.vue';\n\nexport default UiLoader;\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"Toolbar\":\"DataGrid__Toolbar__3v0oQ\",\"BtnBort\":\"DataGrid__BtnBort__CODnh\",\"TableLoader\":\"DataGrid__TableLoader__2HqmL\",\"TextOverflow\":\"DataGrid__TextOverflow__PQ1EI\",\"CardActions\":\"DataGrid__CardActions__fV76P\",\"Subtitle\":\"DataGrid__Subtitle__fBUZM\",\"Card\":\"DataGrid__Card__23IFc\",\"ActiveCard\":\"DataGrid__ActiveCard__3gJ5t\",\"Top\":\"DataGrid__Top__2j3Pd\",\"BtnList\":\"DataGrid__BtnList__2QHlO\",\"Select\":\"DataGrid__Select__1ONKl\",\"CheckBox\":\"DataGrid__CheckBox__2C7z7\",\"Headers__actions\":\"DataGrid__Headers__actions__376cn\",\"Headers__status\":\"DataGrid__Headers__status__nxgx2\",\"Headers\":\"DataGrid__Headers__2ULIv\",\"BtnPlus\":\"DataGrid__BtnPlus__2reqa\",\"FooterCompactVue2\":\"DataGrid__FooterCompactVue2__2LTav\",\"FooterCompact\":\"DataGrid__FooterCompact__2Me8s\"};","import { computed } from '@vue/composition-api';\nimport { useStore } from '@vueblocks/vue-use-vuex';\nimport { useRoute } from 'vue2-helpers/vue-router';\nimport moment from 'moment';\nimport helpers from '@/common/helpers';\nimport useLanguage from '@/common/locale/useLanguage'\n\nexport default function useDocument (document) {\n const { getters } = useStore();\n const route = useRoute();\n const { tt } = useLanguage()\n const isRev = route.meta.rev;\n\n const requestTypeName = computed(\n () => tt(document, 'request_type_name'),\n );\n\n const docDescription = computed(() => tt(document, 'description'));\n\n const statuses = computed(() => getters.APP_GET_PROP('statuses'));\n\n const docStatus = computed(() =>\n statuses.value.find((i) => i.id === document?.status_id),\n );\n\n const statusText = computed(() => tt(docStatus.value, 'name'));\n\n const docDate = computed(() =>\n moment(document?.date).format('YYYY-MM-DD HH:mm:ss'),\n );\n\n const docStatusDate = computed(() =>\n moment(document?.status_date).format('YYYY-MM-DD HH:mm:ss'),\n );\n\n // выбор перевода ФИО сотрудника у документа\n const employeeName = computed(() => {\n const name = tt(document, 'employee_name');\n return helpers.getInitials(name);\n });\n\n const getEmployeeName = (document) => {\n const name = tt(document, 'employee_name');\n return name ? helpers.getInitials(name) : '';\n };\n\n const getStatusDate = (document) => {\n if (!document?.status_date?.length) {\n return ''\n }\n\n return moment(document?.status_date).format('YYYY-MM-DD HH:mm:ss');\n };\n\n const getDocDate = (document) => {\n if (!document?.date?.length) {\n return '';\n }\n\n return moment(document?.date).format('YYYY-MM-DD HH:mm:ss')\n };\n\n const getRequestTypeName = (document) => {\n return tt(document, 'request_type_name') || '';\n };\n\n const getDocDescription = (document) => {\n return tt(document, 'description') ?? '';\n };\n\n const getStatusText = (document) => {\n const docStatus = statuses?.value?.find((i) => i.id === document?.status_id)\n return tt(docStatus, 'name') ?? '';\n };\n\n const getWorkflowList = (objectId = '', role = '', status = '') => {\n return getters?.APP_GET_AVAILABLE_WORKFLOW({\n object_id: objectId,\n business_role: role,\n status_id: status,\n });\n }\n\n return {\n requestTypeName,\n docDescription,\n statusText,\n docDate,\n docStatusDate,\n employeeName,\n isRev,\n getEmployeeName,\n getStatusDate,\n getDocDate,\n getRequestTypeName,\n getDocDescription,\n getStatusText,\n getWorkflowList,\n };\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{class:_vm.$style.Workflow},_vm._l((_vm.workflowList),function(workflowItem){return _c('div',{key:workflowItem.id},[_c('VBtn',_vm._b({class:_vm.$attrs.btnClass,attrs:{\"color\":_vm.workflowColor(workflowItem),\"disabled\":_vm.disabled,\"loading\":_vm.loading || _vm.loadingLocal,\"small\":_vm.$vuetify.breakpoint.smAndDown,\"size\":_vm.$vuetify.breakpoint.smAndDown ? 'small' : undefined,\"data-test\":\"workflow-btn\"},on:{\"click\":function($event){return _vm.handleChangeWorkflow(workflowItem)}}},'VBtn',_vm.$attrs,false),[(workflowItem.reject === '1')?_c('VIcon',{staticClass:\"pr-2\",attrs:{\"size\":\"small\"}},[_vm._v(\" mdi-reply \")]):_vm._e(),_vm._v(\" \"+_vm._s(_vm.tt(workflowItem, 'name'))+\" \"),(workflowItem.reject === '0')?_c('VIcon',{staticClass:\"pl-2\",attrs:{\"size\":\"small\"}},[_vm._v(\" mdi-share \")]):_vm._e()],1),_c('ModalSigning',{attrs:{\"is-local\":\"\",\"is-local-modal-signing\":_vm.isLocalModalSigning,\"is-page-document\":\"\"},on:{\"startProcess\":function($event){return _vm.process(workflowItem)}}})],1)}),0),_c('VDialog',{attrs:{\"max-width\":\"600\"},model:{value:(_vm.showMessageDialog),callback:function ($$v) {_vm.showMessageDialog=$$v},expression:\"showMessageDialog\"}},[_c('VCard',[_c('VCardTitle',{staticClass:\"px-3\"},[_c('span',{staticClass:\"headline text-h5 pl-4\"},[_vm._v(\" \"+_vm._s(_vm.t('Comment'))+\" \")]),_c('VSpacer'),_c('VBtn',{attrs:{\"icon\":\"\"},on:{\"click\":function($event){_vm.submitMessageDialog=false}}},[_c('VIcon',[_vm._v(\" mdi-close \")])],1)],1),_c('VCardText',[_c('VTextareaEng',{attrs:{\"outlined\":\"\",\"rows\":\"1\",\"auto-grow\":\"\",\"locale\":_vm.locale,\"message\":_vm.message,\"value-eng\":_vm.modelMessage.text_eng},on:{\"inputEng\":function (valueEng) { return _vm.modelMessage.text_eng = valueEng; }},model:{value:(_vm.modelMessage.text),callback:function ($$v) {_vm.$set(_vm.modelMessage, \"text\", $$v)},expression:\"modelMessage.text\"}})],1),_c('VCardActions',{staticClass:\"pr-4\"},[_c('VSpacer'),_c('VBtn',{attrs:{\"color\":\"secondary\",\"text\":\"\"},on:{\"click\":function($event){_vm.submitMessageDialog = false; _vm.showMessageDialog = false;}}},[_vm._v(\" \"+_vm._s(_vm.t('Close'))+\" \")]),_c('VBtn',{attrs:{\"color\":\"primary\",\"text\":\"\"},on:{\"click\":function($event){_vm.submitMessageDialog = true; _vm.showMessageDialog = false;}}},[_vm._v(\" \"+_vm._s(_vm.t('Submit'))+\" \")])],1)],1)],1),_c('FileLoader',{attrs:{\"preview\":true,\"document\":_vm.fileLoaderDocument,\"is-cards\":\"\",\"role\":_vm.role},on:{\"onClose\":_vm.handleFileLoaderClose},model:{value:(_vm.downloadOptions),callback:function ($$v) {_vm.downloadOptions=$$v},expression:\"downloadOptions\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import store from '@/store'\nimport router from '../router'\nimport i18n from '../plugins/i18n'\nimport { TableService } from '@/common/api.service.js'\nimport moment from 'moment'\nimport documentHelpers from './document/documentHelpers'\nimport localeHelpers from '@/common/locale/localeHelpers';\nimport paramHelpers from '@/common/settings/paramHelpers.js'\nimport signHelpers from '@/common/sign/signHelpers'\nimport { checkActionForbiddenPeriod } from '@/common/documentSection/vacation/vacationHelpers'\n\nconst innerText = (text, message) => {\n return `${message}

${i18n.t(text)}

`;\n};\n\nexport default {\n\n all_types: function (document, workflow) {\n const myDocType = store.state.app.documentTypes.find(i => i.id === document.document_type_id) // get my document type\n const mySubordinateRecord = store.state.app.subordination.find(i => i.employee_id === document.employee_id && i.type === 'direct') // get my direct subordinate\n return [\n {\n name: 'subordinate_check',\n type: 'error',\n check: () => {\n // отключил для отправки workflow в estimate\n const disabled = true // Если захочешь отключить...\n if (disabled) return false\n if (!document || !document.nextManagerWorkflows) return false // если что-то не так с доком\n if (!workflow || !workflow.next_status_id) return false // если что-то не так с воркфлоу\n if (!myDocType || !myDocType.object_id) return false // если нет доктайпа\n if (document.nextManagerWorkflows.length < 1) return false // manager не может ничего поделать со следующим по workflow статусом, выходим\n if (mySubordinateRecord) return false // manager есть - отрубаемся\n return {\n message: i18n.t('The Manager is not verified by the system. Please contact HR department to proceed'),\n }\n },\n },\n ]\n },\n vacation_schedule: function (document, workflow) {\n const paramData = store.state.param.data\n return [\n {\n type: 'error_ex',\n check: () => {\n return { message: 'Error Example' }\n },\n },\n {\n type: 'warning_ex',\n check: () => {\n return { message: 'Будем продолжать?' }\n },\n },\n {\n type: 'warning_ex',\n check: () => {\n return { message: 'Точно будем продолжать?' }\n },\n callback: () => {\n console.log('Решили точно продолжать')\n },\n },\n {\n type: 'confirm_ex',\n check: () => {\n return { message: 'Будет выполнено параллельное действие' }\n },\n callback: () => {\n console.log('Действие')\n },\n },\n {\n name: 'closed_schedule_period',\n type: 'error',\n check: () => {\n const disabled = true // Временно отключим правило\n if (disabled) return false\n // Процессить заявки в график можно только на периоды больше текущего года\n if (document.type !== 'schedule') return false\n // Только при переходе в статус prepared и назад\n if (workflow.next_status_id !== 'prepared' && workflow.status_id !== 'prepared') return false\n // С этим периодом действия запрещены\n // const currentYear = new Date().getFullYear()\n // if (document.vacation_schedule_period * 1 <= currentYear) {\n // Сейчас любые действия с документами в график запрещены\n const vacationScheduleStart = paramData.vacation_schedule_start || moment(11, 'MM')\n const vacationScheduleEnd = paramData.vacation_schedule_end || moment(paramData.vacation_schedule_start).endOf('year')\n if (!moment().isBetween(vacationScheduleStart, vacationScheduleEnd)) {\n return {\n message: i18n.t('The vacation schedule period is closed'),\n }\n }\n },\n },\n {\n name: 'full_month',\n type: 'error',\n check () {\n // Нельзя отправлять на согласование заявки в график, если нарушается условие 8 выходных на 28 дней\n if (paramData.vacation_validate_full_month !== '1') return false\n if (document.type !== 'schedule' || workflow.business_role !== 'employee') return\n if (workflow.status_id === 'empty' && workflow.next_status_id === 'draft') return\n // Только при переходе в статус prepared\n if (workflow.next_status_id !== 'prepared') return false\n // Не будем ограничиваться ежегодным отпуском по document\n // потому что может передаваться на согласование в график отпуск другого типа\n // и валидация process_schedule_togeter отправит их всех вместе уже без проверки\n const vacations = store.state.app.vacations\n .filter(i =>\n i.employee_id === document.employee_id &&\n i.vacation_schedule_period === document.vacation_schedule_period &&\n (!i.replaced || !i.replaced === '1') &&\n !i.replaced_vacation_ids,\n )\n // Посчитаем количество выходных\n let totalDays = 0\n let totalWeekendDays = 0\n vacations.forEach(vacationItem => {\n // не будем ограничиваться ежегодным отпуском, будем считать ratio по всем видам отпусков в график одного года\n if (vacationItem.document_type_name_eng !== 'Annual paid vacation') return\n totalDays += vacationItem.days * 1\n const weekendDays = store.getters.APP_GET_DATEDIFF({ startDate: vacationItem.start_date, endDate: vacationItem.end_date, dailyInfo: [1, 0, 0, 0, 0, 0, 1] })\n totalWeekendDays += weekendDays\n })\n\n const allowedWeekendDays = (((totalDays * 1 + 2) / 7) | 0) * 2\n if (totalWeekendDays < allowedWeekendDays) {\n return {\n message: i18n.t('Count of used weekends is less than allowed') +\n ` (${totalWeekendDays} < ${allowedWeekendDays})`,\n }\n }\n return false\n },\n },\n {\n name: 'unallocated_schedule_limits',\n type: 'error',\n check () {\n // Нельзя отправлять на согласование заявки в график, если период не полностью распределен\n if (paramData.vacation_validate_unallocated_schedule !== '1') return false\n if (document.type !== 'schedule' || workflow.business_role !== 'employee') return\n if (workflow.status_id === 'empty' && workflow.next_status_id === 'draft') return\n // Только при переходе в статус prepared и назад\n if (workflow.next_status_id !== 'prepared' && workflow.status_id !== 'prepared') return false\n\n // const vacationLimits = store.getters.APP_GET_VACATION_LIMITS\n const vacationLimits = store.state.app.vacationLimits.filter(i =>\n i.period === document.vacation_schedule_period &&\n i.employee_id === document.employee_id,\n )\n\n const vacations = store.state.app.vacations\n .filter(i =>\n i.employee_id === document.employee_id &&\n i.vacation_schedule_period === document.vacation_schedule_period &&\n (!i.replaced || !i.replaced === '1') &&\n !i.replaced_vacation_ids,\n )\n // Выполним проверку по каждому виду отпуска в пределах года\n let message = ''\n vacationLimits.forEach(limitItem => {\n const vacationsByType = vacations.filter(i => i.document_type_id === limitItem.document_type_id)\n let days = 0\n if (vacationsByType.length > 0) {\n days = vacationsByType.reduce((sum, i) => { return sum + 1 * i.days }, 0)\n }\n if (!days) days = 0\n if (document.unsaved && document.document_type_id === limitItem.document_type_id) days = days + document.days\n if (days * 1 < limitItem.norma * 1) {\n message = message + (message ? '+' : '') + `${limitItem.norma * 1 - days * 1}`\n }\n })\n\n if (message) {\n return {\n message: i18n.t('Annual vacation schedule limits are not completely allocated') +\n ` (${i18n.t('Days Rest')}: ${message})
` +\n i18n.t('Return to save vacation and create other ones'),\n }\n }\n return false\n },\n },\n {\n name: 'forbidden_period',\n type: 'error',\n check () {\n return checkActionForbiddenPeriod(document, workflow)\n },\n },\n {\n name: 'process_schedule_together',\n type: 'confirm',\n prepareData (updateItem = false) {\n const vacations = store.state.app.vacations\n const data = []\n const profile = store.getters.getProfile\n vacations.forEach(item => {\n if (item.employee_id === document.employee_id &&\n item.type === 'schedule' &&\n item.vacation_schedule_period === document.vacation_schedule_period &&\n (!item.replaced || !(item.replaced === '1')) &&\n !item.replaced_vacation_ids &&\n (\n (workflow.status_id === 'prepared' && item.status_id === 'prepared') ||\n (workflow.status_id === 'draft' && item.status_id === 'draft') ||\n (\n workflow.next_status_id === 'prepared' &&\n (\n item.status_id === 'empty' ||\n item.status_id === 'draft' ||\n item.status_id === 'declined'\n )\n )\n ) &&\n item.type === document.type\n ) {\n data.push({\n object_id: 'vacation_schedule',\n registrator_id: item.id,\n workflow_id: workflow.id,\n status_id: workflow.next_status_id,\n creator_id: profile.id,\n organization_id: item.organization_id,\n message_text: document.comment_text,\n message_text_eng: document.comment_text_eng,\n })\n if (updateItem) {\n item.workflow_id = workflow.id\n item.status_id = workflow.next_status_id\n item.indicators = workflow.indicators\n }\n }\n })\n return data\n },\n check () {\n const {\n business_role: role = '',\n status_id: status = '',\n } = workflow ?? {}\n\n // Сотрудник и руководитель может отправлять заявки в график только все вместе\n if (paramData.vacation_validate_process_schedule_together !== '1') return false\n if (document.type !== 'schedule' || (workflow.business_role !== 'employee' && workflow.business_role !== 'manager')) return false\n if (workflow.status_id === 'empty' && workflow.next_status_id === 'draft') return false\n // Только при переходе в статус prepared и назад для сотрудника\n if (workflow.business_role === 'employee' && workflow.next_status_id !== 'prepared' && workflow.status_id !== 'prepared') return false\n\n // Только для согласования и отклонения для руководителя\n if (\n role === 'manager' &&\n !(\n status === 'prepared' || // FALSE\n status === 'draft'\n )\n ) {\n return false\n }\n\n const data = this.prepareData()\n if (data.length <= (document.unsaved ? 0 : 1)) return false\n return { message: i18n.t('This action will be applied to all the vacation parts. Would you like to continue?') }\n },\n async callback () {\n const data = this.prepareData(true)\n if (data.length > 0) {\n await TableService.add({ object: 'document_status', data })\n\n let link = ''\n\n switch (workflow.business_role) {\n case 'employee':\n link = 'uvacations-own';\n break;\n case 'manager':\n link = 'uvacations-sub';\n break;\n case 'hr':\n link = 'uvacations';\n break;\n\n default:\n link = 'home';\n break;\n }\n\n router.push({ name: link });\n // Обновим статусы в сторе\n // const vacations = store.state.app.vacations\n // data.forEach(item => {\n // const vacation = vacations.find(v => v.id === item.registrator_id)\n // vacation.status_id = item.status_id\n // })\n }\n },\n },\n {\n name: 'early_confirm',\n type: 'warning',\n check: () => {\n // Проверим, если сотрудник подтверждает отпуск, до которого больше 2 месяцев, предупредим чтобы не спешил\n if (document.type !== 'schedule' || workflow.business_role !== 'employee') return false\n if (workflow.next_status_id !== 'confirmed') return false\n const leftMonths = moment(document.start_date).diff(moment(), 'months')\n if (leftMonths < 2) return false\n return { message: i18n.t('It is recommended to confirm the document just before the event. Continue anyway?') }\n },\n },\n {\n name: 'signed_confirm',\n type: 'warning',\n check: () => {\n const disabled = false // Если захочешь отключить...\n if (disabled) return false\n if (!document) return false // если что-то не так с доком\n if (!workflow || !workflow.next_status_id) return false // если что-то не так с воркфлоу\n if (!workflow.next_status_id || workflow.next_status_id !== 'signed' || workflow.reject === '1') return false // только для документа, который отправляется на подписание\n return {\n message: i18n.t('By pressing OK button I confirm that I am informed and agree with the attached vacation order'),\n }\n },\n },\n ]\n },\n vacation_correction: function (document, workflow) {\n const paramData = store.state.param.data\n return [\n {\n name: 'full_month',\n type: 'error',\n check () {\n // Нельзя отправлять на согласование корректировку в график, если нарушается условие 8 выходных на 28 дней\n if (paramData.vacation_validate_full_month !== '1') return false\n if (document.type !== 'correction' || !document.replaced_vacation_ids) return false\n if (workflow.status_id === 'empty' && workflow.next_status_id === 'draft') return\n // Только при переходе в статус prepared\n if (workflow.next_status_id !== 'prepared') return false\n\n const vacations = store.state.app.vacations\n .filter(i =>\n i.employee_id === document.employee_id &&\n i.vacation_schedule_period === document.vacation_schedule_period &&\n (!i.replaced || !i.replaced === '1'),\n // (!i.replaced_vacation_ids || i.id === document.id) &&\n // !document.replaced_vacation_ids.includes(i.id)\n )\n // Исключим из выборки отпуска, который заместились корректировками\n const vacation2 = vacations.filter((vacationItem) =>\n !vacations.find((i) => (i.replaced_vacation_ids || '').includes(vacationItem.id)),\n )\n // Посчитаем количество выходных\n let totalDays = 0\n let totalWeekendDays = 0\n vacation2.forEach(vacationItem => {\n if (vacationItem.document_type_name_eng !== 'Annual paid vacation') return\n totalDays += vacationItem.days * 1\n const weekendDays = store.getters.APP_GET_DATEDIFF({ startDate: vacationItem.start_date, endDate: vacationItem.end_date, dailyInfo: [1, 0, 0, 0, 0, 0, 1] })\n totalWeekendDays += weekendDays\n })\n\n const allowedWeekendDays = (((totalDays * 1 + 2) / 7) | 0) * 2\n if (totalWeekendDays < allowedWeekendDays) {\n return {\n message: i18n.t('Count of used weekends is less than allowed') +\n ` (${totalWeekendDays} < ${allowedWeekendDays})`,\n }\n }\n return false\n },\n },\n {\n name: 'unallocated_correction_days',\n type: 'error',\n check () {\n // Нельзя отправлять на согласование корректировки, если остаток не полностью распределен\n if (paramData.vacation_validate_unallocated_correction !== '1') return false\n if (document.type !== 'correction' || !document.replaced_vacation_ids) return false\n if (workflow.status_id === 'empty' && workflow.next_status_id === 'draft') return false\n // Родительский отпуск\n const parentVacations = store.state.app.vacations\n .filter(i => document.replaced_vacation_ids.indexOf(i.id) > -1)\n let parentDays = 0\n if (parentVacations.length > 0) {\n parentDays = parentVacations.reduce((sum, i) => { return sum + 1 * i.days }, 0)\n }\n if (parentDays === document.days * 1) return false\n // Ищем все корректировки родительского отпуска\n const childVacations = store.state.app.vacations\n .filter(i => i.replaced_vacation_ids && i.replaced_vacation_ids.indexOf(parentVacations[0].id) > -1)\n let childDays = 0\n if (childVacations.length > 0) {\n childDays = childVacations.reduce((sum, i) => { return sum + 1 * i.days }, 0)\n }\n if (document.unsaved) childDays = childDays + document.days\n if (parentDays === childDays) return false\n return {\n message: i18n.t('The are vacation days after correction') +\n ` (${i18n.t('Days Rest')}: ${parentDays - childDays})
` +\n i18n.t('Return to save vacation and create other ones'),\n }\n },\n },\n {\n name: 'forbidden_period',\n type: 'error',\n check () {\n return checkActionForbiddenPeriod(document, workflow)\n },\n },\n {\n name: 'process_correction_together',\n type: 'confirm',\n prepareData (updateItem = false) {\n const data = []\n const profile = store.getters.getProfile\n\n // Родительский отпуск\n const parentVacations = store.state.app.vacations\n .filter(i => document.replaced_vacation_ids.indexOf(i.id) > -1)\n // Ищем все корректировки родительского отпуска\n const childVacations = store.state.app.vacations\n .filter(i => i.replaced_vacation_ids && i.replaced_vacation_ids.indexOf(parentVacations[0].id) > -1)\n childVacations.forEach(item => {\n data.push({\n object_id: 'vacation_correction',\n registrator_id: item.id,\n workflow_id: workflow.id,\n status_id: workflow.next_status_id,\n creator_id: profile.id,\n organization_id: item.organization_id,\n })\n if (updateItem) {\n item.workflow_id = workflow.id\n item.status_id = workflow.next_status_id\n item.indicators = workflow.indicators\n }\n })\n return data\n },\n check () {\n const { business_role: role = '', next_status_id: nextStatus = '', status_id: status = '' } = workflow ?? {}\n // Сотрудник может отправлять корректировки только все вместе\n if (paramData.vacation_validate_process_correction_together !== '1') return false\n if (document.type !== 'correction') return false\n if (workflow.status_id === 'empty' && workflow.next_status_id === 'draft') return false\n if (\n role !== 'employee' &&\n role !== 'manager' &&\n role !== 'hr'\n ) return false\n // Только при переходе в статус prepared и назад для сотрудника\n if (workflow.business_role === 'employee' && workflow.next_status_id !== 'prepared' && workflow.status_id !== 'prepared') return false\n\n // Только для согласования и отклонения для руководителя\n if (\n role === 'manager' &&\n !(\n status === 'prepared' ||\n status === 'draft'\n )\n ) {\n return false\n }\n\n if (\n role === 'hr' &&\n nextStatus !== 'agreed' &&\n status !== 'draft'\n ) return false\n const data = this.prepareData()\n if (data.length <= (document.unsaved ? 0 : 1)) return false\n return { message: i18n.t('All vacation parts to this correction will be sent. Continue?') }\n },\n callback () {\n const data = this.prepareData(true)\n if (data.length > 0) {\n TableService.add({ object: 'document_status', data })\n }\n },\n },\n {\n name: 'signed_confirm',\n type: 'warning',\n check: () => {\n const disabled = false // Если захочешь отключить...\n if (disabled) return false\n if (!document) return false // если что-то не так с доком\n if (!workflow || !workflow.next_status_id) return false // если что-то не так с воркфлоу\n if (!workflow.next_status_id || workflow.next_status_id !== 'signed' || workflow.reject === '1') return false // только для документа, который отправляется на подписание\n return {\n message: i18n.t('By pressing OK button I confirm that I am informed and agree with the attached vacation order'),\n }\n },\n },\n ]\n },\n vacation: function (document, workflow) {\n const documentType = documentHelpers?.getDocumentTypeData(document)\n const documentTypeCode = documentType?.code ?? ''\n const isForSign = signHelpers.checkIsSignWorkflow(workflow)\n const isEng = localeHelpers.isEng()\n\n return [\n {\n name: 'empty_comment',\n type: 'error',\n check: () => {\n const { comments = '', comments_eng: commentsEng = '' } = document ?? {}\n if (!documentHelpers.validateComment(document, documentType)?.length) return false;\n\n if (isEng && commentsEng?.length) return false\n\n if (!isEng && comments?.length) return false\n\n return {\n message: i18n.t('Fill in the \"Comment\" field'),\n }\n },\n },\n {\n name: 'include_file_by_document_type',\n type: 'error',\n check: () => {\n const message = localeHelpers.getTextByAlias(`attach_require_${documentTypeCode}_hint`)\n\n // Проверять только документы без подписания\n if (!isForSign) {\n if (!document?.files) return false // если что-то не так с файлами\n if (!documentTypeCode) return false // если нет доктайпа\n if (documentType?.object_id !== 'vacation') return false // если мы не в отпусках ¯\\_(ツ)_/¯\n if (workflow?.status_id === 'empty' && workflow?.next_status_id === 'draft') return false // дадим сохранить первый раз\n if (workflow?.next_status_id === 'processed') return false // только для документа, который не на обработку\n if (documentHelpers.checkFileAttached(document)) return false;\n } else {\n return false\n }\n return {\n message,\n }\n },\n },\n {\n name: 'forbidden_period',\n type: 'error',\n check () {\n return checkActionForbiddenPeriod(document, workflow)\n },\n },\n {\n name: 'signed_confirm',\n type: 'warning',\n check: () => {\n const disabled = false // Если захочешь отключить...\n if (disabled) return false\n if (!document) return false // если что-то не так с доком\n if (!workflow || !workflow.next_status_id) return false // если что-то не так с воркфлоу\n if (!workflow.next_status_id || workflow.next_status_id !== 'signed' || workflow.reject === '1') return false // только для документа, который отправляется на подписание\n return {\n message: i18n.t('By pressing OK button I confirm that I am informed and agree with the attached vacation order'),\n }\n },\n },\n ]\n },\n overtime: function (document, workflow) {\n const docType = store?.state?.app?.documentTypes?.find(i => i.id === document?.document_type_id)\n const isNextWorkflow = !Number(workflow?.reject)\n\n return [\n {\n name: 'work_on_holiday_agreement',\n type: 'error',\n check: () => {\n if (docType?.object_id !== 'overtime') return false\n if (\n !workflow?.detail?.checkbox_work_agreement_actioncheck_require ||\n !isNextWorkflow\n ) {\n return false\n }\n\n // Проверка на наличие согласия выхода на работу только для статусов \"Дальше\"\n if (document?.details?.work_on_holiday_agreement) {\n return false\n }\n\n return {\n message: i18n.t('Work on holiday agreement check is mandatory'),\n }\n },\n },\n {\n name: 'work_denial_confirm',\n type: 'error',\n check: () => {\n if (docType?.object_id !== 'overtime') return false\n if (!workflow?.detail?.checkbox_denial_confirm_actioncheck_require) {\n return false\n }\n\n if (document?.details?.work_denial_confirm) {\n return false\n }\n\n return {\n message: i18n.t('Agree to the clause about the right to refuse work'),\n }\n },\n },\n {\n name: 'include_file_by_document_type',\n type: 'error',\n check: () => {\n if (!document?.files) return false\n if (!docType?.code) return false\n if (docType?.object_id !== 'overtime') return false\n if (!workflow.next_status_id || (workflow.next_status_id !== 'prepared' && workflow.next_status_id !== 'agreed')) return false // только для документа, который отправляется на согласование от сотрудников или для согласованных руководителями\n if (documentHelpers.checkFileAttached(document)) return false;\n return {\n message: i18n.t('The agreement paper has to be submitted for this type of overtime'),\n }\n },\n },\n {\n name: 'sent_to_hr_confirm',\n type: 'alert',\n check: () => {\n if (!document?.files) return false\n if (!docType?.code) return false\n if (docType?.object_id !== 'overtime') return false\n if (!workflow.next_status_id || workflow.next_status_id !== 'prepared' || workflow.reject === '1') return false // только для документа, который отправляется на согласование\n if (documentHelpers.checkFileAttached(document)) return false;\n return {\n message: i18n.t('The original agreement paper has to be sent to HR'),\n }\n },\n },\n ]\n },\n btrip: function (document, workflow) {\n const paramData = store.state.param.data // get some params\n const warningText = `\n

${i18n.t('Please note that the employee has chosen the \"Stay on the weekend\" option.')}

\n

${i18n.t('To confirm the approval - click \"Yes\"')}

\n

${i18n.t('To cancel the approval - click \"No\" and decline the business trip request')}

`\n\n let message = '';\n\n return [\n {\n name: 'signed_confirm',\n type: 'warning',\n check: () => {\n // при согласовании если выбран чекбокс \"остаться на выходные\" (только для руководителя)\n if (!document.sub) return false\n if (workflow?.next_status_id !== 'agreed') return false\n if (!document?.details?.is_weekend_included) return false\n if (documentHelpers.checkFileAttached(document)) return false;\n return {\n message: warningText,\n }\n },\n },\n {\n name: 'another_btrips_without_expences',\n type: 'error',\n check: () => {\n const isBtripMultiDestination = !!Number(paramData.isBtripMultiDestination)\n const isBtripRequireExpense = !!Number(paramData.btrip_require_expense);\n // Дата после которой нельзя задать командировку\n const btripDateDisable = paramData.btrip_date_disable;\n const { details: docDetails } = document\n const tripList = docDetails?.trip_destination_requests\n const tripListLast = tripList?.[tripList?.length - 1]\n const lastTripLeaveDate = tripListLast?.leave_on\n // const lastLeaveDate = helpers.getDayOfWeekIndex(lastTripLeaveDate)\n\n const innerText = (text) => {\n return `${message}

${i18n.t(text)}

`\n }\n\n const checkDocument = () => {\n if (workflow?.next_status_id !== 'prepared') {\n return\n }\n\n if (!documentHelpers.checkFileAttached(document)) {\n message = innerText(\n localeHelpers.getTextByAlias('btrip_attach_require_error'),\n );\n }\n\n if (\n isBtripRequireExpense &&\n !document?.otherBtripsWithoutExpence?.length\n ) {\n message = innerText(\n i18n.t(\n 'Submit an expense report for one of your past business trips',\n ),\n );\n }\n\n if (isBtripMultiDestination) {\n // Для нескольких командировок при отправке на согласование должна быть верная заполнена последняя дата\n if (document?.end_date !== lastTripLeaveDate) {\n message = innerText(\n i18n.t(\n 'The end date of the last route has to be equal to the end date of the whole period defined in Main tab.',\n ),\n );\n }\n\n // Причина отключения - добавлена проверка на активацию чекбокса в разделе командировок\n // if (\n // docDetails.is_weekend_included && // выбран чекбокс\n // lastLeaveDate !== 5 // только в пятницу\n // ) {\n // message = innerText(i18n.t('Check in \"Stay on the weekend\" checkbox in case the date of your return ticket doesn\\'t concide with the end of your business trip.'))\n // }\n }\n\n if (btripDateDisable?.length) {\n const dateBtripDateDisable = moment(btripDateDisable);\n\n // Если дата начала больше даты доступной командировки, то показывать сообщение и не отправлять заявку\n if (moment(document?.start_date).isAfter(dateBtripDateDisable)) {\n message = innerText(\n i18n.t(\n localeHelpers.getTextByAlias('btrip_date_disable_message'),\n ),\n );\n }\n }\n }\n\n if (!documentHelpers.checkValidDocument(document, 'btrip')) {\n message = i18n.t('System error. Contact technical support.');\n } else {\n checkDocument();\n }\n\n return {\n message,\n }\n },\n },\n ]\n },\n estimate: function (document, workflow) {\n const {\n goals: goalsList,\n valuation: valuationList,\n goalsWeightTotal: goalsWeight,\n // rating,\n planningGoalsWeightTotal: planningGoalsWeight,\n planningGoals: planningGoalsList,\n formLayoutTabs,\n } = store.state.estimate;\n\n const role = workflow?.business_role ?? '';\n const layoutTabList = document?.layout_tab\n ?.trim()\n .split(';')\n .filter((i) => !!i);\n\n const list = [];\n\n layoutTabList.forEach((element) => {\n const item = formLayoutTabs.find((i) => i.code === element && i.business_role === role);\n\n if (item) {\n list.push(item);\n }\n });\n\n // Найти вкладку у формы\n const findTab = (code) => {\n return !!list.find((i) => i.code === code);\n }\n\n // Проверка на наличие вкладки формы\n const isPlanningGoalsTab = findTab('planning_goals');\n const isGoalsTab = findTab('goals');\n\n // Отключена проверка \"Планирование обучения\" по просьбе заказчика\n // const isPlanEducList = planningEducationList.length >= 1 // минимум 1 запись в таблице\n const isTypeYearly = document.type === '1'; // годовая\n const isTypeInterim = document.type === '2'; // вне периода\n const isTypePlan = document.type === '3'; // планирование\n\n // Итоговая оценка\n const isFinal = !!Number(document?.is_final)\n\n const fullWeight = 100\n\n // Вкладка Цели\n // Заполнены цели\n const isGoalsList = isGoalsTab ? !!goalsList?.length : true;\n // Проверка на вес целей\n const isGoalsWeight = isGoalsTab ? goalsWeight === fullWeight : true; // вес целей должен быть 100\n\n // Вкладка Планирование целей\n // Проверка на вес целей планирования, если есть вкладки Планирование целей\n const isPlanningGoalsWeight = isPlanningGoalsTab ? planningGoalsWeight === fullWeight : true// вес должен быть 100\n // Проверка на наличие целей планирования, если есть вкладки Планирование целей\n const isPlanGoalsList = isPlanningGoalsTab ? planningGoalsList.length >= 3 : true; // минимум 3 записи в таблице\n\n let message = ''\n let isGoalSelfEsteem = true\n let isGoalAssessment = true\n let isValuationSelfEsteem = true\n let isValuationAssessment = true\n\n const innerText = (text) => {\n return `${message}

${i18n.t(text)}

`\n }\n\n const isVinyl = store.state?.param?.client?.code.includes('rusvinyl');\n\n return [\n {\n name: '',\n type: 'error',\n check: () => {\n const { name: url } = router.history?.current\n\n // выполнять проверку только на странице оценочной формы\n if (!url.includes('estimate-grading')) {\n return true;\n }\n\n // проверка записей в таблице Цели\n goalsList.forEach(element => {\n const { self_esteem: selfEsteem, assessment } = element\n // если есть пустое поле с графе \"Самооценка\" для сотрудника\n if (!selfEsteem?.length || Number(selfEsteem) === 0) isGoalSelfEsteem = false\n // если есть пустое поле с графе \"Оценка руководителя\" для руководителя\n if (!assessment?.length || Number(assessment) === 0) isGoalAssessment = false\n })\n\n // проверка записей в таблице Ценности\n valuationList.forEach(element => {\n const { self_esteem: selfEsteem, assessment } = element\n // если есть пустое поле с графе \"Самооценка\" для сотрудника\n if (!selfEsteem?.length) isValuationSelfEsteem = false\n // если есть пустое поле с графе \"Оценка руководителя\" для руководителя\n if (!assessment?.length) isValuationAssessment = false\n })\n\n const checkEmployeeFields = () => {\n // if (isPlanningGoals && isGoalSelfEsteem && isValuationSelfEsteem && isPlanEducList) return false\n if (\n isGoalSelfEsteem &&\n isValuationSelfEsteem &&\n isGoalsList &&\n isPlanningGoalsWeight &&\n isPlanGoalsList\n ) {\n return false;\n }\n\n if (!isGoalsList) {\n message = innerText(i18n.t('Complete the Goals section'));\n }\n\n if (!isPlanGoalsList) {\n message = innerText(\n i18n.t(\n 'At least 3 records have to be submitted in the "New Period Goals" tab',\n ),\n );\n }\n\n if (!isGoalSelfEsteem && isFinal) {\n message = innerText(\n i18n.t(\n 'Check your self-assessments in the "Goals" tab. They have to be above 0',\n ),\n );\n }\n // TODO: У Русвинила про Ценности\n // if (!isValuationSelfEsteem) message = innerText(i18n.t('Check your self-assessments in the "Competencies" tab. They have to be above 0.'))\n if (!isValuationSelfEsteem && isFinal) {\n message = innerText(\n i18n.t(\n 'Check your self-assessments in the "Competencies" tab. They have to be above 0.',\n ),\n );\n }\n }\n\n const checkSubFields = () => {\n if (\n isGoalAssessment &&\n isValuationAssessment &&\n isPlanningGoalsWeight &&\n isPlanGoalsList &&\n isGoalsList &&\n isGoalsWeight\n ) {\n return false;\n }\n\n if (!isPlanningGoalsWeight) {\n message = innerText(\n i18n.t(\n 'The total weight of all the goals for the next period must be equal to 100.',\n ),\n );\n }\n\n if (!isPlanGoalsList) {\n message = innerText(\n i18n.t(\n 'At least 3 records have to be submitted in the "New Period Goals" tab',\n ),\n );\n }\n\n if (!isGoalsList) {\n message = innerText(\n i18n.t(\n 'The total weight of all the goals must be equal to 100.',\n ),\n );\n }\n\n if (!isGoalsWeight) {\n message = innerText(\n i18n.t(\n 'The total weight of all the goals must be equal to 100.',\n ),\n );\n }\n\n if (!isGoalAssessment && isFinal) {\n message = innerText(\n i18n.t(\n 'Check your assessments in the "Goals" tab. They have to be above 0.',\n ),\n );\n }\n\n if (!isValuationAssessment && isFinal) {\n message = innerText(\n // TODO: Для Русвинила\n // i18n.t(\n // 'Check your assessments in the "Valuation" tab. They have to be above 0.',\n // ),\n i18n.t(\n 'Check your assessments in the "Competencies" tab. They have to be above 0.',\n ),\n );\n }\n }\n\n if (url === 'estimate-grading') {\n // if (isPlan) {\n // if (isPlanningGoals && isPlanEducList && isPlanGoalsList) return false\n // }\n\n if (isTypeYearly || isTypeInterim || isVinyl) {\n checkEmployeeFields();\n }\n }\n\n if (url === 'estimate-grading-sub') {\n if (isTypePlan) {\n // if (isPlanningGoals && isPlanEducList && isPlanGoalsList) return false\n // TODO: отключено для конти\n // if (isPlanningGoals && isPlanGoalsList) return false\n // if (isPlanGoalsList) return false\n }\n\n if (isVinyl) {\n checkSubFields();\n }\n\n // TODO: только для Конти\n // попросили отключить проверку\n // if (\n // !rating?.[0]?.performance?.length ||\n // !rating?.[0]?.potential?.length\n // ) {\n // message = innerText(i18n.t('Заполните таблицу Рейтинг'));\n // }\n\n if (isTypeYearly && !isVinyl) {\n checkSubFields();\n }\n\n if (isTypeInterim && !isVinyl) {\n checkSubFields();\n }\n\n // Промежуточная оценка не проверяет планирование\n if (!isTypeInterim) {\n // TODO: отключено для конти\n // if (!isPlanningGoals) {\n // message = innerText(\n // i18n.t(\n // 'The total weight of all the goals for the next period must be equal to 100.'\n // )\n // );\n // }\n // if (!isPlanGoalsList) {\n // message = innerText(\n // i18n.t(\n // 'At least 3 records have to be submitted in the "New Period Goals" tab'\n // )\n // );\n // }\n }\n }\n\n if (url === 'estimate-grading-hr') {\n // hr передвигает без проверок\n return false\n }\n\n // if (!isPlanEducList) message = innerText(i18n.t('At least 1 record has to be submitted in the "New Period Training Plan" tab'))\n\n return {\n message,\n }\n },\n },\n ]\n },\n material_assistance: function (document, workflow) {\n const docType = store.state.app.documentTypes.find(i => i.id === document.document_type_id) // get my document type\n\n return [\n {\n name: 'include_file_by_document_type',\n type: 'error',\n check: () => {\n const disabled = false // Если захочешь отключить...\n if (disabled) return false\n if (!docType?.code) return false; // если нет доктайпа\n if (docType?.object_id !== 'material_assistance') {\n return false; // если мы не в мат. помощи\n }\n if (workflow?.next_status_id !== 'prepared') return false // только для документа, который отправляется на согласование\n if (documentHelpers.checkFileAttached(document)) return false; // есть файлы\n return {\n message: i18n.t('The reason paper has to be submitted for this type of material assistance'),\n }\n },\n },\n ]\n },\n absence: function (document, workflow) {\n return [\n {\n name: 'include_file_by_document_type',\n type: 'error',\n check: () => {\n if (workflow?.next_status_id !== 'prepared') return false\n if (documentHelpers?.checkFileAttached(document)) return false;\n\n return {\n message: i18n.t('Please enclose required documents to your request'),\n }\n },\n },\n ]\n },\n absence_validate: function (document, workflow) {\n return [\n {\n name: 'include_file_by_document_type',\n type: 'error',\n check: () => {\n if (workflow?.next_status_id !== 'prepared') return false\n if (documentHelpers?.checkFileAttached(document)) return false;\n\n return {\n message: i18n.t('Please enclose required documents to your request'),\n }\n },\n },\n ]\n },\n sickleave: function (document, workflow) {\n return [\n {\n name: '',\n type: 'error',\n check: () => {\n // проверка только с closed\n if (workflow.next_status_id !== 'closed') {\n return false\n }\n\n // проверка по параметру\n if (!paramHelpers.paramCheckSickleaveNumberOnClose()) return false\n\n // длина больничного листа должна быть 12\n if (document?.comments?.length === 12) {\n return false\n }\n\n return {\n message: i18n.t('Wrong sick leave number'),\n }\n },\n },\n ]\n },\n statement: function (document, workflow) {\n const { business_role: role } = workflow\n let message = '';\n\n return [\n {\n name: '',\n type: 'error',\n check: () => {\n const { statements, documentTypes } = store?.state?.app ?? [];\n\n if (\n !documentHelpers.checkFileAttached(document) &&\n document?.object_id?.length\n ) {\n const errorAlias = `${document?.object_id}_attach_require_error`;\n\n message = innerText(errorAlias, message);\n }\n\n if (role === 'hr') {\n return false\n }\n\n // Заявление на увольнение\n const dismissalType = documentTypes.find(\n (i) => i.code === 'dismissal',\n );\n\n // Если заявление на увольнение\n if (document?.document_type_id === dismissalType?.id) {\n // Найти любой документ кроме текущего\n const isExist = statements.find(\n (i) =>\n i.document_type_id === dismissalType?.id &&\n i.employee_id === document?.employee_id &&\n i.status_id === 'prepared' &&\n i.id !== document.id,\n );\n\n if (isExist) {\n message = i18n.t('Resignation letter already created');\n }\n }\n\n return {\n message,\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!./WorkflowActions.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!./WorkflowActions.vue?vue&type=script&lang=js&\"","\n\n\n\n\n","export const isMobileDevice = () => {\n return /Mobi|Android/i.test(navigator?.userAgent);\n};\n","import { render, staticRenderFns } from \"./WorkflowActions.vue?vue&type=template&id=2ce55cd2&\"\nimport script from \"./WorkflowActions.vue?vue&type=script&lang=js&\"\nexport * from \"./WorkflowActions.vue?vue&type=script&lang=js&\"\nimport style0 from \"./WorkflowActions.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('VTextarea',_vm._b({attrs:{\"value\":_vm.messageText,\"label\":_vm.isEng ? _vm.t(_vm.$attrs.label, 'en') : _vm.t(_vm.$attrs.label, 'ru'),\"hint\":_vm.isEng ? _vm.t(_vm.$attrs.hint, 'en') : _vm.t(_vm.$attrs.hint, 'ru'),\"data-test\":\"textarea-eng\"},on:{\"input\":function (value) { return _vm.update(value); }},scopedSlots:_vm._u([{key:_vm.slotAppend,fn:function(){return [_c('VBtn',{attrs:{\"text\":\"\",\"color\":\"primary\",\"x-small\":\"\"},nativeOn:{\"click\":function($event){return _vm.changeLocale.apply(null, arguments)}}},[_vm._v(\" \"+_vm._s(_vm.isEng ? 'en' : 'ru')+\" \")])]},proxy:true}],null,true)},'VTextarea',_vm.$attrs,false))}\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!./VTextareaEng.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!./VTextareaEng.vue?vue&type=script&lang=js&\"","\n\n\n\n","import { render, staticRenderFns } from \"./VTextareaEng.vue?vue&type=template&id=0e0a65b2&\"\nimport script from \"./VTextareaEng.vue?vue&type=script&lang=js&\"\nexport * from \"./VTextareaEng.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.props.isDisabled)?_vm._l((_vm.items),function(item){return _c('div',{key:item.id},[_vm._t(\"default\",null,{\"item\":item})],2)}):_vm._l((_vm.items),function(item,index){return _c('div',{key:item.id,attrs:{\"draggable\":\"true\"},on:{\"dragstart\":function($event){return _vm.onDragStart($event, index)},\"dragover\":function($event){$event.preventDefault();return _vm.onDragOver($event, index)},\"drop\":function($event){return _vm.onDrop($event, index)},\"dragend\":_vm.onDragEnd}},[_vm._t(\"default\",null,{\"item\":item,\"index\":index})],2)})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default {\n list: {\n type: Array,\n required: true,\n },\n isDisabled: {\n type: Boolean,\n default: false,\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!./DragAndDrop.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!./DragAndDrop.vue?vue&type=script&lang=js&\"","import { ref, watch } from '@vue/composition-api';\n\nexport default function useDragAndDrop (props = {}, { emit }) {\n const items = ref([...props.list]);\n const draggedIndex = ref(null);\n\n const onDragStart = (event, index) => {\n draggedIndex.value = index;\n event.dataTransfer.effectAllowed = 'move';\n event.dataTransfer.setData('text/plain', index);\n // event?.currentTarget?.classList?.add('dragging');\n };\n\n const onDragOver = (event, index) => {\n if (\n draggedIndex.value === null ||\n draggedIndex.value === index\n ) {\n return;\n }\n\n const draggedItem = items.value[draggedIndex.value];\n items.value.splice(draggedIndex.value, 1);\n items.value.splice(index, 0, draggedItem);\n draggedIndex.value = index;\n };\n\n const onDrop = () => {\n draggedIndex.value = null;\n };\n\n const onDragEnd = () => {\n draggedIndex.value = null;\n emit('end', items.value)\n };\n\n watch(\n () => props.list,\n (newVal) => {\n items.value = [...newVal];\n },\n );\n\n watch(\n items,\n (newItems) => {\n emit('input', newItems);\n },\n { deep: true },\n );\n\n return {\n items,\n onDragStart,\n onDragOver,\n onDrop,\n onDragEnd,\n }\n}\n","import { render, staticRenderFns } from \"./DragAndDrop.vue?vue&type=template&id=2d8562ec&\"\nimport script from \"./DragAndDrop.vue?vue&type=script&lang=js&\"\nexport * from \"./DragAndDrop.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","import DragAndDrop from './DragAndDrop.vue';\n\nexport default DragAndDrop;\n","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!./BtnActionGrid.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!./BtnActionGrid.vue?vue&type=style&index=0&lang=scss&module=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('AppTooltip',{attrs:{\"text\":_vm.downloadHelpText}},[_c('VBtn',{attrs:{\"icon\":\"\",\"disabled\":_vm.isDisabled},on:{\"click\":function($event){$event.stopPropagation();return _vm.handleClick($event)}}},[_c('VIcon',{attrs:{\"size\":\"30\"}},[_vm._v(\" \"+_vm._s(_vm.downloadIcon)+\" \")])],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!./ButtonDownloadDoc.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!./ButtonDownloadDoc.vue?vue&type=script&lang=js&\"","\n\n\n","import { render, staticRenderFns } from \"./ButtonDownloadDoc.vue?vue&type=template&id=7c47eb8e&\"\nimport script from \"./ButtonDownloadDoc.vue?vue&type=script&lang=js&\"\nexport * from \"./ButtonDownloadDoc.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!./WorkflowActions.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!./WorkflowActions.vue?vue&type=style&index=0&lang=scss&module=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('VProgressLinear',{attrs:{\"absolute\":\"\",\"bottom\":\"\",\"location\":\"bottom\",\"indeterminate\":\"\",\"active\":_vm.loading}}),_c('VDialog',{attrs:{\"content-class\":_vm.$style.container,\"max-width\":\"1200\",\"persistent\":\"\"},model:{value:(_vm.showDialog),callback:function ($$v) {_vm.showDialog=$$v},expression:\"showDialog\"}},[_c('div',{class:_vm.$style.wrapper},[_c('VCard',{class:_vm.$style.card},[_c('VCardTitle',{staticClass:\"px-4\",class:_vm.$style.header},[_c('div',{class:_vm.$style.headerTitle},[_vm._v(\" \"+_vm._s(_vm.modalTitle)+\" \")]),_c('div',{class:_vm.$style.headerButton},[(_vm.isFileSigned)?_c('ButtonDownloadDoc',{attrs:{\"is-archive\":\"\"},on:{\"click\":function($event){return _vm.process(false, 'zip')}}}):_vm._e(),_c('ButtonDownloadDoc',{on:{\"click\":function($event){return _vm.process(false, 'pdf')}}}),_c('ButtonPrint',{on:{\"click\":_vm.print}}),_c('VBtn',{attrs:{\"icon\":\"\"},on:{\"click\":_vm.close}},[_c('VIcon',[_vm._v(\" mdi-close \")])],1)],1)]),_c('div',{class:_vm.$style.inner},[_c('VCardText',{class:_vm.$style.document},[_c('iframe',{class:_vm.$style.iframe,style:((\"transform: scale(\" + _vm.iframeScale + \");\")),attrs:{\"id\":\"frame\",\"src\":_vm.localUrl,\"frameborder\":\"0\",\"crossorigin\":\"anonymous\",\"onload\":_vm.iframePrepare}})]),(_vm.isCards)?_c('div',{class:_vm.$style.content},[_c('ul',{class:_vm.$style.list},[_c('li',{class:_vm.$style.item},[_c('span',{class:_vm.$style.subtitle},[_vm._v(\" \"+_vm._s(_vm.t('Request Type'))+\" \")]),_c('span',[_vm._v(\" \"+_vm._s(_vm.requestTypeName)+\" \")])]),_c('li',{class:_vm.$style.item},[_c('span',{class:_vm.$style.subtitle},[_vm._v(\" \"+_vm._s(_vm.t('Status'))+\" \")]),_c('span',[_vm._v(\" \"+_vm._s(_vm.statusText)+\" \")])]),_c('li',{class:_vm.$style.item},[_c('span',{class:_vm.$style.subtitle},[_vm._v(\" \"+_vm._s(_vm.t('Create Date'))+\" \")]),_c('span',[_vm._v(\" \"+_vm._s(_vm.docDate)+\" \")])]),(_vm.isFileSigned)?_c('li',{class:_vm.$style.item},[_c('span',{class:_vm.$style.subtitle},[_vm._v(\" \"+_vm._s(_vm.t('Date of Signing'))+\" \")]),_c('span',[_vm._v(\" \"+_vm._s(_vm.docStatusDate)+\" \")])]):_vm._e(),(_vm.isRev)?_c('li',{class:_vm.$style.item},[_c('span',{class:_vm.$style.subtitle},[_vm._v(\" \"+_vm._s(_vm.t('Employee'))+\" \")]),_c('span',[_vm._v(\" \"+_vm._s(_vm.employeeName)+\" \")])]):_vm._e(),(_vm.docDescription)?_c('li',{class:_vm.$style.item},[_c('span',{class:_vm.$style.subtitle},[_vm._v(\" \"+_vm._s(_vm.t('Comment'))+\" \")]),_c('span',[_vm._v(\" \"+_vm._s(_vm.docDescription)+\" \")])]):_vm._e()]),_c('VBtn',{class:_vm.$style.sign,attrs:{\"color\":\"primary\",\"block\":\"\",\"disabled\":!_vm.isSignAvailable},on:{\"click\":_vm.handleOpenModalSigning}},[_vm._v(\" \"+_vm._s(_vm.t('Sign'))+\" \")])],1):_vm._e()],1)],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!./ButtonPrint.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!./ButtonPrint.vue?vue&type=script&lang=js&\"","\n\n\n","import { render, staticRenderFns } from \"./ButtonPrint.vue?vue&type=template&id=563e9136&\"\nimport script from \"./ButtonPrint.vue?vue&type=script&lang=js&\"\nexport * from \"./ButtonPrint.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('AppTooltip',{attrs:{\"text\":_vm.tooltipText}},[_c('VBtn',{attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.handleClick()}}},[_c('VIcon',[_vm._v(\" mdi-printer \")])],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!./FileLoader.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!./FileLoader.vue?vue&type=script&lang=js&\"","\n\n\n\n\n\n\n\n","import { render, staticRenderFns } from \"./FileLoader.vue?vue&type=template&id=5267f090&\"\nimport script from \"./FileLoader.vue?vue&type=script&lang=js&\"\nexport * from \"./FileLoader.vue?vue&type=script&lang=js&\"\nimport style0 from \"./FileLoader.vue?vue&type=style&index=0&lang=css&\"\nimport style1 from \"./FileLoader.vue?vue&type=style&index=1&lang=scss&module=true&\"\n\n\n\n\nfunction injectStyles (context) {\n \n this[\"$style\"] = (style1.locals || style1)\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 { useStore } from '@vueblocks/vue-use-vuex';\nimport roleHelpers from '@/common/role/roleHelpers.js'\n\nexport const getDocumentEditableWorkflow = (document = {}, workflowList = []) => {\n const { object_id: objectId = '', status_id: status = '' } = document ?? {}\n\n // исключения для hr\n if (roleHelpers?.getBusinessRole() === 'hr') return true\n\n // если workflowList не указан, то заполним его через функцию\n const workflow = workflowList?.length ? workflowList : getAvailableWorkflow(document)\n\n // если в документе нет object_id, то найдем его\n const objectIdDoc = objectId?.length ? objectId : getObjectId(document)\n\n const workflowItem = workflow?.find((i) => {\n return (\n i?.reject === '0' &&\n i?.object_id === objectIdDoc &&\n i?.status_id === status\n )\n })\n\n return !!Number(workflowItem?.editable) ?? false\n}\n\n// находим кнопки для workflow по документу (item, {role, table, objectID})\nexport const getAvailableWorkflow = (item, payload) => {\n if (!item) return []\n const { state } = useStore()\n\n // если pole не указана, то заполняем\n const nameRole = payload?.role ?? roleHelpers?.getBusinessRole()\n\n // если objectID не указана, то заполняем. (в документе может не быть object_id)\n let objectID = payload?.objectID ?? item?.object_id\n\n // если нету objectID то найдем его\n if (!objectID) {\n objectID = getObjectId(item)\n }\n // если в названии таблице содержится \"_\" то нужно передать table и в getDocumentEditableWorkflow передать getAvailableWorkflow\n let nameTable = payload?.table\n\n // если table не указана, то вычислим из objectID\n if (!nameTable && objectID) {\n nameTable = objectID?.split('_')[0]\n }\n\n const workflowList = state?.workflow?.workflowSectionList?.[nameTable]?.[nameRole]\n\n const workflow = workflowList?.filter((el) =>\n el?.object_id === objectID &&\n el?.status_id === item?.status_id &&\n !Number(el?.detail?.disable_grid_button),\n )\n if (workflow?.length > 1) {\n workflow.sort((a, b) => b?.reject - a?.reject)\n }\n return workflow\n}\n\n// для получения object_id\nexport const getObjectId = (item) => {\n const { state } = useStore()\n const doc = state?.app?.documentTypes\n return doc?.find((el) => el?.id === item?.document_type_id)?.object_id\n}\n\nexport const checkIsDeletedWorkflow = (document) => {\n const { state } = useStore()\n\n if (!document) {\n return false\n }\n\n const { object_id: objectId = '', status_id: status = '' } = document ?? {}\n const { workflow: workflowList = [] } = state?.app ?? {}\n\n const workflow = workflowList?.find((i) => {\n return (\n i?.reject === '0' &&\n i?.object_id === objectId &&\n i?.status_id === status\n )\n })\n\n return workflow?.delete_allowed === '1'\n}\n","import { useStore } from '@vueblocks/vue-use-vuex';\n\nexport default function useNotification () {\n const { commit } = useStore();\n\n const showErrorNotification = (errorText = '') => {\n if (typeof errorText !== 'string') {\n return\n }\n\n const text = errorText?.length ? errorText : 'Error saving document. Close the window and try again or contact technical support.'\n\n commit('MODAL_NOTIFICATION_OPEN', { text })\n }\n\n return {\n showErrorNotification,\n };\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.initialized)?_c('DataGrid',{attrs:{\"title\":\"Statements\",\"grid-model\":_vm.gridModel,\"editable\":_vm.isCanCreate,\"refresh-data\":_vm.refreshData,\"disable-edit-item\":\"\",\"grid-pagination\":_vm.gridPagination},on:{\"onEditItem\":_vm.editItem,\"onDeleteItem\":_vm.deleteItem},scopedSlots:_vm._u([{key:\"header-col1-smAndDown\",fn:function(){return [(!_vm.own)?_c('th',[_vm._v(\" \"+_vm._s(_vm.t('Employee'))+\" / \"+_vm._s(_vm.t('Period'))+\" \")]):_c('th',[_vm._v(\" \"+_vm._s(_vm.t('Type'))+\" / \"+_vm._s(_vm.t('Period'))+\" \")])]},proxy:true},{key:\"item-col1-smAndDown\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',[(!_vm.own)?_c('div',[_vm._v(\" \"+_vm._s(_vm.tt(item, 'employee_name'))+\" \")]):_c('div',[_vm._v(\" \"+_vm._s(_vm.tt(item, 'document_type_name'))+\" \")]),_c('small',[_vm._v(\" \"+_vm._s(_vm.getFormattedDate(item.start_date))+\" - \"+_vm._s(_vm.getFormattedDate(item.end_date))+\" \")])])]}},{key:\"item-action\",fn:function(ref){\nvar item = ref.item;\nvar editItem = ref.editItem;\nvar deleteItem = ref.deleteItem;\nreturn [_c('BtnActionGrid',[[_c('UiBtn',{attrs:{\"size\":\"small\",\"variant\":\"tonal\"},nativeOn:{\"click\":function($event){return editItem(item)}}},[_vm._v(\" \"+_vm._s(_vm.own && _vm.getDocumentEditableWorkflow(item) ? _vm.t('Edit') : _vm.t('View'))+\" \")]),(_vm.getDocumentEditableWorkflow(item))?_c('UiBtn',{attrs:{\"size\":\"small\",\"variant\":\"tonal\"},nativeOn:{\"click\":function($event){return deleteItem(item)}}},[_vm._v(\" \"+_vm._s(_vm.t('Delete'))+\" \")]):_vm._e(),_c('WorkflowActions',{attrs:{\"object-id\":item.object_id || _vm.sectionName,\"document\":item,\"available-workflow\":_vm.getAvailableWorkflow(item)},on:{\"input\":function($event){return _vm.changeWorkflow(item, $event)}}})]],2)]}}],null,false,1940638050)}):_vm._e()}\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!./StatementMain.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!./StatementMain.vue?vue&type=script&lang=js&\"","\n\n\n","import { render, staticRenderFns } from \"./StatementMain.vue?vue&type=template&id=423bc073&\"\nimport script from \"./StatementMain.vue?vue&type=script&lang=js&\"\nexport * from \"./StatementMain.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 * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FileLoader.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\nmodule.exports = {\"Content\":\"TableLabel__Content__1WX7A\",\"IconSort\":\"TableLabel__IconSort__2vAtR\"};","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{class:_vm.$style.Toolbar},[(_vm.isStepBack)?_c('StepBack',{attrs:{\"pre-title\":_vm.pagePreTitle,\"title\":_vm.pageTitle,\"icon\":_vm.sectionIcon}}):_vm._e(),_c('VSpacer'),_c('div',{class:_vm.$style.BtnBort},[_vm._t(\"header-btn\"),(_vm.editable && !_vm.disableCreateItem && _vm.$vuetify.breakpoint.mdAndUp)?_c('AppTooltip',{attrs:{\"text\":\"Add a new request\"}},[_c('VBtn',{attrs:{\"icon\":\"\",\"large\":\"\",\"variant\":\"text\",\"color\":\"primary\",\"data-test\":\"add-document\"},on:{\"click\":function($event){return _vm.editItem()}}},[_c('VIcon',[_vm._v(\" mdi-note-plus \")])],1)],1):_vm._e(),_vm._l((_vm.toolbarModel),function(toolbarItem){return _c('div',{key:toolbarItem.name},[(!toolbarItem.hidden)?_c('div',[(toolbarItem.type === 'button')?_c('AppTooltip',{attrs:{\"text\":toolbarItem.label}},[_c('VBtn',{class:toolbarItem.class,attrs:{\"icon\":\"\",\"large\":\"\",\"variant\":\"text\",\"color\":\"primary\"},on:{\"click\":toolbarItem.click}},[_c('VIcon',[_vm._v(\" \"+_vm._s(toolbarItem.icon)+\" \")])],1)],1):_vm._e()],1):_vm._e()])}),_c('AppTooltip',{attrs:{\"text\":\"Export to Excel\"}},[_c('VBtn',{attrs:{\"icon\":\"\",\"large\":\"\",\"variant\":\"text\",\"color\":\"primary\"},on:{\"click\":_vm.exportToCSV}},[_c('VIcon',[_vm._v(\" mdi-microsoft-excel \")])],1)],1),(_vm.visibilityModel && _vm.visibilityModel.length > 0 && _vm.$vuetify.breakpoint.mdAndUp)?_c('UiMenu',{attrs:{\"is-not-close\":\"\",\"min-width\":\"150\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar props = ref.props;\nreturn [_c('AppTooltip',{attrs:{\"text\":\"Visibility options\"}},[_c('VBtn',_vm._b({attrs:{\"icon\":\"\",\"large\":\"\"}},'VBtn',props,false),[_c('VIcon',[_vm._v(\" mdi-tune \")])],1)],1)]}}],null,false,4103355721),model:{value:(_vm.visibilityOpened),callback:function ($$v) {_vm.visibilityOpened=$$v},expression:\"visibilityOpened\"}},[_c('div',{class:_vm.$style.Card},[_c('span',{class:_vm.$style.Subtitle},[_vm._v(\" \"+_vm._s(_vm.$t('Visibility'))+\" \")]),_c('DragAndDrop',{attrs:{\"list\":_vm.visibilityModel},on:{\"end\":_vm.visibilityDraggingEnd},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar item = ref.item;\nreturn [(item.name !== 'indicators')?_c('UiBtn',{class:_vm.$style.BtnList,attrs:{\"variant\":\"tonal\",\"size\":\"small\",\"icon\":\"mdi-drag-horizontal\",\"color\":item.active ? 'primary' : 'darkgrey'},nativeOn:{\"click\":function($event){return _vm.visibilityItemClick(item)}}},[_vm._v(\" \"+_vm._s(_vm.$t(item.label))+\" \")]):_vm._e()]}}],null,false,4199443394)}),_c('div',{class:_vm.$style.ActiveCard},[_c('UiBtn',{attrs:{\"color\":\"accent\",\"variant\":\"tonal\",\"size\":\"small\"},nativeOn:{\"click\":function($event){_vm.visibilityOpened = false}}},[_vm._v(\" \"+_vm._s(_vm.$t('Ok'))+\" \")])],1)],1)]):_vm._e(),(_vm.sortModel && _vm.sortModel.length > 0 && _vm.$vuetify.breakpoint.mdAndUp)?_c('UiMenu',{attrs:{\"is-not-close\":\"\",\"min-width\":\"150\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar props = ref.props;\nreturn [_c('AppTooltip',{attrs:{\"text\":\"Sort by\"}},[_c('VBtn',_vm._b({attrs:{\"icon\":\"\",\"large\":\"\"}},'VBtn',props,false),[_c('v-icon',[_vm._v(\" mdi-sort-alphabetical-variant \")])],1)],1)]}}],null,false,926051892),model:{value:(_vm.sortOpened),callback:function ($$v) {_vm.sortOpened=$$v},expression:\"sortOpened\"}},[_c('div',{class:_vm.$style.Card},[_c('span',{class:_vm.$style.Subtitle},[_vm._v(\" \"+_vm._s(_vm.$t('Sort'))+\" \")]),_c('DragAndDrop',{attrs:{\"list\":_vm.sortModel},on:{\"end\":_vm.sortDraggingEnd},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('UiBtn',{class:_vm.$style.BtnList,attrs:{\"variant\":\"tonal\",\"size\":\"small\",\"icon\":\"mdi-drag-horizontal\",\"color\":item.active ? 'primary' : 'darkgrey'},nativeOn:{\"click\":function($event){return _vm.sortItemClick(item)}}},[_c('VIcon',{attrs:{\"color\":item.active ? 'primary' : 'grey lighten-1'}},[_vm._v(\" \"+_vm._s(item.active ? (item.desc ? 'mdi-menu-up' : 'mdi-menu-down') : 'mdi-menu-swap')+\" \")]),_vm._v(\" \"+_vm._s(_vm.$t(item.label))+\" \")],1)]}}],null,false,1648152434)}),_c('div',{class:_vm.$style.ActiveCard},[_c('UiBtn',{attrs:{\"color\":\"accent\",\"variant\":\"tonal\",\"size\":\"small\"},nativeOn:{\"click\":function($event){_vm.sortOpened = false}}},[_vm._v(\" \"+_vm._s(_vm.$t('Ok'))+\" \")])],1)],1)]):_vm._e(),(_vm.$vuetify.breakpoint.mdAndUp)?_c('UiMenu',{attrs:{\"is-not-close\":\"\",\"width\":\"290px\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar props = ref.props;\nreturn [_c('AppTooltip',{attrs:{\"text\":\"Search\"}},[_c('VBtn',_vm._b({attrs:{\"icon\":\"\",\"large\":\"\"}},'VBtn',props,false),[_c('VIcon',{attrs:{\"color\":_vm.search > '' ? 'primary' : ''}},[_vm._v(\" mdi-magnify \")])],1)],1)]}}],null,false,3881112640)},[_c('div',{class:_vm.$style.Card},[_c('VTextField',{attrs:{\"append-icon\":\"mdi-check\",\"label\":_vm.$t('Search'),\"outlined\":\"\",\"variant\":\"outlined\",\"hide-details\":\"\",\"clearable\":\"\"},on:{\"click:append\":_vm.applySearch,\"click:clear\":function($event){_vm.search = null; _vm.applySearch()}},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1)]):_vm._e(),_c('AppTooltip',{attrs:{\"text\":\"Reload the data\"}},[_c('VBtn',{attrs:{\"icon\":\"\",\"large\":\"\"},on:{\"click\":function($event){return _vm.beforeRefresh({clearCache: true})}}},[_c('VIcon',[_vm._v(\" mdi-refresh \")])],1)],1)],2)],1),(!_vm.gridModelUpdated)?_c('UiLoader',{class:_vm.$style.TableLoader}):_vm._e(),(_vm.gridModelUpdated)?_c('VDataTable',{class:[_vm.isWebpack ? [_vm.$style.FooterCompactVue2] : [_vm.$style.FooterCompact]],attrs:{\"items\":_vm.items,\"headers\":_vm.gridHeaderList,\"search-input\":_vm.search,\"item-key\":_vm.rowKey,\"hide-default-header\":_vm.isWebpack ? true : false,\"focusable\":\"\",\"hover\":\"\",\"multi-sort\":\"\",\"mobile-breakpoint\":\"0\",\"items-per-page\":_vm.itemsPerPage,\"sort-by\":_vm.sortModelList,\"sort-desc\":Array.from(_vm.sortModel, function (i) { return i.active ? i.desc : null; }),\"footer-props\":{ itemsPerPageOptions: [10, 25, 50, 100, -1] }},scopedSlots:_vm._u([{key:\"top\",fn:function(){return [(_vm.gridModel.filter(function (i) { return i.search === true; } ).length > 0)?_c('div',{class:_vm.$style.Top},[_c('UiMenu',{attrs:{\"is-not-close-outside\":\"\",\"is-not-close\":\"\",\"location\":\"right\",\"width\":\"290px\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar props = ref.props;\nreturn [_c('UiBtn',_vm._b({attrs:{\"is-round\":\"\",\"is-icon\":\"\",\"color\":_vm.filterDefined ? 'eg-color' : 'eg-secondary',\"icon\":\"mdi-filter-outline\",\"size\":\"large\"},nativeOn:{\"click\":function($event){return _vm.handleFilter()}}},'UiBtn',props,false))]}}],null,false,1450550638),model:{value:(_vm.filterOpened),callback:function ($$v) {_vm.filterOpened=$$v},expression:\"filterOpened\"}},[_c('div',{class:_vm.$style.Card},[_c('span',{class:_vm.$style.Subtitle},[_vm._v(\" \"+_vm._s(_vm.$t('Filter'))+\" \")]),_vm._l((_vm.filterList),function(headerItem){return _c('div',{key:headerItem.name},[(headerItem.edittype === 'name')?_c('VAutocomplete',{key:headerItem.name,attrs:{\"items\":headerItem.editoptions.items,\"item-value\":headerItem.editoptions.item_value,\"item-text\":_vm.defineEng(headerItem.editoptions.item_text),\"item-title\":_vm.defineEng(headerItem.editoptions.item_text),\"label\":_vm.$t(headerItem.label),\"item-disabled\":\"false\",\"item-props.disabled\":\"\",\"multiple\":!headerItem.searchoptions || headerItem.searchoptions.multiple,\"chips\":!headerItem.searchoptions || headerItem.searchoptions.multiple,\"clearable\":\"\",\"hide-details\":\"\",\"outlined\":\"\",\"variant\":\"outlined\"},scopedSlots:_vm._u([(headerItem.searchoptions && headerItem.searchoptions.multiple)?{key:\"selection\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('VChip',{attrs:{\"label\":\"\",\"outlined\":\"\",\"color\":\"primary\"}},[_c('span',{class:_vm.$style.TextOverflow},[_vm._v(\" \"+_vm._s(_vm.tt(item, headerItem.editoptions.item_text))+\" \")])])]}}:null],null,true),model:{value:(headerItem.filters),callback:function ($$v) {_vm.$set(headerItem, \"filters\", $$v)},expression:\"headerItem.filters\"}}):_vm._e(),(headerItem.edittype === 'select')?_c('VSelect',{key:headerItem.name,class:_vm.$style.Select,attrs:{\"items\":headerItem.editoptions.items,\"item-value\":headerItem.editoptions.item_value,\"item-text\":_vm.defineEng(headerItem.editoptions.item_text),\"item-title\":_vm.defineEng(headerItem.editoptions.item_text),\"label\":_vm.$t(headerItem.label),\"multiple\":!headerItem.searchoptions || headerItem.searchoptions.multiple,\"chips\":!headerItem.searchoptions || headerItem.searchoptions.multiple,\"item-disabled\":\"false\",\"item-props.disabled\":\"false\",\"clearable\":\"\",\"hide-details\":\"\",\"outlined\":\"\",\"variant\":\"outlined\"},scopedSlots:_vm._u([(headerItem.searchoptions && headerItem.searchoptions.multiple)?{key:_vm.slotChip,fn:function(ref){\nvar item = ref.item;\nreturn [_c('VChip',{attrs:{\"label\":\"\",\"outlined\":\"\",\"variant\":\"outlined\",\"color\":\"primary\"}},[_c('span',{class:_vm.$style.TextOverflow},[_vm._v(\" \"+_vm._s(_vm.isWebpack ? item[_vm.defineEng(headerItem.editoptions.item_text)] : _vm.tt(item.raw, 'name'))+\" \")])])]}}:null],null,true),model:{value:(headerItem.filters),callback:function ($$v) {_vm.$set(headerItem, \"filters\", $$v)},expression:\"headerItem.filters\"}}):_vm._e(),(headerItem.edittype === 'autocomplete')?_c('VAutocomplete',{key:headerItem.name,attrs:{\"items\":headerItem.editoptions.items,\"item-value\":headerItem.editoptions.item_value,\"item-text\":_vm.defineEng(headerItem.editoptions.item_text),\"item-title\":_vm.defineEng(headerItem.editoptions.item_text),\"label\":_vm.$t(headerItem.label),\"multiple\":!headerItem.searchoptions || headerItem.searchoptions.multiple,\"chips\":!headerItem.searchoptions || headerItem.searchoptions.multiple,\"item-disabled\":\"false\",\"item-props.disabled\":\"\",\"clearable\":\"\",\"hide-details\":\"\",\"outlined\":\"\",\"variant\":\"outlined\"},scopedSlots:_vm._u([(headerItem.searchoptions && headerItem.searchoptions.multiple)?{key:_vm.slotChip,fn:function(ref){\nvar item = ref.item;\nreturn [_c('VChip',{attrs:{\"label\":\"\",\"outlined\":\"\",\"variant\":\"outlined\",\"color\":\"primary\"}},[_c('span',{class:_vm.$style.TextOverflow},[_vm._v(\" \"+_vm._s(_vm.isWebpack ? item[_vm.defineEng(headerItem.editoptions.item_text)] : _vm.tt(item.raw, 'name'))+\" \")])])]}}:null],null,true),model:{value:(headerItem.filters),callback:function ($$v) {_vm.$set(headerItem, \"filters\", $$v)},expression:\"headerItem.filters\"}}):_vm._e(),(headerItem.edittype === 'checkbox' && !(headerItem.searchoptions && headerItem.searchoptions.items))?_c('VCheckbox',{key:headerItem.name,class:_vm.$style.CheckBox,attrs:{\"hide-details\":\"\",\"density\":\"compact\",\"color\":\"primary\",\"label\":_vm.$t(headerItem.label),\"disabled\":headerItem.disabledItem},model:{value:(headerItem.filters),callback:function ($$v) {_vm.$set(headerItem, \"filters\", $$v)},expression:\"headerItem.filters\"}}):_vm._e(),(headerItem.format === 'date' || (headerItem.edittype === 'checkbox' && headerItem.searchoptions && headerItem.searchoptions.items))?_c('VSelect',{key:headerItem.name,attrs:{\"item-disabled\":\"false\",\"item-props.disabled\":\"\",\"hide-details\":\"\",\"items\":headerItem.searchoptions.items,\"item-value\":headerItem.searchoptions.item_value,\"item-title\":_vm.defineEng(headerItem.searchoptions.item_text),\"item-text\":_vm.defineEng(headerItem.searchoptions.item_text),\"label\":_vm.$t(headerItem.label),\"multiple\":!headerItem.searchoptions || headerItem.searchoptions.multiple,\"chips\":!headerItem.searchoptions || headerItem.searchoptions.multiple,\"clearable\":\"\",\"outlined\":\"\",\"variant\":\"outlined\"},on:{\"change\":function($event){return _vm.handleDate(headerItem)}},scopedSlots:_vm._u([(headerItem.searchoptions && headerItem.searchoptions.multiple)?{key:_vm.slotChip,fn:function(ref){\nvar item = ref.item;\nreturn [_c('VChip',{attrs:{\"label\":\"\",\"variant\":\"outlined\",\"outlined\":\"\",\"color\":\"primary\"}},[_c('span',[_vm._v(_vm._s(item.name))])])]}}:null],null,true),model:{value:(headerItem.filters),callback:function ($$v) {_vm.$set(headerItem, \"filters\", $$v)},expression:\"headerItem.filters\"}}):_vm._e()],1)}),_c('div',{class:_vm.$style.ActiveCard},[_c('VBtn',{attrs:{\"color\":\"error\",\"variant\":\"text\",\"text\":\"\"},on:{\"click\":function($event){_vm.filterOpened = false}}},[_vm._v(\" \"+_vm._s(_vm.$t('Cancel'))+\" \")]),_c('VBtn',{attrs:{\"color\":\"accent\",\"variant\":\"text\",\"text\":\"\"},on:{\"click\":function($event){_vm.handleApplyFilter(_vm.filterList); _vm.applySearch();}}},[_vm._v(\" \"+_vm._s(_vm.$t('Apply'))+\" \")])],1)],2)]),_vm._l((_vm.gridModel.filter(function (i) { return (i.filters && !i.disabledChips && (i.searchoptions.multiple === false || i.filters.length > 0)); })),function(headerItem){return _c('div',{key:headerItem.name},_vm._l(((headerItem.searchoptions.multiple ? headerItem.filters : [headerItem.filters])),function(label,index){return _c('VChip',{key:label + index,staticClass:\"ma-1\",attrs:{\"label\":\"\",\"variant\":\"outlined\",\"outlined\":\"\",\"close\":\"\",\"closable\":\"\",\"disabled\":_vm.gridPagination,\"color\":\"primary\"},on:{\"click:close\":function($event){headerItem.filters = (headerItem.searchoptions.multiple ? headerItem.filters.filter(function (i){ return i !== label; }) : null); _vm.applySearch(); _vm.handleDate();}}},[(headerItem.edittype === 'name')?_c('div',[_vm._v(\" \"+_vm._s(_vm.formatName(headerItem))+\" \")]):_c('div',[_vm._v(\" \"+_vm._s((headerItem.edittype === 'checkbox' && label === true) ? _vm.$t(headerItem.label) : headerItem.formatStr(label))+\" \")])])}),1)})],2):_vm._e()]},proxy:true},{key:_vm.slotHeaders,fn:function(ref){\nvar props = ref.props;\nreturn [(_vm.$vuetify.breakpoint.mdAndUp)?_vm._t(\"header-mdAndUp\",function(){return [(_vm.clearItems.length > 0)?_c('tr',[_vm._l((_vm.gridHeaderList),function(headerItem){return _c('th',{key:headerItem.name,class:_vm.$style.Headers,on:{\"click\":function($event){_vm.sortItemClick(_vm.sortModel.find(function (i) { return i.name === headerItem.name; }))}}},[_c('TableLabel',{attrs:{\"item\":Object.assign({}, headerItem)}})],1)}),(!_vm.isDisableActions)?_c('th',{class:_vm.$style.Headers__actions},[_vm._v(\" \"+_vm._s(_vm.$t(\"Actions\"))+\" \")]):_vm._e()],2):_vm._e()]},null,{ props: props }):_vm._e(),(_vm.$vuetify.breakpoint.smAndDown)?_vm._t(\"header-smAndDown\",function(){return [_c('tr',[_c('th',{class:_vm.$style.Headers},[_vm._t(\"header-col1-smAndDown\",function(){return [_vm._v(\" \"+_vm._s(_vm.$t(\"Employee\"))+\" / \"+_vm._s(_vm.$t('Type'))+\" \")]})],2),_c('th',{class:_vm.$style.Headers__status},[_vm._t(\"header-col2-smAndDown\",function(){return [_vm._v(\" \"+_vm._s(_vm.$t(\"Status\"))+\" \")]})],2),(!_vm.isDisableActions)?_c('th',{class:_vm.$style.Headers__actions},[_c('samp')]):_vm._e()])]},null,{ props: props }):_vm._e()]}},{key:\"item\",fn:function(ref){\nvar item = ref.item;\nreturn [(_vm.$vuetify.breakpoint.mdAndUp)?_vm._t(\"item-mdAndUp\",function(){return [_c('tr',{on:{\"dblclick\":function($event){return _vm.editItem(item)}}},[_vm._l((_vm.gridHeaderList.filter(function (i) { return i.edittype !== 'indicators'; })),function(headerItem){return _c('td',{key:headerItem.name},[_vm._t('item-' + headerItem.name,function(){return [(headerItem.edittype === 'checkbox')?_c('VCheckbox',{staticClass:\"mt-0 pt-0\",attrs:{\"true-value\":\"1\",\"false-value\":\"0\",\"disabled\":\"\",\"dense\":\"\",\"hide-details\":\"\"},model:{value:(item[headerItem.name]),callback:function ($$v) {_vm.$set(item, headerItem.name, $$v)},expression:\"item[headerItem.name]\"}}):[_c('div',{staticClass:\"d-flex\"},[(headerItem.prependIcon && headerItem.prependIcon(item))?_c('VBtn',{attrs:{\"icon\":\"\",\"x-small\":\"\",\"size\":\"x-small\"},on:{\"click\":function($event){headerItem.prependClick ? headerItem.prependClick(item) : null}}},[_c('VIcon',[_vm._v(\" \"+_vm._s(headerItem.prependIcon(item))+\" \")])],1):_vm._e(),_c('div',{class:[headerItem.classModule ? [_vm.$style[headerItem.classModule]] : headerItem.class],on:{\"click\":function($event){headerItem.click ? headerItem.click(item) : null}}},[_vm._v(\" \"+_vm._s(headerItem.formatStr(_vm.tt(item, headerItem.name)))+\" \")]),(headerItem.appendIcon && headerItem.appendIcon(item))?_c('VBtn',{attrs:{\"icon\":\"\",\"x-small\":\"\",\"size\":\"x-small\"},on:{\"click\":function($event){headerItem.appendClick ? headerItem.appendClick(item) : null}}},[_c('VIcon',[_vm._v(\" \"+_vm._s(headerItem.appendIcon(item))+\" \")])],1):_vm._e()],1)]]},null,{ item: item, items: _vm.items })],2)}),_vm._t(\"item-indicators\",function(){return _vm._l((_vm.gridHeaderList.filter(function (i) { return i.edittype === 'indicators'; })),function(headerItem){return _c('td',{key:headerItem.name},[(item.indicators)?_c('div',{staticClass:\"d-inline text-no-wrap\"},_vm._l((item.indicators.split(/;|,/)),function(indicatorColor,index){return _c('VIcon',{key:index,attrs:{\"color\":headerItem.prependIconColor(item)[index]}},[_vm._v(\" \"+_vm._s(headerItem.prependIcon(item)[index])+\" \")])}),1):_vm._e()])})},null,{ item: item }),(!_vm.isDisableActions)?_vm._t(\"item-action\",function(){return [_c('td',{staticClass:\"text-center\"},[_c('div',{staticClass:\"d-inline text-no-wrap\"},[_c('VIcon',{staticClass:\"mr-2\",attrs:{\"small\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.editItem(item)}}},[_vm._v(\" \"+_vm._s(_vm.editable && !_vm.disableEditItem ? 'mdi-pencil' : 'mdi-eye-settings')+\" \")]),(_vm.editable && !_vm.disableDeleteItem)?_c('VIcon',{attrs:{\"small\":\"\",\"color\":\"primary\",\"disabled\":!_vm.disableWorkflow && item.status_id !== 'draft'},on:{\"click\":function($event){return _vm.deleteItem(item)}}},[_vm._v(\" mdi-delete \")]):_vm._e()],1)])]},null,{ item: item, editItem: _vm.editItem, deleteItem: _vm.deleteItem }):_vm._e()],2)]},null,{ item: item, gridHeaderList: _vm.gridHeaderList }):_vm._e(),(_vm.$vuetify.breakpoint.smAndDown)?_vm._t(\"item-smAndDown\",function(){return [_c('tr',{on:{\"dblclick\":function($event){return _vm.editItem(item)}}},[_c('td',[_vm._t(\"item-col1-smAndDown\",function(){return [_vm._v(\" \"+_vm._s(_vm.tt(item, 'employee_name'))+\" \"),_c('span',[_vm._v(\" \"+_vm._s(_vm.tt(item, 'document_type_name')))])]},null,{ item: item, gridHeaderList: _vm.gridHeaderList })],2),(item.status_id)?_c('td',{staticClass:\"px-1\"},[_vm._t(\"item-col2-smAndDown\",function(){return [_c('div',[_vm._v(\" \"+_vm._s(_vm.gridModel.find(function (p) { return p.name === 'status_id'; }).formatStr(item.status_id))+\" \")]),(item.indicators)?_c('div',{staticClass:\"d-inline text-no-wrap\"},_vm._l((item.indicators.split(/;|,/)),function(indicatorColor,index){return _c('VIcon',{key:index,attrs:{\"small\":\"\",\"color\":_vm.gridHeaderList.find(function (p) { return p.name === 'indicators'; }).prependIconColor(item)[index]}},[_vm._v(\" \"+_vm._s(_vm.gridHeaderList.find(function (p) { return p.name === 'indicators'; }).prependIcon(item)[index])+\" \")])}),1):_vm._e()]},null,{ item: item, gridHeaderList: _vm.gridHeaderList })],2):_c('td',[_c('span')]),(!_vm.isDisableActions)?_vm._t(\"item-action\",null,null,{ item: item, editItem: _vm.editItem, deleteItem: _vm.deleteItem }):_vm._e()],2)]}):_vm._e()]}},(_vm.gridPagination)?{key:\"no-data\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.$t('Set filter by employee or manager'))+\" \")]},proxy:true}:null],null,true)}):_vm._e(),(_vm.editable && _vm.$vuetify.breakpoint.smAndDown)?_c('UiBtn',{class:_vm.$style.BtnPlus,attrs:{\"is-round\":\"\",\"is-icon\":\"\",\"size\":\"x_large\",\"variant\":\"flat\",\"icon\":\"mdi-plus\",\"color\":\"secondary\",\"data-test\":\"add-document-mobile\"},nativeOn:{\"click\":function($event){return _vm.editItem()}}}):_vm._e(),(!_vm.disableEditItem)?_c('VDialog',{attrs:{\"max-width\":_vm.$vuetify.breakpoint.mdAndUp ? '800' : '400',\"scrollable\":\"\"},model:{value:(_vm.dialogEdit),callback:function ($$v) {_vm.dialogEdit=$$v},expression:\"dialogEdit\"}},[_vm._t(\"editDialog\",function(){return [_c('VCard',{staticClass:\"pa-2\"},[_c('VCardTitle',{staticClass:\"d-flex\"},[_c('span',{staticClass:\"pl-4\"},[_vm._v(\" \"+_vm._s(_vm.itemTitle)+\" \")]),_c('VSpacer'),_c('VBtn',{attrs:{\"icon\":\"\"},on:{\"click\":_vm.dialogClose}},[_c('VIcon',[_vm._v(\" mdi-close \")])],1)],1),_c('VCardText',{staticStyle:{\"height\":\"400px\"}},[_c('VContainer',[_c('VRow',_vm._l((_vm.gridModel.filter(function (i) { return !i.hidedlg; })),function(headerItem,indexItem){return _c('div',{key:indexItem,style:(_vm.$vuetify.breakpoint.mdAndUp ? 'width: 50%;' : 'width:100%;')},[_c('VCol',{staticClass:\"py-1\"},[(headerItem.edittype === 'name')?_c('VAutocomplete',{attrs:{\"items\":headerItem.editoptions.items,\"item-value\":headerItem.editoptions.item_value,\"item-text\":_vm.defineEng(headerItem.editoptions.item_text),\"item-title\":_vm.defineEng(headerItem.editoptions.item_text),\"label\":_vm.$t(headerItem.label),\"hide-details\":\"\",\"clearable\":\"\",\"readonly\":!headerItem.editable,\"multiple\":!headerItem.searchoptions || headerItem.searchoptions.multiple,\"chips\":!headerItem.searchoptions || headerItem.searchoptions.multiple},model:{value:(_vm.editedItem[headerItem.name]),callback:function ($$v) {_vm.$set(_vm.editedItem, headerItem.name, $$v)},expression:\"editedItem[headerItem.name]\"}}):(headerItem.edittype === 'select')?_c('VSelect',{attrs:{\"items\":headerItem.editoptions.items,\"item-value\":headerItem.editoptions.item_value,\"item-text\":_vm.defineEng(headerItem.editoptions.item_text),\"item-title\":_vm.defineEng(headerItem.editoptions.item_text),\"label\":_vm.$t(headerItem.label),\"hide-details\":\"\",\"clearable\":\"\",\"readonly\":!headerItem.editable},model:{value:(_vm.editedItem[headerItem.name]),callback:function ($$v) {_vm.$set(_vm.editedItem, headerItem.name, $$v)},expression:\"editedItem[headerItem.name]\"}}):(headerItem.edittype === 'autocomplete')?_c('VAutocomplete',{attrs:{\"items\":headerItem.editoptions.items,\"item-value\":headerItem.editoptions.item_value,\"item-text\":_vm.defineEng(headerItem.editoptions.item_text),\"item-title\":_vm.defineEng(headerItem.editoptions.item_text),\"label\":_vm.$t(headerItem.label),\"hide-details\":\"\",\"clearable\":\"\",\"readonly\":!headerItem.editable},model:{value:(_vm.editedItem[headerItem.name]),callback:function ($$v) {_vm.$set(_vm.editedItem, headerItem.name, $$v)},expression:\"editedItem[headerItem.name]\"}}):(headerItem.edittype === 'checkbox')?_c('VCheckbox',{attrs:{\"true-value\":\"1\",\"false-value\":\"0\",\"hide-details\":\"\",\"density\":\"compact\",\"color\":\"primary\",\"label\":_vm.$t(headerItem.label),\"readonly\":!headerItem.editable},model:{value:(_vm.editedItem[headerItem.name]),callback:function ($$v) {_vm.$set(_vm.editedItem, headerItem.name, $$v)},expression:\"editedItem[headerItem.name]\"}}):_c('VTextField',{attrs:{\"label\":_vm.$t(headerItem.label),\"mask\":headerItem.mask,\"hide-details\":\"auto\",\"readonly\":!headerItem.editable,\"rules\":_vm.numericRules(headerItem)},model:{value:(_vm.editedItem[headerItem.name]),callback:function ($$v) {_vm.$set(_vm.editedItem, headerItem.name, (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"editedItem[headerItem.name]\"}})],1)],1)}),0)],1),(_vm.isDuplicateError)?_c('VAlert',{attrs:{\"border\":\"left\",\"colored-border\":\"\",\"type\":\"error\",\"elevation\":\"2\"}},[_vm._v(\" \"+_vm._s(_vm.$t('This entry already exists'))+\" \")]):_vm._e()],1),_c('VCardActions',{class:_vm.$style.CardActions},[(!_vm.disableWorkflow)?_vm._l((_vm.availableWorkflow(_vm.editedItem.status_id)),function(workflowItem){return _c('UiBtn',{key:workflowItem.id,attrs:{\"color\":workflowItem.reject ==='1' ? 'secondary' : 'primary',\"variant\":\"flat\"},nativeOn:{\"click\":function($event){return _vm.process(workflowItem)}}},[(workflowItem.reject ==='1')?_c('VIcon',{attrs:{\"small\":\"\",\"size\":\"small\"}},[_vm._v(\" mdi-reply \")]):_vm._e(),_vm._v(\" \"+_vm._s(_vm.tt(workflowItem, 'name'))+\" \"),(workflowItem.reject ==='0')?_c('VIcon',{attrs:{\"small\":\"\",\"size\":\"small\"}},[_vm._v(\" mdi-share \")]):_vm._e()],1)}):_vm._e(),_c('UiBtn',{attrs:{\"color\":\"secondary\"},nativeOn:{\"click\":function($event){return _vm.dialogClose.apply(null, arguments)}}},[_vm._v(\" \"+_vm._s(_vm.$t('Cancel'))+\" \")]),_c('UiBtn',{attrs:{\"color\":\"primary\",\"disabled\":!_vm.editable},nativeOn:{\"click\":function($event){return _vm.saveItem.apply(null, arguments)}}},[_vm._v(\" \"+_vm._s(_vm.$t('Save'))+\" \")])],2)],1)]},null,{ editedItem: _vm.editedItem, actionClose: _vm.dialogClose, actionSave: _vm.saveItem })],2):_vm._e(),_c('VDialog',{attrs:{\"max-width\":\"330\"},model:{value:(_vm.dialogConfirm),callback:function ($$v) {_vm.dialogConfirm=$$v},expression:\"dialogConfirm\"}},[_c('VCard',[_c('VCardText',{staticClass:\"pt-4\"},[_vm._v(\" \"+_vm._s(_vm.$t('Please confirm the action'))+\" \")]),_c('VCardActions',[_c('VSpacer'),_c('UiBtn',{attrs:{\"color\":\"secondary\"},nativeOn:{\"click\":function($event){_vm.dialogConfirmOK = false; _vm.dialogConfirm = false;}}},[_vm._v(\" \"+_vm._s(_vm.$t('Cancel'))+\" \")]),_c('UiBtn',{attrs:{\"color\":\"primary\"},nativeOn:{\"click\":function($event){_vm.dialogConfirmOK = true; _vm.dialogConfirm = false}}},[_vm._v(\" \"+_vm._s(_vm.$t('Submit'))+\" \")])],1)],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!./TableLabel.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!./TableLabel.vue?vue&type=script&lang=js&\"","\n\n\n\n\n","import { render, staticRenderFns } from \"./TableLabel.vue?vue&type=template&id=0c2b7afd&\"\nimport script from \"./TableLabel.vue?vue&type=script&lang=js&\"\nexport * from \"./TableLabel.vue?vue&type=script&lang=js&\"\nimport style0 from \"./TableLabel.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',{class:_vm.$style.Content},[_c('span',[_vm._v(\" \"+_vm._s(_vm.$t(_vm.item.label))+\" \")]),(_vm.item.sortable)?_c('VIcon',{class:_vm.$style.IconSort,attrs:{\"color\":_vm.iconColor}},[_vm._v(\" \"+_vm._s(_vm.item.active ? (_vm.iconDesc) : 'mdi-menu-swap')+\" \")]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n \n \n {{ isWebpack ? item[defineEng(headerItem.editoptions.item_text)] : tt(item.raw, 'name') }}\n \n \n \n \n \n \n \n \n {{ item.name }}\n \n \n \n \n

\n \n {{ $t('Cancel') }}\n \n \n {{ $t('Apply') }}\n \n
\n \n \n\n \n (i.filters && !i.disabledChips && (i.searchoptions.multiple === false || i.filters.length > 0)))\"\n :key=\"headerItem.name\"\n >\n i !== label) : null); applySearch(); handleDate();\"\n >\n
\n {{ formatName(headerItem) }}\n
\n
\n {{ (headerItem.edittype === 'checkbox' && label === true) ? $t(headerItem.label) : headerItem.formatStr(label) }}\n
\n \n \n \n \n\n \n \n\n \n \n\n \n {{ $t('Set filter by employee or manager') }}\n \n \n \n \n \n \n \n \n \n {{ itemTitle }}\n \n \n \n \n mdi-close\n \n \n \n \n \n \n !i.hidedlg)\"\n :key=\"indexItem\"\n :style=\"$vuetify.breakpoint.mdAndUp ? 'width: 50%;' : 'width:100%;'\"\n >\n \n \n \n \n \n \n \n \n \n \n \n {{ $t('This entry already exists') }}\n \n \n \n \n \n {{ $t('Cancel') }}\n \n \n {{ $t('Save') }}\n \n \n \n \n \n\n \n \n \n \n {{ $t('Please confirm the action') }}\n \n \n \n \n {{ $t('Cancel') }}\n \n \n {{ $t('Submit') }}\n \n \n \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!./DataGrid.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!./DataGrid.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DataGrid.vue?vue&type=template&id=05e4e5cc&\"\nimport script from \"./DataGrid.vue?vue&type=script&lang=js&\"\nexport * from \"./DataGrid.vue?vue&type=script&lang=js&\"\nimport style0 from \"./DataGrid.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!./FileLoader.vue?vue&type=style&index=1&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!./FileLoader.vue?vue&type=style&index=1&lang=scss&module=true&\"","import { computed } from '@vue/composition-api';\nimport { useStore } from '@vueblocks/vue-use-vuex';\nimport signHelpers from '@/common/sign/signHelpers';\n\nexport default function useDocumentSign (document) {\n const { commit } = useStore();\n\n const isSignAvailable = computed(() =>\n signHelpers.checkSignAvailable(document),\n );\n\n const isFileSigned = computed(() =>\n document?.files?.[0]?.file_name?.includes('_visual'),\n );\n\n const checkFileSigned = (document) => {\n return document?.files?.[0]?.file_name?.includes('_visual');\n };\n\n const checkSignAvailable = (document) => {\n return signHelpers.checkSignAvailable(document)\n };\n\n const handleOpenModalSigning = (document) => {\n commit('openModalSigning', {\n document,\n method: 'add',\n });\n };\n\n return {\n isSignAvailable,\n isFileSigned,\n handleOpenModalSigning,\n checkSignAvailable,\n checkFileSigned,\n };\n}\n"],"sourceRoot":""}