meraproject/content/merakomis/js/react/1762006373520/756.app.js
keboss-m 5c21d25d45 Initial commit: Merakomis portal, Docker stack and user-reader API.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 11:04:05 +03:00

1 line
7.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";(self.webpackChunkmodule_bz=self.webpackChunkmodule_bz||[]).push([[756],{6756:(e,t,l)=>{l.r(t),l.d(t,{default:()=>b});var a,r,n,c,m=l(1504),i=l(2168),o=l(760),s=l(2400),u=l(3440);class d extends m.Component{constructor(e){super(e),this.state={}}}a=d,n=void 0,(r="symbol"==typeof(c=function(e,t){if("object"!=typeof e||!e)return e;var l=e[Symbol.toPrimitive];if(void 0!==l){var a=l.call(e,"string");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r="defaultProps"))?c:String(c))in a?Object.defineProperty(a,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):a[r]=n,d.defaultProps={};var f=l(6591),E=l(6812),p=l.n(E);function _(e,t,l){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var l=e[Symbol.toPrimitive];if(void 0!==l){var a=l.call(e,"string");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}class h extends d{constructor(...e){super(...e),_(this,"wrap",void 0),_(this,"getCountMonths",(function(){return 2}))}render(){var e=this;let t=this.getCountMonths();for(let e=(new Date).getFullYear();e>=2022;e--);return m.createElement("div",{ref:function(t){return e.wrap=t},id:"fot"},m.createElement("div",{id:"fot_left"},m.createElement("div",{id:"fot_title"},m.createElement("div",{className:"merakomis_title"},"ФОТ"),m.createElement("div",{id:"fot_filter"},m.createElement(f.Switcher,{placeholder:"хз"}),m.createElement("button",{className:"btn"},"Импорт"),m.createElement(p(),{input_opt:{options:[]}}),m.createElement("div",{id:"fot_name"},m.createElement(f.Text,{placeholder:"Поиск по ФИО",value:""})))),m.createElement("div",{id:"fot_table_wrap"},m.createElement("table",{className:"merakomis_table w100"},m.createElement("thead",null,m.createElement("tr",null,m.createElement("th",{colSpan:t,className:"th_bb"},"ФИО"),m.createElement("th",{className:"empty_cell"}),m.createElement("th",{colSpan:t,className:"th_bb"},"ФЗП, ₽"),m.createElement("th",{className:"empty_cell"}),m.createElement("th",{colSpan:t,className:"th_bb"},"ДОП, ₽"),m.createElement("th",{className:"empty_cell"}),m.createElement("th",{colSpan:t,className:"th_bb"},"ФОТ, ₽"),m.createElement("th",{className:"empty_cell"}),m.createElement("th",null)),m.createElement("tr",null,m.createElement("th",null,m.createElement("div",{className:"sorter asc"},"MeraProject")),m.createElement("th",null,"1С: Кадры"),m.createElement("th",{className:"empty_cell"}),m.createElement("th",null,"янв 2025"),m.createElement("th",null,"фев 2025"),m.createElement("th",{className:"empty_cell"}),m.createElement("th",null,"янв 2025"),m.createElement("th",null,"фев 2025"),m.createElement("th",{className:"empty_cell"}),m.createElement("th",null,"янв 2025"),m.createElement("th",null,"фев 2025"),m.createElement("th",{className:"empty_cell"}),m.createElement("th",null,"Флаг"))),m.createElement("tbody",null,m.createElement("tr",null,m.createElement("td",null,"Имя фамилия ссылка"),m.createElement("td",null,"Имя фамилия"),m.createElement("td",{className:"empty_cell"}),m.createElement("td",null,"0"),m.createElement("td",null,"0"),m.createElement("td",{className:"empty_cell"}),m.createElement("td",null,"0"),m.createElement("td",null,"0"),m.createElement("td",{className:"empty_cell"}),m.createElement("td",null,"0"),m.createElement("td",null,"0"),m.createElement("td",{className:"empty_cell"}),m.createElement("td",null,"xx"))))),m.createElement(u.J,{isRight:!0},m.createElement("button",{className:"btn blue"},"Сохранить черновик"),m.createElement("button",{className:"btn blue"},"Загрузить"),m.createElement("button",{className:"btn blue alt"},"Отмена"))),m.createElement("div",{className:"fot_sep"}),m.createElement("div",{id:"fot_right"},m.createElement("div",{className:"fot_draft_list"},m.createElement("div",{className:"fot_draft"},m.createElement("div",{className:"fot_draft_title"},m.createElement("span",null,"Черновик"),m.createElement("div",{className:"fot_draft_remove"})),m.createElement("div",{className:"fot_draft_subtitle"},"Сохранено тогдато во столько-то"),m.createElement("div",{className:"fot_draft_admin"},"Виктор Антонович")),m.createElement("div",{className:"fot_draft"},m.createElement("div",{className:"fot_draft_title"},m.createElement("span",null,"Черновик"),m.createElement("div",{className:"fot_draft_remove"})),m.createElement("div",{className:"fot_draft_subtitle"},"Сохранено тогдато во столько-то"),m.createElement("div",{className:"fot_draft_admin"},"Виктор Антонович")),m.createElement("div",{className:"fot_draft"},m.createElement("div",{className:"fot_draft_title"},m.createElement("span",null,"Черновик"),m.createElement("div",{className:"fot_draft_remove"})),m.createElement("div",{className:"fot_draft_subtitle"},"Сохранено тогдато во столько-то"),m.createElement("div",{className:"fot_draft_admin"},"Виктор Антонович")))))}}function v(e,t,l){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var l=e[Symbol.toPrimitive];if(void 0!==l){var a=l.call(e,"string");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}class b extends m.Component{constructor(...e){var t;super(...e),t=this,v(this,"table",void 0),v(this,"openForm",(function(e){s.G.openForm("fot",{id:e},{onSubmit:function(){t.table.reload()},getCustomInput:s.G.app.props.getCustomInput,footerClassName:"dn"})}))}openImport(){s.G.openStandardModal({header:"Загрузчик ФОТ",footer:null,width:"100vw",content:m.createElement(h,null),className:"bg_white"})}setYear(e,t,l){let a=t;this.table.onSetFilter({year:a})}render(){var e=this;let{archive:t}=this.props,l=[],a=(new Date).getFullYear();for(let e=a;e>=2022;e--)l.push({id:e,title:e});return m.createElement(i.c,{key:Date.now(),entity:"fot",onRef:function(t){e.table=t},checkable:!1,ajaxData:{full:!0},custom_filter_switcher:o.A.getCustomTableSwitcher(),renderTitle:o.A.renderTableTitle,search_placeholder:"Поиск по ФИО",show_add_button:!0,show_search:!1,show_filter:!1,show_count:!1,show_pagination:!1,prefix_title_buttons:m.createElement(u.J,{mt:"mt0 mb0"},m.createElement("div",{style:{marginRight:"5px"}},m.createElement(p(),{options:l,value:a,onChange:this.setYear.bind(this)}))),show_download_button:!0,init_filter_values:this.props.init_filter_values,formOptions:{footerClassName:"dn"},customRowClick:function(e){},renderTd:function(t,l,a,r){let n=l.column.split("_").pop();return["ym"].indexOf(n)>=0&&(r=m.createElement("span",{className:"link pointer",onClick:function(t){t.stopPropagation(),e.openForm(a.id)}},l.value)),m.createElement(m.Fragment,null,r)}})}}}}]);