@studio-west/employees 0.6.54 → 0.6.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SheetTable.cjs +1 -1
- package/dist/SheetTable.js +2 -3
- package/dist/SwButton-85-tKHA7-BpZ2q9aj.cjs +1 -0
- package/dist/SwButton-85-tKHA7-D0loTJgt.js +33 -0
- package/dist/SwCollapse-CuN3EbT6-1y2PMRQ8.cjs +1 -0
- package/dist/SwCollapse-CuN3EbT6-Bp57Ya_9.js +33 -0
- package/dist/SwDatePicker-C-UmCyTm-CTOiwZL1.cjs +1 -0
- package/dist/SwDatePicker-C-UmCyTm-Co9VaGQR.js +369 -0
- package/dist/SwDropdown-DQGTnnKw-BltvlnsL.cjs +1 -0
- package/dist/SwDropdown-DQGTnnKw-CJPDuCfV.js +111 -0
- package/dist/SwDropdownItem-Db2TXRVI-BcLri1T3.js +31 -0
- package/dist/SwDropdownItem-Db2TXRVI-DHp91ADz.cjs +1 -0
- package/dist/SwDropdownNew-CYfjZFd2-DIv6p-6i.cjs +1 -0
- package/dist/SwDropdownNew-CYfjZFd2-nlDq08DL.js +107 -0
- package/dist/SwFormItem-CaA4jsoa-6C3zw4iZ.js +24 -0
- package/dist/SwFormItem-CaA4jsoa-MFTEfPiY.cjs +1 -0
- package/dist/SwGide-Bv05X9FW-BTqybd7p.cjs +1 -0
- package/dist/SwGide-Bv05X9FW-XUYykhog.js +145 -0
- package/dist/SwInput-B1hD3QYw-DaqUVUBC.cjs +1 -0
- package/dist/SwInput-B1hD3QYw-zCu7Xl3k.js +91 -0
- package/dist/SwMessage-D24ZbJyd-B0sGfA92.js +60 -0
- package/dist/SwMessage-D24ZbJyd-hmjlb3jg.cjs +1 -0
- package/dist/SwSection-D8ooQ21I-DkmOwvIl.js +37 -0
- package/dist/SwSection-D8ooQ21I-Nsa_5V1p.cjs +1 -0
- package/dist/SwSelect-C2RKinez-BD70YvFF.js +71 -0
- package/dist/SwSelect-C2RKinez-KweWYzRe.cjs +1 -0
- package/dist/SwSkeleton-B7ysp8L9-DnocmEnE.js +26 -0
- package/dist/SwSkeleton-B7ysp8L9-RJwRbv_K.cjs +1 -0
- package/dist/SwSkeletonItem-CU7LvihY-BJmW7U8Z.cjs +1 -0
- package/dist/SwSkeletonItem-CU7LvihY-DdKyY6kY.js +29 -0
- package/dist/SwSlider-B8ah3WJf-DFs0WIbH.js +160 -0
- package/dist/SwSlider-B8ah3WJf-eotQC_I3.cjs +1 -0
- package/dist/SwSwitch-6rl1IT4p-BQTT__wH.cjs +1 -0
- package/dist/SwSwitch-6rl1IT4p-Cq2vi3fZ.js +47 -0
- package/dist/SwTable-BKZ5idCi-BMDZ1otG.cjs +1 -0
- package/dist/SwTable-BKZ5idCi-DEX2rFo2.js +152 -0
- package/dist/SwTableColumn-BLF5bPuJ-CHI10OyO.js +28 -0
- package/dist/SwTableColumn-BLF5bPuJ-CbuAoznO.cjs +1 -0
- package/dist/SwTabs-DkSI4oAh-By6KQ_XO.cjs +1 -0
- package/dist/SwTabs-DkSI4oAh-VaIFmFrU.js +38 -0
- package/dist/SwTabsPane-Dwtj8g7T-BUCrffEQ.cjs +1 -0
- package/dist/SwTabsPane-Dwtj8g7T-Dpg9j8nR.js +38 -0
- package/dist/VacationTable-3jJUSDHf.cjs +1 -0
- package/dist/VacationTable-GeJlpGuk.js +839 -0
- package/dist/VacationTable.cjs +1 -1
- package/dist/VacationTable.js +9 -726
- package/dist/WorkTable.cjs +4 -4
- package/dist/WorkTable.js +50 -50
- package/dist/employees.css +1 -1
- package/package.json +1 -1
package/dist/WorkTable.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),de=require("file-saver"),se=require("exceljs"),m=require("./index-Dn3djtwj.cjs"),ve=require("vue-i18n"),i=require("element-plus"),_=require("@imengyu/vue3-context-menu");function ce(C){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(C){for(const V in C)if(V!=="default"){const c=Object.getOwnPropertyDescriptor(C,V);Object.defineProperty(r,V,c.get?c:{enumerable:!0,get:()=>C[V]})}}return r.default=C,Object.freeze(r)}const me=ce(se),ge={class:"work"},he={class:"nav"},fe={style:{height:"100px",width:"100%",display:"inline-block"}},pe={style:{height:"100px",width:"100%",display:"inline-block"}},ye={key:0,class:"controls-container",style:{"margin-top":".5rem"}},we={class:"label"},ke={key:0,style:{padding:"0.5em 1.5em"}},Ce={key:1,style:{padding:"0.5em 1.5em"}},xe={__name:"WorkTable",props:{checkEdit:{type:Boolean,default:()=>!0},odata:Object,workSchedule:Object,fullName:{type:String,default:"Вы"},group:String,date:String},setup(C){const{t:r,d:V}=ve.useI18n(),c=C,
|
|
2
|
-
`+((N=n.value[l].days[v])==null?void 0:N.time)},W=()=>{n.value=[],
|
|
3
|
-
`+(s-1),l.getColumn(s).width=6,l.getColumn(s).alignment=v,l.getCell(4,s).border=d;l.getRow(1).height=40,l.getRow(2).height=30,l.getRow(3).height=20,l.getColumn(1).width=15,l.getColumn(u.value.length+2).width=5,l.getColumn(u.value.length+3).width=6,l.getColumn(u.value.length+4).width=13,l.getColumn(u.value.length+5).width=13,l.getColumn(1).alignment=v,l.getCell("A2").alignment=o,l.getCell("A3").alignment=o,l.getCell("B3").alignment=o,l.getCell(3,u.value.length+2).alignment=o,l.getColumn(u.value.length+2).alignment=v,l.getColumn(u.value.length+3).alignment=v,l.getColumn(u.value.length+4).alignment=o,l.getColumn(u.value.length+5).alignment=o,l.getCell("A3").border=d,l.getCell("B3").border=d,l.getCell(3,u.value.length+2).border=d,l.getCell(4,u.value.length+2).border=d,l.getCell(3,u.value.length+4).border=d,l.getCell(3,u.value.length+5).border=d,l.getCell(4,u.value.length+3).border=d;let a=0;for(const s of n.value){let y=[s.name];for(let k=1;k<=u.value.length;k++){const{ind:G}=H(k,a);G!==-1?y[k]=`${s.days[G].time} ${s.days[G].tips}`:y[k]=" "}y.push(((S=s.days)==null?void 0:S.length)||" ",s.contHour||0);const L=l.addRow(y);L.border=d,a++}let w="Щербина Е. В.";c.odata.personal.forEach(s=>{s.roleName==="Начальник отдела правовой и кадровой работы"&&(w=s.employeeName)}),l.mergeCells(`A${n.value.length+6}:P${n.value.length+6}`),l.mergeCells(`Q${n.value.length+6}:AG${n.value.length+6}`),l.mergeCells(`B${n.value.length+8}:E${n.value.length+8}`),l.mergeCells(`F${n.value.length+8}:L${n.value.length+8}`),l.mergeCells(`M${n.value.length+8}:P${n.value.length+8}`),l.mergeCells(`S${n.value.length+8}:V${n.value.length+8}`),l.mergeCells(`W${n.value.length+8}:AC${n.value.length+8}`),l.mergeCells(`AD${n.value.length+8}:AG${n.value.length+8}`),l.mergeCells(`Z${n.value.length+9}:AA${n.value.length+9}`),l.getCell(`A${n.value.length+6}`).value=r("workSchedule.byInitials"),l.getCell(`Q${n.value.length+6}`).value=r("workSchedule.supervisorHR"),l.getCell(`B${n.value.length+8}`).value=r("workSchedule.compiled")+":",l.getCell(`S${n.value.length+8}`).value=r("workSchedule.approved")+":",l.getCell(`M${n.value.length+8}`).value=m.byInitials(c.fullName),l.getCell(`AD${n.value.length+8}`).value=m.byInitials(w),l.getCell(`Z${n.value.length+9}`).value=r("workSchedule.printPlace"),l.getCell(`A${n.value.length+6}`).alignment={vertical:"middle",horizontal:"right"},l.getCell(`Q${n.value.length+6}`).alignment={vertical:"middle",horizontal:"right"},l.getCell(`B${n.value.length+8}`).alignment={vertical:"middle",horizontal:"right"},l.getCell(`F${n.value.length+8}`).alignment={vertical:"middle",horizontal:"right"},l.getCell(`M${n.value.length+8}`).alignment={vertical:"middle",horizontal:"left"},l.getCell(`AD${n.value.length+8}`).alignment={vertical:"middle",horizontal:"left"},l.getCell(`Z${n.value.length+9}`).alignment=o,l.getCell(`F${n.value.length+8}`).border={bottom:{style:"thin"}},l.getCell(`W${n.value.length+8}`).border={bottom:{style:"thin"}};const N="export_"+m.parseTime(Date.now(),"{dd}.{m}.{Y}")+".xlsx",b=await t.xlsx.writeBuffer();de.saveAs(new Blob([b]),N),
|
|
4
|
-
`+a.day.toString(),prop:"vacation"},{default:e.withCtx(w=>[e.createElementVNode("div",pe,e.toDisplayString(
|
|
1
|
+
"use strict";const e=require("vue"),de=require("file-saver"),se=require("exceljs"),m=require("./index-Dn3djtwj.cjs"),ve=require("vue-i18n"),i=require("element-plus"),_=require("@imengyu/vue3-context-menu");function ce(C){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(C){for(const V in C)if(V!=="default"){const c=Object.getOwnPropertyDescriptor(C,V);Object.defineProperty(r,V,c.get?c:{enumerable:!0,get:()=>C[V]})}}return r.default=C,Object.freeze(r)}const me=ce(se),ge={class:"work"},he={class:"nav"},fe={style:{height:"100px",width:"100%",display:"inline-block"}},pe={style:{height:"100px",width:"100%",display:"inline-block"}},ye={key:0,class:"controls-container",style:{"margin-top":".5rem"}},we={class:"label"},ke={key:0,style:{padding:"0.5em 1.5em"}},Ce={key:1,style:{padding:"0.5em 1.5em"}},xe={__name:"WorkTable",props:{checkEdit:{type:Boolean,default:()=>!0},odata:Object,workSchedule:Object,fullName:{type:String,default:"Вы"},group:String,date:String},setup(C){const{t:r,d:V}=ve.useI18n(),c=C,I=e.ref(!1),n=e.ref([]),R=e.ref(c.date?new Date(c.date+"T00:00:01").getMonth():new Date().getMonth()),j=e.ref(!1),B=e.ref([]),f=e.ref(new Date(new Date().getFullYear(),new Date().getMonth(),1)),u=e.ref([]),T=e.ref(0),p=e.ref(9),h=e.ref(8),Y=e.ref(!1),J=e.ref(!0),$=e.ref(!1),q=e.ref("5"),M=e.ref(1),x=e.ref([]),O=e.ref([]),E=e.ref([]),U=e.ref([]),g=e.ref({name:"Имя",length:0,code:""}),A=e.ref(!1),P=e.ref({zIndex:3,minWidth:230,x:500,y:200}),Z=e.ref({}),z=e.ref("100%");e.watch(x,async(t,l)=>{t!==l&&(E.value=[],Y.value=!1,c.odata.personal.forEach(o=>{t.includes(o.divisionName)&&(E.value.some(d=>(d==null?void 0:d.activeText)===o.roleName)||E.value.push({val:!0,activeText:o.roleName}))}),W())}),e.watch(R,async t=>{let l=new Date().getMonth(),o=t===null?l:t-1;o=l-1<=o?o:o+12,console.log("currentMonth",o),f.value=new Date(new Date().getFullYear(),o,1),Q()});const ee=(t,l,o,d)=>{g.value.ids=t.ids,g.value.key=t.key,g.value.add=t.days.length>0&&t.days[t.days.length-1].cont,g.value.level=l.level,g.value.day=o.cellIndex,P.value.y=d.clientY,P.value.x=d.clientX,l.level===2&&l.no===0&&c.checkEdit&&(g.value.name=r("workSchedule.autocomplete"),A.value=!0),l.level===3&&o.cellIndex-l.no===1&&c.checkEdit&&(D(o.cellIndex,t.ids),g.value.name=r("workSchedule.modeSelection"),A.value=!0)},le=({row:t,columnIndex:l})=>{if(!B.value||B.value.length===0||!j.value)return"";const o=new Date(new Date(f.value).getFullYear(),new Date(f.value).getMonth(),l).getTime()+1e3;for(let d of B.value){const{dateStart:v,dateEnd:a,code:w}=d;if(v&&a&&w===t.code&&l!==0&&l<=u.value.length){const N=new Date(m.parseDate(v)).getTime(),b=new Date(m.parseDate(a)).getTime();if(o>=N&&o<=b)return"vacation"}}return""},Q=()=>{var a,w,N,b;const t=Z.value,l=new Date(f.value),o=new Date(l.getFullYear(),l.getMonth()+1,0).getDate();let d=[],v=0;for(let S=1;S<=o;S++){const s=m.parseTime(l.setDate(S),"{Y}-{m}-{dd}");v+=(a=t.nowork)!=null&&a.includes(s)||t.holidays.includes(s)?0:(w=t.preholidays)!=null&&w.includes(s)?7:8;const y=(N=t.nowork)!=null&&N.includes(s)?"nowork":t.holidays.includes(s)?"holiday":(b=t.preholidays)!=null&&b.includes(s)?"preholiday":"";d.push({day:S,holidays:y,weekday:V(new Date(l.getFullYear(),l.getMonth(),S),"day")})}T.value=v,u.value=d,c.odata.getPersonal({}).then(S=>{var s;x.value.length===0&&(x.value=[(s=S.find(y=>y.employeeName===c.fullName))==null?void 0:s.divisionName]),S.forEach((y,L)=>{O.value.some(k=>(k==null?void 0:k.value)===y.divisionName)||O.value.push({value:y.divisionName,label:y.divisionName,key:L}),x.value.includes(y.divisionName)&&!E.value.some(k=>(k==null?void 0:k.activeText)===y.roleName)&&E.value.push({val:!0,activeText:y.roleName})}),W(),J.value=!1})},te=e.computed(()=>!n.value.some(t=>t.contHour!==T.value)),K=(t,l)=>{var a,w,N;const o=new Date(f.value),d=`${o.getFullYear()}-${(o.getMonth()+1).toString().padStart(2,"0")}-${t.toString().padStart(2,"0")}`,v=(a=n.value[l])==null?void 0:a.days.findIndex(b=>b.day===d);return l===-1||v===-1?"":((w=n.value[l].days[v])==null?void 0:w.tips)+`
|
|
2
|
+
`+((N=n.value[l].days[v])==null?void 0:N.time)},W=()=>{n.value=[],U.value=[],B.value=[],c.odata.personal.forEach(t=>{if(x.value.includes(t.divisionName)&&E.value.some(l=>l.val&&l.activeText===t.roleName)){let l=m.byInitials(t.employeeName);n.value.push({name:l+" ("+t.roleName+")",days:[],contHour:0,code:t.employeeKey,id:!1})}}),n.value.sort((t,l)=>t.name<l.name?-1:t.name>l.name?1:0),n.value.forEach((t,l)=>{t.ids=l,U.value.push(t.code)}),c.workSchedule.getUsersYear({code:U.value,year:new Date(f.value).getFullYear()}).then(t=>{t.forEach(l=>{l.dateStart&&B.value.push({code:l.code,dateStart:l.dateStart,dateEnd:l.dateEnd})}),ae(),$.value=!1})},ae=()=>{c.workSchedule.getWorkSchedule({code:U.value,date:m.parseTime(new Date(f.value),"{Y}-{m}-{dd}")}).then(t=>{t.forEach((l,o)=>{l!==null&&(n.value[o].days=l.data.days,n.value[o].id=l.id)}),F()})},F=()=>{n.value.forEach(t=>{t.contHour=t.days.reduce((l,o)=>l+o.time,0)})},ne=t=>{n.value[t].days=[],F()},oe=t=>{switch(q.value){case"5":for(let l=M.value;l<=u.value.length;l++)u.value[l-1].holidays===""&&D(l,t,!0),u.value[l-1].holidays==="preholiday"&&(h.value-=1,D(l,t,!0),h.value+=1);break;case"2x2":for(let l=M.value;l<=u.value.length;l+=4)D(l,t,!0),l+1<=u.value.length&&D(l+1,t,!0);break;case"2x5":for(let l=M.value;l<=u.value.length;l+=7)for(let o=l;o<l+5&&o<=u.value.length;o++)u.value[o-1].holidays==="preholiday"?(h.value-=1,D(o,t,!0),h.value+=1):D(o,t,!0);break}},D=(t,l,o=!1)=>{const{date:d,ind:v}=H(t,l);v===-1?(n.value[l].days.push({day:d,time:h.value,tips:`(${p.value}:00 - ${h.value>=22?p.value+h.value+2:p.value+h.value+1}:00)`}),F()):o||(h.value=n.value[l].days[v].time,p.value=parseInt(n.value[l].days[v].tips.slice(1,-12)))},ue=(t,l)=>{const{ind:o}=H(t,l);n.value[l].days.splice(o,1),F(),document.querySelector(".app-main").click()},X=(t,l)=>{const{date:o,ind:d}=H(t,l);n.value[l].days[d]={day:o,time:h.value,tips:`(${p.value}:00 - ${h.value>=22?p.value+h.value+2:p.value+h.value+1}:00)`},F()},H=(t,l)=>{var v;const o=m.parseTime(new Date(f.value).setDate(t),"{Y}-{m}-{dd}"),d=(v=n.value[l])==null?void 0:v.days.findIndex(a=>a.day===o);return{date:o,ind:d}},re=async()=>{var S;I.value=!0;const t=new me.Workbook,l=t.addWorksheet(V(f.value,"month"),{pageSetup:{paperSize:9,orientation:"landscape",fitToPage:!0}}),o={vertical:"middle",horizontal:"center"},d={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},v={vertical:"middle",horizontal:"center",wrapText:!0};l.mergeCells(`A1:${m.cellsDynamically("A1",u.value.length+5)}1`),l.mergeCells(`A2:${m.cellsDynamically("A2",u.value.length+5)}2`),l.mergeCells("A3:A4"),l.mergeCells(`B3:${m.cellsDynamically("B3",u.value.length)}3`),l.mergeCells(`${m.cellsDynamically("B3",u.value.length+1)}3:${m.cellsDynamically("B3",u.value.length+2)}3`),l.mergeCells(`${m.cellsDynamically("B3",u.value.length+3)}3:${m.cellsDynamically("B4",u.value.length+3)}4`),l.mergeCells(`${m.cellsDynamically("B3",u.value.length+4)}3:${m.cellsDynamically("B4",u.value.length+4)}4`),l.getCell("A1").value=r("workSchedule.firm"),l.getCell("A2").value=r("workSchedule.title",{name:x.value[0]})+V(f.value,"month")+` ${new Date(f.value).getFullYear()}`,l.getCell("A3").value=r("workSchedule.month"),l.getCell("B3").value=r("workSchedule.numbersMonth"),l.getCell(3,u.value.length+2).value=r("workSchedule.onSchedule"),l.getCell(3,u.value.length+4).value=r("workSchedule.acquainted"),l.getCell(3,u.value.length+5).value=r("workSchedule.date"),l.getCell(4,u.value.length+2).value=r("workSchedule.days"),l.getCell(4,u.value.length+3).value=`${r("workSchedule.hours")} (${T.value})`;for(let s=2;s<=u.value.length+1;s++)l.getCell(4,s).value=u.value[s-2].weekday+`
|
|
3
|
+
`+(s-1),l.getColumn(s).width=6,l.getColumn(s).alignment=v,l.getCell(4,s).border=d;l.getRow(1).height=40,l.getRow(2).height=30,l.getRow(3).height=20,l.getColumn(1).width=15,l.getColumn(u.value.length+2).width=5,l.getColumn(u.value.length+3).width=6,l.getColumn(u.value.length+4).width=13,l.getColumn(u.value.length+5).width=13,l.getColumn(1).alignment=v,l.getCell("A2").alignment=o,l.getCell("A3").alignment=o,l.getCell("B3").alignment=o,l.getCell(3,u.value.length+2).alignment=o,l.getColumn(u.value.length+2).alignment=v,l.getColumn(u.value.length+3).alignment=v,l.getColumn(u.value.length+4).alignment=o,l.getColumn(u.value.length+5).alignment=o,l.getCell("A3").border=d,l.getCell("B3").border=d,l.getCell(3,u.value.length+2).border=d,l.getCell(4,u.value.length+2).border=d,l.getCell(3,u.value.length+4).border=d,l.getCell(3,u.value.length+5).border=d,l.getCell(4,u.value.length+3).border=d;let a=0;for(const s of n.value){let y=[s.name];for(let k=1;k<=u.value.length;k++){const{ind:G}=H(k,a);G!==-1?y[k]=`${s.days[G].time} ${s.days[G].tips}`:y[k]=" "}y.push(((S=s.days)==null?void 0:S.length)||" ",s.contHour||0);const L=l.addRow(y);L.border=d,a++}let w="Щербина Е. В.";c.odata.personal.forEach(s=>{s.roleName==="Начальник отдела правовой и кадровой работы"&&(w=s.employeeName)}),l.mergeCells(`A${n.value.length+6}:P${n.value.length+6}`),l.mergeCells(`Q${n.value.length+6}:AG${n.value.length+6}`),l.mergeCells(`B${n.value.length+8}:E${n.value.length+8}`),l.mergeCells(`F${n.value.length+8}:L${n.value.length+8}`),l.mergeCells(`M${n.value.length+8}:P${n.value.length+8}`),l.mergeCells(`S${n.value.length+8}:V${n.value.length+8}`),l.mergeCells(`W${n.value.length+8}:AC${n.value.length+8}`),l.mergeCells(`AD${n.value.length+8}:AG${n.value.length+8}`),l.mergeCells(`Z${n.value.length+9}:AA${n.value.length+9}`),l.getCell(`A${n.value.length+6}`).value=r("workSchedule.byInitials"),l.getCell(`Q${n.value.length+6}`).value=r("workSchedule.supervisorHR"),l.getCell(`B${n.value.length+8}`).value=r("workSchedule.compiled")+":",l.getCell(`S${n.value.length+8}`).value=r("workSchedule.approved")+":",l.getCell(`M${n.value.length+8}`).value=m.byInitials(c.fullName),l.getCell(`AD${n.value.length+8}`).value=m.byInitials(w),l.getCell(`Z${n.value.length+9}`).value=r("workSchedule.printPlace"),l.getCell(`A${n.value.length+6}`).alignment={vertical:"middle",horizontal:"right"},l.getCell(`Q${n.value.length+6}`).alignment={vertical:"middle",horizontal:"right"},l.getCell(`B${n.value.length+8}`).alignment={vertical:"middle",horizontal:"right"},l.getCell(`F${n.value.length+8}`).alignment={vertical:"middle",horizontal:"right"},l.getCell(`M${n.value.length+8}`).alignment={vertical:"middle",horizontal:"left"},l.getCell(`AD${n.value.length+8}`).alignment={vertical:"middle",horizontal:"left"},l.getCell(`Z${n.value.length+9}`).alignment=o,l.getCell(`F${n.value.length+8}`).border={bottom:{style:"thin"}},l.getCell(`W${n.value.length+8}`).border={bottom:{style:"thin"}};const N="export_"+m.parseTime(Date.now(),"{dd}.{m}.{Y}")+".xlsx",b=await t.xlsx.writeBuffer();de.saveAs(new Blob([b]),N),I.value=!1},ie=async()=>{Y.value||c.workSchedule.addWorkSchedule({data:n.value,date:m.parseTime(new Date(f.value),"{Y}-{m}-{dd}"),group:x.value[0]}).then(t=>Y.value=t)};return console.log("props.group",c.group),console.log("props.date",c.date),c.group&&(x.value[0]=c.group),c.date&&(f.value=new Date(c.date+"T00:00:01")),m.holidays().then(t=>{Z.value=t,Q()}),(t,l)=>{const o=e.resolveComponent("el-date-picker"),d=e.resolveComponent("svg-icon"),v=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",ge,[e.createElementVNode("div",he,[C.checkEdit?(e.openBlock(),e.createBlock(e.unref(i.ElSelect),{key:0,modelValue:x.value,"onUpdate:modelValue":l[0]||(l[0]=a=>x.value=a),multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:"Select",style:{width:"240px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,a=>(e.openBlock(),e.createBlock(e.unref(i.ElOption),{key:a.key,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):e.createCommentVNode("",!0),C.checkEdit?(e.openBlock(),e.createBlock(e.unref(i.ElButton),{key:1,plain:"",onClick:l[1]||(l[1]=a=>$.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("workSchedule.jobTitle")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(o,{modelValue:R.value,"onUpdate:modelValue":l[2]||(l[2]=a=>R.value=a),type:"month",placeholder:"Выберите месяц",format:"MMM","value-format":"M"},null,8,["modelValue"]),l[21]||(l[21]=e.createElementVNode("div",{class:"expander"},null,-1)),e.createVNode(e.unref(i.ElSwitch),{modelValue:z.value,"onUpdate:modelValue":l[3]||(l[3]=a=>z.value=a),"active-text":t.$t("bids.currentHeight"),"active-value":"100%","inactive-value":"calc(100vh - var(--el-component-size)*5 - var(--el-main-padding)*2 - var(--header-height))"},null,8,["modelValue","active-text"]),e.createVNode(e.unref(i.ElSwitch),{modelValue:j.value,"onUpdate:modelValue":l[4]||(l[4]=a=>j.value=a),"active-text":"Отпуска","active-value":!0,"inactive-value":!1},null,8,["modelValue"])]),e.createVNode(e.unref(i.ElSkeleton),{style:{width:"100%"},loading:J.value,animated:""},{template:e.withCtx(()=>[e.createVNode(e.unref(i.ElSkeletonItem),{variant:"text",style:{width:"100%",height:"2rem"}}),e.createVNode(e.unref(i.ElSkeletonItem),{variant:"text",style:{width:"180px",height:"4rem","margin-right":"4px"}}),e.createVNode(e.unref(i.ElSkeletonItem),{variant:"text",style:{width:"calc( 100% - 184px)",height:"4rem"}}),e.createVNode(e.unref(i.ElSkeletonItem),{variant:"text",style:{width:"180px",height:"8rem","margin-right":"4px"}}),e.createVNode(e.unref(i.ElSkeletonItem),{variant:"text",style:{width:"calc( 100% - 184px)",height:"8rem"}})]),default:e.withCtx(()=>[e.createVNode(e.unref(i.ElTable),{id:"printTable",data:n.value,style:{width:"100%"},"max-height":z.value,size:"small",align:"center",onCellClick:ee,"empty-text":e.unref(r)("workSchedule.emptyText"),"cell-class-name":le},{default:e.withCtx(()=>[e.createVNode(e.unref(i.ElTableColumn),{label:e.unref(r)("workSchedule.title",{name:x.value[0]})+e.unref(V)(f.value,"month")+` ${new Date(f.value).getFullYear()}`,align:"center",height:"34"},{default:e.withCtx(()=>[e.createVNode(e.unref(i.ElTableColumn),{label:e.unref(r)("workSchedule.month"),width:"180",align:"center",fixed:z.value!=="100%"},{default:e.withCtx(a=>[e.createElementVNode("div",fe,e.toDisplayString(n.value[a.$index].name),1)]),_:1},8,["label","fixed"]),e.createVNode(e.unref(i.ElTableColumn),{label:e.unref(r)("workSchedule.numbersMonth"),align:"center"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,a=>(e.openBlock(),e.createBlock(e.unref(i.ElTableColumn),{key:a.day,width:"46","class-name":a.holidays,align:"center",label:a.weekday+`
|
|
4
|
+
`+a.day.toString(),prop:"vacation"},{default:e.withCtx(w=>[e.createElementVNode("div",pe,e.toDisplayString(K(a.day,w.$index)||" "),1)]),_:2},1032,["class-name","label"]))),128))]),_:1},8,["label"]),e.createVNode(e.unref(i.ElTableColumn),{label:e.unref(r)("workSchedule.onSchedule"),align:"center",fixed:z.value!=="100%"?"right":!1},{default:e.withCtx(()=>[e.createVNode(e.unref(i.ElTableColumn),{label:e.unref(r)("workSchedule.days"),align:"center"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(n.value[a.$index].days.length||0),1)]),_:1},8,["label"]),e.createVNode(e.unref(i.ElTableColumn),{label:`${e.unref(r)("workSchedule.hours")} ( ${T.value} )`,align:"center"},{default:e.withCtx(a=>[e.createElementVNode("div",{style:e.normalizeStyle(`color: ${T.value===a.row.contHour?"green":"red"};`)},e.toDisplayString(a.row.contHour),5)]),_:1},8,["label"])]),_:1},8,["label","fixed"])]),_:1},8,["label"])]),_:1},8,["data","max-height","empty-text"])]),_:1},8,["loading"]),te.value&&C.checkEdit?(e.openBlock(),e.createElementBlock("div",ye,[e.createTextVNode(e.toDisplayString(e.unref(r)("workSchedule.chartsFilled"))+": ",1),Y.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(i.ElButton),{key:0,type:"primary",onClick:ie},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("workSchedule.confirm")),1)]),_:1})),l[22]||(l[22]=e.createTextVNode()),e.createElementVNode("span",null,e.toDisplayString(C.fullName),1)])):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createBlock(e.unref(i.ElButton),{disabled:I.value,plain:"",onClick:re,style:{"margin-top":".5rem"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("workSchedule.exportExcel")),1)]),_:1},8,["disabled"])),[[v,I.value]]),e.createVNode(e.unref(i.ElDialog),{title:e.unref(r)("workSchedule.jobTitle"),modelValue:$.value,"onUpdate:modelValue":l[7]||(l[7]=a=>$.value=a),width:"400px"},{footer:e.withCtx(()=>[e.createVNode(e.unref(i.ElButton),{onClick:l[5]||(l[5]=a=>$.value=!1),size:"default"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("workSchedule.cancel")),1)]),_:1}),e.createVNode(e.unref(i.ElButton),{size:"default",type:"primary",onClick:l[6]||(l[6]=a=>{W(),$.value=!1})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("workSchedule.select")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(i.ElForm),{ref:"dialogForm",model:E.value,autocomplete:"on"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,a=>(e.openBlock(),e.createBlock(e.unref(i.ElFormItem),null,{default:e.withCtx(()=>[e.createVNode(e.unref(i.ElSwitch),{modelValue:a.val,"onUpdate:modelValue":w=>a.val=w,"active-text":a.activeText},null,8,["modelValue","onUpdate:modelValue","active-text"])]),_:2},1024))),256))]),_:1},8,["model"])]),_:1},8,["title","modelValue"]),e.createVNode(e.unref(_.ContextMenu),{show:A.value,"onUpdate:show":l[20]||(l[20]=a=>A.value=a),options:P.value},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"mx-context-menu-item",onClick:l[8]||(l[8]=a=>A.value=!1)},[e.createElementVNode("span",we,e.toDisplayString(g.value.name),1),l[23]||(l[23]=e.createElementVNode("div",{class:"expander"},null,-1)),e.createVNode(d,{"icon-class":"cross"})]),e.createVNode(e.unref(_.ContextMenuSeparator)),g.value.level===2?(e.openBlock(),e.createElementBlock("div",ke,[e.createVNode(e.unref(i.ElRadioGroup),{modelValue:q.value,"onUpdate:modelValue":l[9]||(l[9]=a=>q.value=a),size:"small"},{default:e.withCtx(()=>[e.createVNode(e.unref(i.ElRadioButton),{label:e.unref(r)("workSchedule.Days5"),value:"5"},null,8,["label"]),e.createVNode(e.unref(i.ElRadioButton),{label:"2 Х 2",value:"2x2"}),e.createVNode(e.unref(i.ElRadioButton),{label:"2 Х 5",value:"2x5"})]),_:1},8,["modelValue"]),l[24]||(l[24]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("span",null,e.toDisplayString(e.unref(r)("workSchedule.fromDate"))+":",1),e.createVNode(e.unref(i.ElSlider),{modelValue:M.value,"onUpdate:modelValue":l[10]||(l[10]=a=>M.value=a),step:1,min:1,max:u.value.length},null,8,["modelValue","max"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(r)("workSchedule.with"))+":",1),e.createVNode(e.unref(i.ElSlider),{modelValue:p.value,"onUpdate:modelValue":l[11]||(l[11]=a=>p.value=a),step:1,min:0,max:19},null,8,["modelValue"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(r)("workSchedule.duration"))+":",1),e.createVNode(e.unref(i.ElSlider),{modelValue:h.value,"onUpdate:modelValue":l[12]||(l[12]=a=>h.value=a),step:1,min:4,max:e.unref(m.clamp)(p.value!==1?23-p.value:21,4,22)},null,8,["modelValue","max"]),e.createVNode(e.unref(i.ElButton),{style:{"margin-top":".5rem"},size:"small",onClick:l[13]||(l[13]=a=>oe(g.value.ids))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("workSchedule.fillOut")),1)]),_:1}),e.createVNode(e.unref(i.ElButton),{style:{"margin-top":".5rem"},size:"small",onClick:l[14]||(l[14]=a=>ne(g.value.ids))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("workSchedule.clearRow")),1)]),_:1})])):(e.openBlock(),e.createElementBlock("div",Ce,[e.createElementVNode("div",null,e.toDisplayString(K(g.value.day,g.value.ids)),1),l[25]||(l[25]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("span",null,e.toDisplayString(e.unref(r)("workSchedule.with"))+":",1),e.createVNode(e.unref(i.ElSlider),{modelValue:p.value,"onUpdate:modelValue":l[15]||(l[15]=a=>p.value=a),step:1,min:0,max:19,onChange:l[16]||(l[16]=a=>X(g.value.day,g.value.ids))},null,8,["modelValue"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(r)("workSchedule.duration"))+":",1),e.createVNode(e.unref(i.ElSlider),{modelValue:h.value,"onUpdate:modelValue":l[17]||(l[17]=a=>h.value=a),step:1,min:4,max:e.unref(m.clamp)(p.value!==1?23-p.value:21,4,22),onChange:l[18]||(l[18]=a=>X(g.value.day,g.value.ids))},null,8,["modelValue","max"]),e.createVNode(e.unref(i.ElButton),{style:{"margin-top":".5rem"},size:"small",onClick:l[19]||(l[19]=a=>ue(g.value.day,g.value.ids))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("workSchedule.delete")),1)]),_:1})]))]),_:1},8,["show","options"])])}}};module.exports=xe;
|
package/dist/WorkTable.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ref as g, watch as ye, computed as Ae, resolveComponent as we, resolveDirective as Te, createElementBlock as z, openBlock as S, createElementVNode as y, createVNode as i, createCommentVNode as _, withDirectives as Be, createBlock as F, unref as a, withCtx as v, Fragment as ie, renderList as re, createTextVNode as V, toDisplayString as h, normalizeStyle as ze } from "vue";
|
|
2
2
|
import { saveAs as Fe } from "file-saver";
|
|
3
3
|
import * as Ye from "exceljs";
|
|
4
|
-
import { p as
|
|
4
|
+
import { p as G, b as se, h as Ue, c as ke, a as Ce, d as M } from "./index-2Mx6IUGl.js";
|
|
5
5
|
import { useI18n as He } from "vue-i18n";
|
|
6
|
-
import { ElSelect as Ie, ElOption as Re, ElButton as T, ElSwitch as ve, ElSkeleton as We, ElTable as Pe, ElTableColumn as Y, ElSkeletonItem as
|
|
6
|
+
import { ElSelect as Ie, ElOption as Re, ElButton as T, ElSwitch as ve, ElSkeleton as We, ElTable as Pe, ElTableColumn as Y, ElSkeletonItem as L, ElDialog as je, ElForm as Oe, ElFormItem as Ge, ElRadioGroup as Le, ElRadioButton as ge, ElSlider as Z } from "element-plus";
|
|
7
7
|
import { ContextMenu as Ze, ContextMenuSeparator as qe } from "@imengyu/vue3-context-menu";
|
|
8
|
-
const Je = { class: "work" },
|
|
8
|
+
const Je = { class: "work" }, Qe = { class: "nav" }, Ke = { style: { height: "100px", width: "100%", display: "inline-block" } }, Xe = { style: { height: "100px", width: "100%", display: "inline-block" } }, _e = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "controls-container",
|
|
11
11
|
style: { "margin-top": ".5rem" }
|
|
@@ -26,7 +26,7 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
26
26
|
date: String
|
|
27
27
|
},
|
|
28
28
|
setup(H) {
|
|
29
|
-
const { t: d, d:
|
|
29
|
+
const { t: d, d: q } = He(), c = H, J = g(!1), n = g([
|
|
30
30
|
// { name: 'Иванов П.М. (Ведущий работник месяца)',
|
|
31
31
|
// days: [], // {day: "2024-11-01", tips: '(9:00 - 18:00)', time: 8 }
|
|
32
32
|
// contHour: 0,
|
|
@@ -39,12 +39,12 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
39
39
|
// code: '0000-00052'
|
|
40
40
|
// ids: 1
|
|
41
41
|
// }
|
|
42
|
-
]), ee = g(c.date ? (/* @__PURE__ */ new Date(c.date + "T00:00:01")).getMonth() : (/* @__PURE__ */ new Date()).getMonth()), le = g(!1), I = g([]), w = g(new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1)), u = g([]), R = g(0), k = g(9), f = g(8), Q = g(!1), me = g(!0), U = g(!1), te = g("5"), W = g(1), b = g([]), ae = g([]), N = g([]),
|
|
42
|
+
]), ee = g(c.date ? (/* @__PURE__ */ new Date(c.date + "T00:00:01")).getMonth() : (/* @__PURE__ */ new Date()).getMonth()), le = g(!1), I = g([]), w = g(new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1)), u = g([]), R = g(0), k = g(9), f = g(8), Q = g(!1), me = g(!0), U = g(!1), te = g("5"), W = g(1), b = g([]), ae = g([]), N = g([]), K = g([]), p = g({ name: "Имя", length: 0, code: "" }), P = g(!1), ne = g({
|
|
43
43
|
zIndex: 3,
|
|
44
44
|
minWidth: 230,
|
|
45
45
|
x: 500,
|
|
46
46
|
y: 200
|
|
47
|
-
}), he = g({}),
|
|
47
|
+
}), he = g({}), j = g("100%");
|
|
48
48
|
ye(b, async (l, e) => {
|
|
49
49
|
l !== e && (N.value = [], Q.value = !1, c.odata.personal.forEach((o) => {
|
|
50
50
|
l.includes(o.divisionName) && (N.value.some((r) => (r == null ? void 0 : r.activeText) === o.roleName) || N.value.push({ val: !0, activeText: o.roleName }));
|
|
@@ -54,7 +54,7 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
54
54
|
o = e - 1 <= o ? o : o + 12, console.log("currentMonth", o), w.value = new Date((/* @__PURE__ */ new Date()).getFullYear(), o, 1), ce();
|
|
55
55
|
});
|
|
56
56
|
const xe = (l, e, o, r) => {
|
|
57
|
-
p.value.ids = l.ids, p.value.key = l.key, p.value.add = l.days.length > 0 && l.days[l.days.length - 1].cont, p.value.level = e.level, p.value.day = o.cellIndex, ne.value.y = r.clientY, ne.value.x = r.clientX, e.level === 2 && e.no === 0 && c.checkEdit && (p.value.name = d("workSchedule.autocomplete"),
|
|
57
|
+
p.value.ids = l.ids, p.value.key = l.key, p.value.add = l.days.length > 0 && l.days[l.days.length - 1].cont, p.value.level = e.level, p.value.day = o.cellIndex, ne.value.y = r.clientY, ne.value.x = r.clientX, e.level === 2 && e.no === 0 && c.checkEdit && (p.value.name = d("workSchedule.autocomplete"), P.value = !0), e.level === 3 && o.cellIndex - e.no === 1 && c.checkEdit && (B(o.cellIndex, l.ids), p.value.name = d("workSchedule.modeSelection"), P.value = !0);
|
|
58
58
|
}, Se = ({ row: l, columnIndex: e }) => {
|
|
59
59
|
if (!I.value || I.value.length === 0 || !le.value) return "";
|
|
60
60
|
const o = new Date(new Date(w.value).getFullYear(), new Date(w.value).getMonth(), e).getTime() + 1e3;
|
|
@@ -71,10 +71,10 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
71
71
|
const l = he.value, e = new Date(w.value), o = new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
|
|
72
72
|
let r = [], m = 0;
|
|
73
73
|
for (let D = 1; D <= o; D++) {
|
|
74
|
-
const s =
|
|
74
|
+
const s = G(e.setDate(D), "{Y}-{m}-{dd}");
|
|
75
75
|
m += (t = l.nowork) != null && t.includes(s) || l.holidays.includes(s) ? 0 : (x = l.preholidays) != null && x.includes(s) ? 7 : 8;
|
|
76
76
|
const C = (E = l.nowork) != null && E.includes(s) ? "nowork" : l.holidays.includes(s) ? "holiday" : (A = l.preholidays) != null && A.includes(s) ? "preholiday" : "";
|
|
77
|
-
r.push({ day: D, holidays: C, weekday:
|
|
77
|
+
r.push({ day: D, holidays: C, weekday: q(new Date(e.getFullYear(), e.getMonth(), D), "day") });
|
|
78
78
|
}
|
|
79
79
|
R.value = m, u.value = r, c.odata.getPersonal({}).then((D) => {
|
|
80
80
|
var s;
|
|
@@ -88,32 +88,32 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
88
88
|
return e === -1 || m === -1 ? "" : ((x = n.value[e].days[m]) == null ? void 0 : x.tips) + `
|
|
89
89
|
` + ((E = n.value[e].days[m]) == null ? void 0 : E.time);
|
|
90
90
|
}, oe = () => {
|
|
91
|
-
n.value = [],
|
|
91
|
+
n.value = [], K.value = [], I.value = [], c.odata.personal.forEach((l) => {
|
|
92
92
|
if (b.value.includes(l.divisionName) && N.value.some((e) => e.val && e.activeText === l.roleName)) {
|
|
93
93
|
let e = se(l.employeeName);
|
|
94
|
-
|
|
94
|
+
n.value.push({ name: e + " (" + l.roleName + ")", days: [], contHour: 0, code: l.employeeKey, id: !1 });
|
|
95
95
|
}
|
|
96
96
|
}), n.value.sort((l, e) => l.name < e.name ? -1 : l.name > e.name ? 1 : 0), n.value.forEach((l, e) => {
|
|
97
|
-
l.ids = e,
|
|
98
|
-
}), c.workSchedule.getUsersYear({ code:
|
|
97
|
+
l.ids = e, K.value.push(l.code);
|
|
98
|
+
}), c.workSchedule.getUsersYear({ code: K.value, year: new Date(w.value).getFullYear() }).then((l) => {
|
|
99
99
|
l.forEach((e) => {
|
|
100
100
|
e.dateStart && I.value.push({ code: e.code, dateStart: e.dateStart, dateEnd: e.dateEnd });
|
|
101
101
|
}), be(), U.value = !1;
|
|
102
102
|
});
|
|
103
103
|
}, be = () => {
|
|
104
|
-
c.workSchedule.getWorkSchedule({ code:
|
|
104
|
+
c.workSchedule.getWorkSchedule({ code: K.value, date: G(new Date(w.value), "{Y}-{m}-{dd}") }).then(
|
|
105
105
|
(l) => {
|
|
106
106
|
l.forEach((e, o) => {
|
|
107
107
|
e !== null && (n.value[o].days = e.data.days, n.value[o].id = e.id);
|
|
108
|
-
}),
|
|
108
|
+
}), O();
|
|
109
109
|
}
|
|
110
110
|
);
|
|
111
|
-
},
|
|
111
|
+
}, O = () => {
|
|
112
112
|
n.value.forEach((l) => {
|
|
113
113
|
l.contHour = l.days.reduce((e, o) => e + o.time, 0);
|
|
114
114
|
});
|
|
115
115
|
}, De = (l) => {
|
|
116
|
-
n.value[l].days = [],
|
|
116
|
+
n.value[l].days = [], O();
|
|
117
117
|
}, Ve = (l) => {
|
|
118
118
|
switch (te.value) {
|
|
119
119
|
case "5":
|
|
@@ -136,26 +136,26 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
136
136
|
day: r,
|
|
137
137
|
time: f.value,
|
|
138
138
|
tips: `(${k.value}:00 - ${f.value >= 22 ? k.value + f.value + 2 : k.value + f.value + 1}:00)`
|
|
139
|
-
}),
|
|
139
|
+
}), O()) : o || (f.value = n.value[e].days[m].time, k.value = parseInt(n.value[e].days[m].tips.slice(1, -12)));
|
|
140
140
|
}, Ee = (l, e) => {
|
|
141
141
|
const { ind: o } = X(l, e);
|
|
142
|
-
n.value[e].days.splice(o, 1),
|
|
142
|
+
n.value[e].days.splice(o, 1), O(), document.querySelector(".app-main").click();
|
|
143
143
|
}, fe = (l, e) => {
|
|
144
144
|
const { date: o, ind: r } = X(l, e);
|
|
145
145
|
n.value[e].days[r] = {
|
|
146
146
|
day: o,
|
|
147
147
|
time: f.value,
|
|
148
148
|
tips: `(${k.value}:00 - ${f.value >= 22 ? k.value + f.value + 2 : k.value + f.value + 1}:00)`
|
|
149
|
-
},
|
|
149
|
+
}, O();
|
|
150
150
|
}, X = (l, e) => {
|
|
151
151
|
var m;
|
|
152
|
-
const o =
|
|
152
|
+
const o = G(new Date(w.value).setDate(l), "{Y}-{m}-{dd}"), r = (m = n.value[e]) == null ? void 0 : m.days.findIndex((t) => t.day === o);
|
|
153
153
|
return { date: o, ind: r };
|
|
154
154
|
}, Me = async () => {
|
|
155
155
|
var D;
|
|
156
|
-
|
|
157
|
-
const l = new Ye.Workbook(), e = l.addWorksheet(
|
|
158
|
-
e.mergeCells(`A1:${M("A1", u.value.length + 5)}1`), e.mergeCells(`A2:${M("A2", u.value.length + 5)}2`), e.mergeCells("A3:A4"), e.mergeCells(`B3:${M("B3", u.value.length)}3`), e.mergeCells(`${M("B3", u.value.length + 1)}3:${M("B3", u.value.length + 2)}3`), e.mergeCells(`${M("B3", u.value.length + 3)}3:${M("B4", u.value.length + 3)}4`), e.mergeCells(`${M("B3", u.value.length + 4)}3:${M("B4", u.value.length + 4)}4`), e.getCell("A1").value = d("workSchedule.firm"), e.getCell("A2").value = d("workSchedule.title", { name: b.value[0] }) +
|
|
156
|
+
J.value = !0;
|
|
157
|
+
const l = new Ye.Workbook(), e = l.addWorksheet(q(w.value, "month"), { pageSetup: { paperSize: 9, orientation: "landscape", fitToPage: !0 } }), o = { vertical: "middle", horizontal: "center" }, r = { top: { style: "thin" }, left: { style: "thin" }, bottom: { style: "thin" }, right: { style: "thin" } }, m = { vertical: "middle", horizontal: "center", wrapText: !0 };
|
|
158
|
+
e.mergeCells(`A1:${M("A1", u.value.length + 5)}1`), e.mergeCells(`A2:${M("A2", u.value.length + 5)}2`), e.mergeCells("A3:A4"), e.mergeCells(`B3:${M("B3", u.value.length)}3`), e.mergeCells(`${M("B3", u.value.length + 1)}3:${M("B3", u.value.length + 2)}3`), e.mergeCells(`${M("B3", u.value.length + 3)}3:${M("B4", u.value.length + 3)}4`), e.mergeCells(`${M("B3", u.value.length + 4)}3:${M("B4", u.value.length + 4)}4`), e.getCell("A1").value = d("workSchedule.firm"), e.getCell("A2").value = d("workSchedule.title", { name: b.value[0] }) + q(w.value, "month") + ` ${new Date(w.value).getFullYear()}`, e.getCell("A3").value = d("workSchedule.month"), e.getCell("B3").value = d("workSchedule.numbersMonth"), e.getCell(3, u.value.length + 2).value = d("workSchedule.onSchedule"), e.getCell(3, u.value.length + 4).value = d("workSchedule.acquainted"), e.getCell(3, u.value.length + 5).value = d("workSchedule.date"), e.getCell(4, u.value.length + 2).value = d("workSchedule.days"), e.getCell(4, u.value.length + 3).value = `${d("workSchedule.hours")} (${R.value})`;
|
|
159
159
|
for (let s = 2; s <= u.value.length + 1; s++)
|
|
160
160
|
e.getCell(4, s).value = u.value[s - 2].weekday + `
|
|
161
161
|
` + (s - 1), e.getColumn(s).width = 6, e.getColumn(s).alignment = m, e.getCell(4, s).border = r;
|
|
@@ -175,17 +175,17 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
175
175
|
c.odata.personal.forEach((s) => {
|
|
176
176
|
s.roleName === "Начальник отдела правовой и кадровой работы" && (x = s.employeeName);
|
|
177
177
|
}), e.mergeCells(`A${n.value.length + 6}:P${n.value.length + 6}`), e.mergeCells(`Q${n.value.length + 6}:AG${n.value.length + 6}`), e.mergeCells(`B${n.value.length + 8}:E${n.value.length + 8}`), e.mergeCells(`F${n.value.length + 8}:L${n.value.length + 8}`), e.mergeCells(`M${n.value.length + 8}:P${n.value.length + 8}`), e.mergeCells(`S${n.value.length + 8}:V${n.value.length + 8}`), e.mergeCells(`W${n.value.length + 8}:AC${n.value.length + 8}`), e.mergeCells(`AD${n.value.length + 8}:AG${n.value.length + 8}`), e.mergeCells(`Z${n.value.length + 9}:AA${n.value.length + 9}`), e.getCell(`A${n.value.length + 6}`).value = d("workSchedule.byInitials"), e.getCell(`Q${n.value.length + 6}`).value = d("workSchedule.supervisorHR"), e.getCell(`B${n.value.length + 8}`).value = d("workSchedule.compiled") + ":", e.getCell(`S${n.value.length + 8}`).value = d("workSchedule.approved") + ":", e.getCell(`M${n.value.length + 8}`).value = se(c.fullName), e.getCell(`AD${n.value.length + 8}`).value = se(x), e.getCell(`Z${n.value.length + 9}`).value = d("workSchedule.printPlace"), e.getCell(`A${n.value.length + 6}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`Q${n.value.length + 6}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`B${n.value.length + 8}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`F${n.value.length + 8}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`M${n.value.length + 8}`).alignment = { vertical: "middle", horizontal: "left" }, e.getCell(`AD${n.value.length + 8}`).alignment = { vertical: "middle", horizontal: "left" }, e.getCell(`Z${n.value.length + 9}`).alignment = o, e.getCell(`F${n.value.length + 8}`).border = { bottom: { style: "thin" } }, e.getCell(`W${n.value.length + 8}`).border = { bottom: { style: "thin" } };
|
|
178
|
-
const E = "export_" +
|
|
179
|
-
Fe(new Blob([A]), E),
|
|
178
|
+
const E = "export_" + G(Date.now(), "{dd}.{m}.{Y}") + ".xlsx", A = await l.xlsx.writeBuffer();
|
|
179
|
+
Fe(new Blob([A]), E), J.value = !1;
|
|
180
180
|
}, Ne = async () => {
|
|
181
|
-
Q.value || c.workSchedule.addWorkSchedule({ data: n.value, date:
|
|
181
|
+
Q.value || c.workSchedule.addWorkSchedule({ data: n.value, date: G(new Date(w.value), "{Y}-{m}-{dd}"), group: b.value[0] }).then((l) => Q.value = l);
|
|
182
182
|
};
|
|
183
183
|
return console.log("props.group", c.group), console.log("props.date", c.date), c.group && (b.value[0] = c.group), c.date && (w.value = /* @__PURE__ */ new Date(c.date + "T00:00:01")), Ue().then((l) => {
|
|
184
184
|
he.value = l, ce();
|
|
185
185
|
}), (l, e) => {
|
|
186
186
|
const o = we("el-date-picker"), r = we("svg-icon"), m = Te("loading");
|
|
187
187
|
return S(), z("div", Je, [
|
|
188
|
-
y("div",
|
|
188
|
+
y("div", Qe, [
|
|
189
189
|
H.checkEdit ? (S(), F(a(Ie), {
|
|
190
190
|
key: 0,
|
|
191
191
|
modelValue: b.value,
|
|
@@ -225,8 +225,8 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
225
225
|
}, null, 8, ["modelValue"]),
|
|
226
226
|
e[21] || (e[21] = y("div", { class: "expander" }, null, -1)),
|
|
227
227
|
i(a(ve), {
|
|
228
|
-
modelValue:
|
|
229
|
-
"onUpdate:modelValue": e[3] || (e[3] = (t) =>
|
|
228
|
+
modelValue: j.value,
|
|
229
|
+
"onUpdate:modelValue": e[3] || (e[3] = (t) => j.value = t),
|
|
230
230
|
"active-text": l.$t("bids.currentHeight"),
|
|
231
231
|
"active-value": "100%",
|
|
232
232
|
"inactive-value": "calc(100vh - var(--el-component-size)*5 - var(--el-main-padding)*2 - var(--header-height))"
|
|
@@ -245,23 +245,23 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
245
245
|
animated: ""
|
|
246
246
|
}, {
|
|
247
247
|
template: v(() => [
|
|
248
|
-
i(a(
|
|
248
|
+
i(a(L), {
|
|
249
249
|
variant: "text",
|
|
250
250
|
style: { width: "100%", height: "2rem" }
|
|
251
251
|
}),
|
|
252
|
-
i(a(
|
|
252
|
+
i(a(L), {
|
|
253
253
|
variant: "text",
|
|
254
254
|
style: { width: "180px", height: "4rem", "margin-right": "4px" }
|
|
255
255
|
}),
|
|
256
|
-
i(a(
|
|
256
|
+
i(a(L), {
|
|
257
257
|
variant: "text",
|
|
258
258
|
style: { width: "calc( 100% - 184px)", height: "4rem" }
|
|
259
259
|
}),
|
|
260
|
-
i(a(
|
|
260
|
+
i(a(L), {
|
|
261
261
|
variant: "text",
|
|
262
262
|
style: { width: "180px", height: "8rem", "margin-right": "4px" }
|
|
263
263
|
}),
|
|
264
|
-
i(a(
|
|
264
|
+
i(a(L), {
|
|
265
265
|
variant: "text",
|
|
266
266
|
style: { width: "calc( 100% - 184px)", height: "8rem" }
|
|
267
267
|
})
|
|
@@ -271,7 +271,7 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
271
271
|
id: "printTable",
|
|
272
272
|
data: n.value,
|
|
273
273
|
style: { width: "100%" },
|
|
274
|
-
"max-height":
|
|
274
|
+
"max-height": j.value,
|
|
275
275
|
size: "small",
|
|
276
276
|
align: "center",
|
|
277
277
|
onCellClick: xe,
|
|
@@ -280,7 +280,7 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
280
280
|
}, {
|
|
281
281
|
default: v(() => [
|
|
282
282
|
i(a(Y), {
|
|
283
|
-
label: a(d)("workSchedule.title", { name: b.value[0] }) + a(
|
|
283
|
+
label: a(d)("workSchedule.title", { name: b.value[0] }) + a(q)(w.value, "month") + ` ${new Date(w.value).getFullYear()}`,
|
|
284
284
|
align: "center",
|
|
285
285
|
height: "34"
|
|
286
286
|
}, {
|
|
@@ -289,10 +289,10 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
289
289
|
label: a(d)("workSchedule.month"),
|
|
290
290
|
width: "180",
|
|
291
291
|
align: "center",
|
|
292
|
-
fixed:
|
|
292
|
+
fixed: j.value !== "100%"
|
|
293
293
|
}, {
|
|
294
294
|
default: v((t) => [
|
|
295
|
-
y("div",
|
|
295
|
+
y("div", Ke, h(n.value[t.$index].name), 1)
|
|
296
296
|
]),
|
|
297
297
|
_: 1
|
|
298
298
|
}, 8, ["label", "fixed"]),
|
|
@@ -321,7 +321,7 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
321
321
|
i(a(Y), {
|
|
322
322
|
label: a(d)("workSchedule.onSchedule"),
|
|
323
323
|
align: "center",
|
|
324
|
-
fixed:
|
|
324
|
+
fixed: j.value !== "100%" ? "right" : !1
|
|
325
325
|
}, {
|
|
326
326
|
default: v(() => [
|
|
327
327
|
i(a(Y), {
|
|
@@ -372,7 +372,7 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
372
372
|
y("span", null, h(H.fullName), 1)
|
|
373
373
|
])) : _("", !0),
|
|
374
374
|
Be((S(), F(a(T), {
|
|
375
|
-
disabled:
|
|
375
|
+
disabled: J.value,
|
|
376
376
|
plain: "",
|
|
377
377
|
onClick: Me,
|
|
378
378
|
style: { "margin-top": ".5rem" }
|
|
@@ -382,7 +382,7 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
382
382
|
]),
|
|
383
383
|
_: 1
|
|
384
384
|
}, 8, ["disabled"])), [
|
|
385
|
-
[m,
|
|
385
|
+
[m, J.value]
|
|
386
386
|
]),
|
|
387
387
|
i(a(je), {
|
|
388
388
|
title: a(d)("workSchedule.jobTitle"),
|
|
@@ -437,14 +437,14 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
437
437
|
_: 1
|
|
438
438
|
}, 8, ["title", "modelValue"]),
|
|
439
439
|
i(a(Ze), {
|
|
440
|
-
show:
|
|
441
|
-
"onUpdate:show": e[20] || (e[20] = (t) =>
|
|
440
|
+
show: P.value,
|
|
441
|
+
"onUpdate:show": e[20] || (e[20] = (t) => P.value = t),
|
|
442
442
|
options: ne.value
|
|
443
443
|
}, {
|
|
444
444
|
default: v(() => [
|
|
445
445
|
y("div", {
|
|
446
446
|
class: "mx-context-menu-item",
|
|
447
|
-
onClick: e[8] || (e[8] = (t) =>
|
|
447
|
+
onClick: e[8] || (e[8] = (t) => P.value = !1)
|
|
448
448
|
}, [
|
|
449
449
|
y("span", el, h(p.value.name), 1),
|
|
450
450
|
e[23] || (e[23] = y("div", { class: "expander" }, null, -1)),
|
|
@@ -475,7 +475,7 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
475
475
|
}, 8, ["modelValue"]),
|
|
476
476
|
e[24] || (e[24] = y("br", null, null, -1)),
|
|
477
477
|
y("span", null, h(a(d)("workSchedule.fromDate")) + ":", 1),
|
|
478
|
-
i(a(
|
|
478
|
+
i(a(Z), {
|
|
479
479
|
modelValue: W.value,
|
|
480
480
|
"onUpdate:modelValue": e[10] || (e[10] = (t) => W.value = t),
|
|
481
481
|
step: 1,
|
|
@@ -483,7 +483,7 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
483
483
|
max: u.value.length
|
|
484
484
|
}, null, 8, ["modelValue", "max"]),
|
|
485
485
|
y("span", null, h(a(d)("workSchedule.with")) + ":", 1),
|
|
486
|
-
i(a(
|
|
486
|
+
i(a(Z), {
|
|
487
487
|
modelValue: k.value,
|
|
488
488
|
"onUpdate:modelValue": e[11] || (e[11] = (t) => k.value = t),
|
|
489
489
|
step: 1,
|
|
@@ -491,7 +491,7 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
491
491
|
max: 19
|
|
492
492
|
}, null, 8, ["modelValue"]),
|
|
493
493
|
y("span", null, h(a(d)("workSchedule.duration")) + ":", 1),
|
|
494
|
-
i(a(
|
|
494
|
+
i(a(Z), {
|
|
495
495
|
modelValue: f.value,
|
|
496
496
|
"onUpdate:modelValue": e[12] || (e[12] = (t) => f.value = t),
|
|
497
497
|
step: 1,
|
|
@@ -522,7 +522,7 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
522
522
|
y("div", null, h(pe(p.value.day, p.value.ids)), 1),
|
|
523
523
|
e[25] || (e[25] = y("br", null, null, -1)),
|
|
524
524
|
y("span", null, h(a(d)("workSchedule.with")) + ":", 1),
|
|
525
|
-
i(a(
|
|
525
|
+
i(a(Z), {
|
|
526
526
|
modelValue: k.value,
|
|
527
527
|
"onUpdate:modelValue": e[15] || (e[15] = (t) => k.value = t),
|
|
528
528
|
step: 1,
|
|
@@ -531,7 +531,7 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
531
531
|
onChange: e[16] || (e[16] = (t) => fe(p.value.day, p.value.ids))
|
|
532
532
|
}, null, 8, ["modelValue"]),
|
|
533
533
|
y("span", null, h(a(d)("workSchedule.duration")) + ":", 1),
|
|
534
|
-
i(a(
|
|
534
|
+
i(a(Z), {
|
|
535
535
|
modelValue: f.value,
|
|
536
536
|
"onUpdate:modelValue": e[17] || (e[17] = (t) => f.value = t),
|
|
537
537
|
step: 1,
|
package/dist/employees.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.work>.nav{display:flex;gap:.5rem;margin-bottom:.5rem;flex-wrap:wrap;align-items:center}.work>.nav .expander{display:inline-block;height:1em;width:1em;flex-grow:3}.wrapper[data-v-d1aa0363]{display:flex}.wrapper .month_year[data-v-d1aa0363]{display:flex;justify-content:space-around;align-items:center}.wrapper .month_year span:not(.text) button[data-v-d1aa0363]{font-size:1.3em}.wrapper>div[data-v-d1aa0363]:not(:first-child){margin-left:2rem}.wrapper button[data-v-d1aa0363]{height:30px;text-align:center;line-height:30px;cursor:pointer;background:none;border:none;border-radius:.2rem;transition:all .3s ease}.wrapper button[data-v-d1aa0363]:hover:not(.disabled):not(.active){color:var(--el-color-success)}.wrapper .week[data-v-d1aa0363]{border-bottom:1px solid var(--el-color-info);margin-bottom:.5rem}.wrapper .month[data-v-d1aa0363],.wrapper .week[data-v-d1aa0363]{width:250px;display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr;gap:.2rem}.wrapper .month>button[data-v-d1aa0363],.wrapper .week>button[data-v-d1aa0363]{width:30px}.wrapper .month>button.disabled[data-v-d1aa0363],.wrapper .week>button.disabled[data-v-d1aa0363]{color:var(--el-color-info);cursor:not-allowed}.wrapper .month>button.preholiday[data-v-d1aa0363],.wrapper .week>button.preholiday[data-v-d1aa0363]{background-color:#ffe78070}.wrapper .month>button.weekend[data-v-d1aa0363],.wrapper .week>button.weekend[data-v-d1aa0363]{background-color:#ff808070}.wrapper .month>button.select[data-v-d1aa0363],.wrapper .week>button.select[data-v-d1aa0363]{background-color:#007bff70}.wrapper .month>button.holiday[data-v-d1aa0363],.wrapper .week>button.holiday[data-v-d1aa0363]{background-color:red}.wrapper .month>button.nowork[data-v-d1aa0363],.wrapper .week>button.nowork[data-v-d1aa0363]{background-color:red}.wrapper .month>button.active[data-v-d1aa0363],.wrapper .week>button.active[data-v-d1aa0363]{background-color:#007bff}.noBorder .el-input__wrapper{box-shadow:none}.wrap .mx-context-menu-item{flex-wrap:wrap;max-width:250px}.turn{writing-mode:vertical-rl;text-orientation:sideways;border-left:var(--el-table-border);transform:rotate(180deg)}.el-table tbody .cell{padding:0 1px}.nav{display:flex;gap:.5rem;margin-bottom:.5rem;flex-wrap:wrap;align-items:center}.nav .expander{display:inline-block;height:1em;width:1em;flex-grow:3}.sw-popover{min-width:20rem;width:50%;background:var(--el-bg-color);border-radius:var(--el-border-radius-base);box-shadow:var(--el-box-shadow);padding:1rem;overflow-wrap:break-word;border:none}.sw-popover>header{padding-bottom:1rem;line-height:var(--el-font-line-height-primary);font-size:var(--el-font-size-large);color:var(--el-text-color-primary)}.sw-popover>footer{padding-top:1rem;text-align:right;box-sizing:border-box}
|
|
1
|
+
@charset "UTF-8";.work>.nav{display:flex;gap:.5rem;margin-bottom:.5rem;flex-wrap:wrap;align-items:center}.work>.nav .expander{display:inline-block;height:1em;width:1em;flex-grow:3}.wrap .mx-context-menu-item{flex-wrap:wrap;max-width:250px}.turn{writing-mode:vertical-rl;text-orientation:sideways;border-left:var(--el-table-border);transform:rotate(180deg)}.el-table tbody .cell{padding:0 1px}.nav{display:flex;gap:.5rem;margin-bottom:.5rem;flex-wrap:wrap;align-items:center}.nav .expander{display:inline-block;height:1em;width:1em;flex-grow:3}.sw-popover{min-width:20rem;width:50%;background:var(--el-bg-color);border-radius:var(--el-border-radius-base);box-shadow:var(--el-box-shadow);padding:1rem;overflow-wrap:break-word;border:none}.sw-popover>header{padding-bottom:1rem;line-height:var(--el-font-line-height-primary);font-size:var(--el-font-size-large);color:var(--el-text-color-primary)}.sw-popover>footer{padding-top:1rem;text-align:right;box-sizing:border-box}:root{--sw-color-default: #DFDFDF;--sw-color-primary: #3EAF4E;--sw-color-success: #75C6ff;--sw-color-info: #C0C0C0;--sw-color-warning: #FF7A00;--sw-color-danger: #CC2D4A;--sw-color-preholiday: #FFE78070;--sw-color-weekend: #ff808070;--sw-color-select: #007bff70;--sw-color-holiday: #ff0000;--sw-color-nowork: #ff0000;--sw-color-active: #5aaaff;--sw-text-color-primary: #333333;--sw-text-color-secondary: #4C4C4C;--sw-text-color-third: #818181;--sw-text-color-revers: white;--sw-bg-color: #f4f4f4;--sw-bg-color-page: white;--sw-bg-color-second: #FAFAFA;--sw-bg-color-glass: rgba(133, 133, 133, .45);--sw-border-color: #D6D6D6;--sw-border-color-input: #CECECE;--sw-font-size: 1rem;--sw-font-size-small: .875rem;--sw-font-size-large: 1.125rem;--sw-font-size-big: 2.8rem;--sw-border-radius: .625rem;--sw-border-radius-small: .25rem;--sw-border-round: 3.625rem;--sw-component-size-base: 3rem;--sw-component-size-small: 1.625rem;--sw-component-size-large: 3.5rem;--sw-component-size-big: 10.5rem;--sw-track-thickness: .375rem;--sw-border-thickness: .125rem;font-family:Montserrat,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color:var(--sw-text-color-primary);background-color:var(--sw-bg-color);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:root.dark{--sw-color-default: #4E4E4E;--sw-color-primary: #38A151;--sw-color-success: #0d588d;--sw-color-info: #808185;--sw-color-warning: #FF7A00;--sw-color-danger: #CC2D4A;--sw-color-active: #007bff;--sw-text-color-primary: white;--sw-text-color-secondary: #FAFAFA;--sw-text-color-third: #FAFAFA;--sw-text-color-revers: white;--sw-bg-color: #182127;--sw-bg-color-page: #323741;--sw-bg-color-second: #232832;--sw-bg-color-glass: rgba(27, 33, 39, .55);--sw-border-color: #4E4E4E;--sw-border-color-input: #5C5E63;--sw-shadow: 0 100px 80px rgba(0, 0, 0, .03), 0 41.7776px 33.4221px rgba(0, 0, 0, .0215656), 0 22.3363px 17.869px rgba(0, 0, 0, .0178832), 0 12.5216px 10.0172px rgba(0, 0, 0, .015), 0 6.6501px 5.32008px rgba(0, 0, 0, .0121168), 0 2.76726px 2.21381px rgba(0, 0, 0, .00843437)}@media (prefers-color-scheme: dark){:root:not(.light){--sw-color-default: #4E4E4E;--sw-color-primary: #38A151;--sw-color-success: #0d588d;--sw-color-info: #808185;--sw-color-warning: #FF7A00;--sw-color-danger: #CC2D4A;--sw-color-active: #007bff;--sw-text-color-primary: white;--sw-text-color-secondary: #FAFAFA;--sw-text-color-third: #FAFAFA;--sw-text-color-revers: white;--sw-bg-color: #182127;--sw-bg-color-page: #323741;--sw-bg-color-second: #232832;--sw-bg-color-glass: rgba(27, 33, 39, .55);--sw-border-color: #4E4E4E;--sw-border-color-input: #5C5E63;--sw-shadow: 0 100px 80px rgba(0, 0, 0, .03), 0 41.7776px 33.4221px rgba(0, 0, 0, .0215656), 0 22.3363px 17.869px rgba(0, 0, 0, .0178832), 0 12.5216px 10.0172px rgba(0, 0, 0, .015), 0 6.6501px 5.32008px rgba(0, 0, 0, .0121168), 0 2.76726px 2.21381px rgba(0, 0, 0, .00843437)}}.sw-alert-wrapper{position:fixed;background:none;border:none;top:max(env(safe-area-inset-top,0rem),env(titlebar-area-y,0rem))}.sw-alert-wrapper .sw-alert{padding:.625rem 1rem;margin:1rem auto 0;border-radius:var(--sw-border-radius);color:var(--sw-text-color-revers)}.sw-alert-wrapper .sw-alert .svg-icon{flex-shrink:0}.sw-alert-wrapper .sw-alert .svg-icon:first-child{margin-right:1rem}.sw-alert-wrapper .sw-alert .fade-enter-active,.sw-alert-wrapper .sw-alert .fade-leave-active{transition:opacity .5s}.sw-alert-wrapper .sw-alert .fade-enter-from,.sw-alert-wrapper .sw-alert .fade-leave-to{opacity:0}.sw-alert-wrapper .sw-alert footer{display:flex;justify-content:flex-end}.sw-tabs{-webkit-user-select:none;user-select:none}.sw-tabs>header{display:flex;border-bottom:2px solid var(--sw-color-info);color:var(--sw-color-info);-webkit-user-select:none;user-select:none;font-size:var(--sw-font-size-small);font-weight:400;margin-bottom:1.25rem;transition:all .6s ease-out}.sw-tabs>header span{position:relative;top:2px;border-radius:0;padding:5px;cursor:pointer;border:none;background:none;outline:none}.sw-tabs>header span.active{border-bottom:2px solid var(--sw-color-primary);color:var(--sw-color-primary);font-weight:700}.sw-tabs>header span:hover:not(.active){color:var(--sw-border-color)}.sw-input{display:flex;align-items:center;position:relative;gap:0 1.75rem;padding:0 1.2em;border:1px solid var(--sw-border-color-input);border-radius:var(--sw-border-radius)}.sw-input>label{text-align:left;transition:all .2s .2s linear;position:absolute;font-size:var(--sw-font-size-large);line-height:1;top:1.1rem;background:var(--sw-bg-color-page)}.sw-input>label:hover{top:.8rem}.sw-input>label+input::placeholder{opacity:0}.sw-input>input{line-height:var(--sw-component-size-base);border:none;width:100%;font-size:var(--sw-font-size-large);background:none;outline:none}.sw-input>input::placeholder{color:var(--sw-text-color-secondary);opacity:1;transition:opacity .2s .2s linear}.sw-input>input:focus::placeholder{opacity:1}.sw-input .svg-icon{font-size:20px;color:var(--sw-text-color-third)}.sw-input>svg+label{left:4rem}.sw-input.sw-small label{top:.3rem}.sw-input.sw-small label:hover{top:0}.sw-input.sw-small input{line-height:var(--sw-component-size-small)}.sw-input.sw-large label{top:1.22rem}.sw-input.sw-large label:hover{top:1rem}.sw-input.sw-large input{line-height:var(--sw-component-size-large)}.sw-button{border-radius:1rem;border:1px solid var(--sw-color-default);padding:0 1.2em;min-height:var(--sw-component-size-base);font-size:var(--sw-font-size);font-weight:500;cursor:pointer;transition:border-color .25s;background-color:var(--sw-color-default);color:var(--sw-text-color-revers)}.sw-form-item{display:flex;justify-content:space-between;font-size:var(--sw-font-size-small);color:var(--sw-text-color-secondary);gap:1rem}.sw-form-item.sw-start{justify-content:flex-start}.sw-form-item.sw-end{justify-content:flex-end}.sw-form-item.sw-around{justify-content:space-around}.sw-form-item.sw-center{justify-content:center}.sw-dropdown{position:relative;display:inline-block;outline:none}.sw-dropdown-popup{z-index:3;padding:8px;min-width:200px;margin:0;-webkit-user-select:none;user-select:none;background-color:var(--sw-bg-color-second);border:1px solid var(--sw-border-color);border-radius:4px;box-shadow:0 2px 8px #0000001a}.sw-dropdown-popup.gide>header,.sw-dropdown-popup.gide>footer{display:flex;justify-content:space-between;align-items:center}.sw-dropdown-popup.gide>header .sw-button,.sw-dropdown-popup.gide>footer .sw-button{font-size:var(--sw-font-size-large);padding:.3em}.sw-dropdown-popup.gide>footer .sw-button{padding:.1em .6em}.sw-dropdown-popup.gide img{position:absolute;height:160px;right:-100px}.sw-dropdown-popup.gide img.reflect{left:-100px}.sw-dropdown-item{display:block;outline:none;-webkit-user-select:none;user-select:none}.sw-dropdown-item svg{margin-right:.5rem}.sw-dropdown-item:hover{color:var(--sw-color-primary)}.sw-collapse{transition:all .3s ease-out;overflow:hidden;box-sizing:border-box;margin:0;will-change:max-height}.sw-slider{position:relative;width:100%;height:var(--sw-component-size-small);cursor:pointer;-webkit-user-select:none;user-select:none}.sw-slider:not(.vertical) .track{height:var(--sw-track-thickness);width:100%;top:50%;left:0;transform:translateY(-50%)}.sw-slider.vertical{width:var(--sw-component-size-small);height:200px}.sw-slider.vertical .track{width:var(--sw-track-thickness);height:100%;left:50%;top:0;transform:translate(-50%)}.sw-slider .track{position:absolute;background:var(--sw-border-color);border-radius:var(--sw-border-radius-small)}.sw-slider .track .fill{background:var(--sw-color-primary);border-radius:var(--sw-border-radius-small);transition:all .1s ease;position:absolute;height:100%;width:100%}.sw-slider .thumb{position:absolute;width:var(--sw-component-size-small);height:var(--sw-component-size-small);background:var(--sw-bg-color-page);border:var(--sw-border-thickness) solid var(--sw-color-primary);box-sizing:border-box;border-radius:var(--sw-border-round);cursor:grab;box-shadow:0 2px 4px #0003;transition:all .2s;text-align:center;transform:translate(-50%,-50%);left:50%;top:50%;color:var(--sw-color-primary);line-height:calc(var(--sw-component-size-small) - var(--sw-border-thickness) * 2)}.sw-slider .thumb:hover,.sw-slider .thumb:active{transform:translate(-50%,-50%) scale(1.1)}.sw-slider .thumb>*{width:calc(var(--sw-component-size-small) - var(--sw-border-thickness) * 2);height:calc(var(--sw-component-size-small) - var(--sw-border-thickness) * 2)}.sw-slider .thumb .tooltip{position:absolute;background:var(--sw-bg-color-page);color:var(--sw-text-color-primary);padding:0;box-shadow:var(--sw-shadow);font-size:var(--sw-font-size-small);white-space:nowrap;z-index:10;left:50%;transform:translate(-50%)}.sw-slider .thumb .tooltip.tooltip-vertical{top:50%;left:auto;transform:translateY(-50%)}.sw-switch{display:inline-flex;align-items:center;box-sizing:border-box;-webkit-user-select:none;user-select:none}.sw-switch>input{display:none}.sw-switch>input:checked+label{background-color:var(--sw-color-primary)}.sw-switch>input:checked+label:before{color:var(--sw-text-color-revers);content:attr(data-onlabel);left:.5rem;right:auto}.sw-switch>input:checked+label:after{background:#f7f7f7;left:2.125rem}.sw-switch>label{background-color:var(--sw-color-info);border-radius:1rem;cursor:pointer;flex:0 0 4rem;height:1.75rem;margin:.5rem;position:relative;transition:all .3s;width:4rem}.sw-switch>label:before{color:var(--sw-text-color-revers);content:attr(data-offlabel);display:block;font-size:1rem;position:absolute;right:.5rem;transition:all .3s}.sw-switch>label:after{background:var(--sw-text-color-revers);border:1px solid var(--sw-color-info);border-radius:50%;content:"";height:2rem;left:-.125rem;position:absolute;top:-.125rem;transition:all .3s;width:2rem}.sw-switch.sw-small>label{width:3.125rem;flex:0 0 3.125rem}.sw-switch.sw-small>label:before{content:""}.sw-switch.sw-small>label:after{content:"";left:.15rem;top:.125rem;width:1.375rem;height:1.375rem}.sw-switch.sw-small>input:checked+label:before{content:""}.sw-switch.sw-small>input:checked+label:after{left:1.475rem}.sw-switch.sw-checkbox label{border-radius:var(--sw-border-radius-small);background:var(--sw-bg-color-pag);border:1px solid var(--sw-border-color-input);height:.875rem;flex:0 0 .875rem}.sw-switch.sw-checkbox label:after{content:none}.sw-switch.sw-checkbox>input:checked+label{background:var(--sw-bg-color-page);color:var(--sw-color-primary)}.sw-switch.sw-checkbox>input:checked+label:before{content:"✔";width:1em;top:-.9rem;left:0;text-rendering:geometricPrecision;white-space:nowrap;font-size:1.6rem}.sw-skeleton{display:flex;gap:.5rem;flex-wrap:wrap;align-items:flex-end}.sw-skeleton-item{min-height:var(--sw-component-size-base);width:100%;background:var(--sw-bg-color-second);border-radius:var(--sw-border-radius);border:1px solid var(--sw-bg-color);box-sizing:border-box;overflow:hidden;position:relative}.sw-skeleton-item>div{height:100%;width:10px;background:var(--sw-border-color-input);display:inline-block;animation:sw-skeleton 3s linear infinite normal;position:absolute;transform:skew(-20deg);box-shadow:0 0 20px 20px var(--sw-border-color-input)}.sw-message{background-color:var(--sw-bg-color-page);border:1px solid var(--sw-border-color);border-radius:var(--sw-border-radius);padding:1.875rem;box-sizing:border-box;top:50%;left:50%;transform:translateY(-50%) translate(-50%);min-width:16rem;max-width:95%;max-height:95%;overflow-y:auto}.sw-message::backdrop{background:var(--sw-bg-color-glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.sw-message>header{display:flex;justify-content:space-between;gap:.5rem;margin-bottom:.5rem}.sw-message>footer{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.5rem;flex-wrap:wrap}.sw-modal-footer{margin-top:1rem;display:flex;gap:.5rem;justify-content:flex-end}.sw-data-picker{display:flex;flex-wrap:wrap;justify-content:center;gap:2rem}.sw-data-picker .month_year{display:flex;justify-content:space-around;align-items:center}.sw-data-picker .month_year span:not(.text) button{font-size:1.3em}.sw-data-picker button{color:var(--sw-text-color-primary);height:30px;text-align:center;line-height:30px;cursor:pointer;background:none;border:none;border-radius:.2rem;transition:all .3s ease}.sw-data-picker button:hover:not(.disabled):not(.active){color:var(--sw-color-primary)}.sw-data-picker .week{border-bottom:1px solid var(--sw-color-info);margin-bottom:.5rem}.sw-data-picker .month,.sw-data-picker .week{width:250px;display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr;gap:.2rem}.sw-data-picker .month>button,.sw-data-picker .week>button{width:30px}.sw-data-picker .month>button.disabled,.sw-data-picker .week>button.disabled{color:var(--sw-color-info);cursor:not-allowed}.sw-data-picker .month>button.preholiday,.sw-data-picker .week>button.preholiday{background-color:var(--sw-color-preholiday)}.sw-data-picker .month>button.weekend,.sw-data-picker .week>button.weekend{background-color:var(--sw-color-weekend)}.sw-data-picker .month>button.select,.sw-data-picker .week>button.select{background-color:var(--sw-color-select)}.sw-data-picker .month>button.holiday,.sw-data-picker .week>button.holiday{background-color:var(--sw-color-holiday)}.sw-data-picker .month>button.nowork,.sw-data-picker .week>button.nowork{background-color:var(--sw-color-nowork)}.sw-data-picker .month>button.active,.sw-data-picker .week>button.active{background-color:var(--sw-color-active)}.sw-data-picker .year{width:250px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:.2rem;border-top:1px solid var(--sw-color-info)}.sw-data-picker .year>button.disabled{color:var(--sw-color-info);cursor:not-allowed}.sw-data-picker .year>button.active{color:var(--sw-color-active)}.sw-gide{display:grid;width:100%;height:100%;position:absolute;top:0;left:0;z-index:1;grid-template-rows:40% 0 1fr;grid-template-columns:1fr 0 1fr;overflow-x:hidden;grid-template-areas:"overlay0 overlay0 overlay0" "overlay1 windows overlay2" "overlay3 overlay3 overlay3"}.sw-gide .hole{height:100%}.sw-gide .overlay0,.sw-gide .overlay1,.sw-gide .overlay2,.sw-gide .overlay3{grid-area:overlay0;background:var(--sw-bg-color-glass);-webkit-backdrop-filter:blur(.8rem);backdrop-filter:blur(.8rem)}.sw-gide .overlay1{grid-area:overlay1}.sw-gide .overlay2{grid-area:overlay2}.sw-gide .overlay3{grid-area:overlay3}.sw-revers{transform:scaleX(-1)}.sw-round{border-radius:var(--sw-border-round)}.sw-small{min-height:var(--sw-component-size-small)}.sw-large{min-height:var(--sw-component-size-large)}.sw-big{min-height:var(--sw-component-size-big)}.sw-primary{background-color:var(--sw-color-primary);border-color:var(--sw-color-primary)}.sw-success{background-color:var(--sw-color-success);border-color:var(--sw-color-success)}.sw-info{background-color:var(--sw-color-info);border-color:var(--sw-color-info)}.sw-warning{background-color:var(--sw-color-warning);border-color:var(--sw-color-warning)}.sw-danger{background-color:var(--sw-color-danger);border-color:var(--sw-color-danger)}.sw-text{color:var(--sw-color-default);background:none}.sw-text.sw-primary{color:var(--sw-color-primary)}.sw-text.sw-success{color:var(--sw-color-success)}.sw-text.sw-info{color:var(--sw-color-info)}.sw-text.sw-warning{color:var(--sw-color-warning)}.sw-text.sw-danger{color:var(--sw-color-danger)}.sw-link{background:none;border:none;padding:0;color:var(--sw-text-color-secondary);min-height:1em}.sw-link:hover.sw-primary{color:var(--sw-color-primary)}.sw-link:hover.sw-success{color:var(--sw-color-success)}.sw-link:hover.sw-info{color:var(--sw-color-info)}.sw-link:hover.sw-warning{color:var(--sw-color-warning)}.sw-link:hover.sw-danger{color:var(--sw-color-danger)}@keyframes sw-skeleton{0%{left:-50px}to{left:calc(50px + 100%)}}.popup{position:relative}.popup .wrapper{position:absolute;z-index:1;list-style:none;font-size:.8rem;line-height:1.2;word-break:break-word;padding:0;margin:10px 0 0}.popup .wrapper :before{content:"";border-bottom-color:transparent!important;border-left-color:transparent!important;border:1px solid var(--el-border-color-light);background:var(--el-bg-color-overlay);right:50%;top:-6px;position:absolute;width:10px;height:10px;z-index:1;transform:rotate(-45deg)}.popup .scrollbar{box-shadow:0 0 0 1px var(--el-border-color);border-radius:var(--el-border-radius-base);background:#fff;padding:.5rem 0;margin:0}.popup .scrollbar li{display:flex;align-items:start;white-space:nowrap;list-style:none;line-height:22px;padding:5px 16px;margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-regular);cursor:pointer;outline:none}.popup .scrollbar li:not(.is-disabled):focus{background:var(--el-dropdown-menuItem-hover-fill);color:var(--el-dropdown-menuItem-hover-color)}.noBorder .el-input__wrapper{box-shadow:none}.nav{align-items:center}
|