@studio-west/employees 0.6.52 → 0.6.54

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.
@@ -1,3 +1,3 @@
1
- "use strict";const e=require("vue"),be=require("vue-i18n"),c=require("./index-Dn3djtwj.cjs"),g=require("element-plus"),_=require("@imengyu/vue3-context-menu"),de=require("file-saver"),we=require("exceljs");function De(V){const y=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(V){for(const s in V)if(s!=="default"){const M=Object.getOwnPropertyDescriptor(V,s);Object.defineProperty(y,s,M.get?M:{enumerable:!0,get:()=>V[s]})}}return y.default=V,Object.freeze(y)}const xe=De(we),$e={class:"nav"},ke={style:{height:"20px",width:"100%",display:"inline-block"}},Ne={style:{height:"20px",width:"100%",display:"inline-block"}},Ve={class:"label"},Se={key:0,style:{padding:"0 1rem .5rem"}},Te={key:1,style:{padding:"0 1rem .5rem"}},Ee={__name:"SheetTable",props:{checkEdit:{type:Boolean,default:()=>!0},odata:Object,workSchedule:Object,fullName:{type:String,default:"Вы"},group:String,date:String,logo:{type:URL,default:"#"},editor:{type:Object,default:()=>({})}},setup(V){const y=V,{t:s,d:M}=be.useI18n(),q=e.ref(!1),b=e.ref([]),H=e.ref("0"),p=e.ref(new Date(new Date().getFullYear(),new Date().getMonth(),1).setMonth(new Date().getMonth()+Number(H.value))),d=e.ref([]),S=e.ref([]),Z=e.ref("100%"),A=e.ref("true"),Q=e.ref([]),ve=e.ref([{value:"Я",label:s("sheet.valid.1")},{value:"К",label:s("sheet.valid.2")},{value:"ОТ",label:s("sheet.valid.3")},{value:"ДО",label:s("sheet.valid.4")},{value:"Р",label:s("sheet.valid.5")},{value:"ОЖ",label:s("sheet.valid.6")},{value:"Б",label:s("sheet.valid.7")},{value:"НН",label:s("sheet.valid.8")},{value:"ПР",label:s("sheet.valid.9")},{value:"У",label:s("sheet.valid.10")},{value:"УД",label:s("sheet.valid.11")},{value:"Г",label:s("sheet.valid.12")}]),ne=e.ref([]),ce=e.ref(0),x=e.ref(9),D=e.ref(8),k=e.ref(0),z=e.ref(0),O=e.ref([]),Y=e.ref(!1),P=e.ref(!1),ee=e.ref([]),j=e.ref([]),B=e.ref(!1),J=e.ref(!1),L=e.ref(1),oe=e.ref(null),le=e.ref({zIndex:3,minWidth:230,x:500,y:200}),v=e.ref({name:"",length:0,code:""}),$=e.ref([]),G=e.ref(""),R=e.ref("_____"),i=e.computed(()=>b.value.flatMap((t,l)=>{const m=$.value.find(n=>n.code===t.code),o=new Map;t.days.forEach(n=>o.set(n.day,{...n})),m&&m.days.forEach(n=>o.set(n.day,{...n}));const h=Array.from(o.values());return[{...t,days:h,key:0,ids:l,numberNonAppearing:[0,0]},{...t,days:h,key:1,ids:l,numberNonAppearing:[0,0]}]}));e.watch(S,async(t,l)=>{t!==l&&(O.value=[],y.odata.personal.forEach(m=>{t.includes(m.divisionName)&&(O.value.some(o=>(o==null?void 0:o.activeText)===m.roleName)||O.value.push({val:!0,activeText:m.roleName}))}),te())}),e.watch(H,t=>{p.value=new Date(new Date().getFullYear(),new Date().getMonth(),1).setMonth(new Date().getMonth()+Number(t)),ue(),te()}),e.watch(D,()=>Y.value=B.value),e.watch(x,()=>Y.value=B.value),e.watch(L,()=>Y.value=B.value);const me=async(t,l,m,o)=>{if(console.log("row",t),console.log("column",l),l.level!==3||l.labelClassName==="turn"||l.no===15||l.no>d.value.length||!y.checkEdit)return"";v.value.ids=t.ids,v.value.key=t.key,v.value.day=l.no<15?l.no:l.no-1;const h=new Date(p.value),n=`${h.getFullYear()}-${(h.getMonth()+1).toString().padStart(2,"0")}-${(v.value.day+1).toString().padStart(2,"0")}`,a=$.value.findIndex(f=>f.code===t.code);v.value.id=a!==-1?$.value[a].days.findIndex(f=>(f==null?void 0:f.day)===n):a,x.value=typeof t.days[v.value.day].tips>"u"?9:parseInt(t.days[v.value.day].tips.match(/(\d{1,2})/)),k.value=typeof t.days[v.value.day].night>"u"?0:parseInt(t.days[v.value.day].night),z.value=typeof t.days[v.value.day].overtime>"u"?0:parseInt(t.days[v.value.day].overtime),D.value=t.days[v.value.day].time!=="-"?parseInt(t.days[v.value.day].time):8;const u=t.days.findIndex(f=>f.day===n);v.value.failure=t.days[u].state,le.value.y=o.clientY,le.value.x=o.clientX,v.value.rest=a!==-1&&v.value.id!==-1,v.value.name=c.byInitials(t.fio),B.value=!0,await e.nextTick(),Y.value=!1},K=t=>{const l=new Date(p.value),m=`${l.getFullYear()}-${(l.getMonth()+1).toString().padStart(2,"0")}-${(v.value.day+1).toString().padStart(2,"0")}`;let o=$.value.findIndex(C=>C.code===b.value[v.value.ids].code);v.value.id=o!==-1?$.value[o].days.findIndex(C=>(C==null?void 0:C.day)===`${l.getFullYear()}-${(l.getMonth()+1).toString().padStart(2,"0")}-${(v.value.day+1).toString().padStart(2,"0")}`):o;let h=b.value[v.value.ids].days[v.value.day].state,n=t,a="-",u,f,w;switch(t){case"Я":h==="В"&&(n="РВ"),a=8;break;case"КВ":case"К":h==="В"||h==="КВ"?n="КВ":n="К";break;case"save":let C=W.value.split('"');n=C[1],Y.value=!1,C[2]!==""&&(a=D.value,w="("+C[2].split("(")[1],u=k.value,f=z.value)}t==="reset"?(n=h,$.value[o].days.splice(v.value.id,1)):o===-1?$.value.push({code:b.value[v.value.ids].code,days:[{day:m,state:n,time:a,night:u,overtime:f,tips:w}]}):v.value.id===-1?$.value[o].days.push({day:m,state:n,time:a,night:u,overtime:f,tips:w}):$.value[o].days[v.value.id]={day:m,state:n,time:a,night:u,overtime:f,tips:w},o=$.value.findIndex(C=>C.code===b.value[v.value.ids].code),y.workSchedule.addWorkSheet({date:c.parseTime(new Date(p.value),"{Y}-{m}-{dd}"),data:[{name:b.value[v.value.ids].fio,days:$.value[o].days,code:b.value[v.value.ids].code}]}),v.value.failure=n,L.value>1&&(L.value--,v.value.day++,K(n)),re()},W=e.computed(()=>{J.value=!1;let t=b.value[v.value.ids].days[v.value.day],l="";k.value=0,z.value=0;let m=D.value>=22?x.value+D.value+2:x.value+D.value+1,o=v.value.failure.split("/")[0];o=/^Н(?!Н$)С?$/.test(o)?t.state!=="В"?"Я":"РВ":o,/^(|Я|РВ)$/.test(o)&&((x.value<6||m>22)&&(l="Н",k.value=x.value<6?Math.min(6,m)-x.value:0,m<=6&&(k.value=D.value,o=""),m===7&&k.value>3&&k.value--,k.value+=Math.max(22,m)-22),D.value>t.time&&o!=="РВ"&&(l+="С",J.value=!0,z.value=D.value-t.time),/РВ/.test(o)&&(J.value=!0)),l.length>0&&o.length>0&&(l="/"+l);let h=`(${x.value}:00 - ${D.value>=22?x.value+D.value+2:x.value+D.value+1}:00)`,n=i.value[v.value.ids*2].days[v.value.day].time!=="-"?" "+D.value+" "+h:"";return'"'+o+l+'"'+n}),he=t=>{if(t.columnIndex<2||t.columnIndex>d.value.length+3&&t.columnIndex<d.value.length+9||t.columnIndex>d.value.length+11)return i.value[t.rowIndex].key===0?{rowspan:2,colspan:1}:{rowspan:0,colspan:0}},ue=()=>{const t=ne.value,l=new Date(p.value),m=new Date(l.getFullYear(),l.getMonth()+1,0).getDate();let o=[],h=0;for(let n=1;n<=m;n++){const a=c.parseTime(l.setDate(n),"{Y}-{m}-{dd}");h+=t.nowork.includes(a)||t.holidays.includes(a)?0:t.preholidays.includes(a)?7:8;let u=t.nowork.includes(a)?"nowork":t.holidays.includes(a)?"holiday":t.preholidays.includes(a)?"preholiday":"";o.push({day:n,holidays:u,weekday:M(new Date(l.getFullYear(),l.getMonth(),n),"day")})}return ce.value=h,d.value=o,y.odata.getPersonal({dismissed:"false"}).then(n=>{var a;S.value.length===0&&(S.value=[(a=n.find(u=>u.employeeName===y.fullName))==null?void 0:a.divisionName]),n.forEach(u=>{Q.value.some(f=>u.dismissalDate.length>0&&new Date(u.dismissalDate)<new Date(p.value)||(f==null?void 0:f.value)===u.divisionName)||Q.value.push({value:u.divisionName,label:u.divisionName,key:u.divisionName})})}),!0},te=()=>{b.value=[],j.value=[],ee.value=[],y.odata.personal.forEach(t=>{if(S.value.includes(t.divisionName)&&O.value.some(l=>l.val&&l.activeText===t.roleName)&&(t.dismissalDate.length===0||new Date(t.dismissalDate)>new Date(p.value))){let l=c.byInitials(t.employeeName);const m={fio:t.employeeName,name:l+" ("+t.roleName+")",code:t.employeeKey,days:[],contHour:0,id:!1,employmentDate:c.parseTime(new Date(t.employmentDate),"{Y}-{m}-{dd}T00:00:00"),dismissalDate:t.dismissalDate};b.value.push(m)}t.employeeName===y.fullName&&(R.value=t.roleName)}),b.value.sort((t,l)=>t.fio<l.fio?-1:t.fio>l.fio?1:0),b.value.forEach((t,l)=>{t.ids=l,j.value.push(t.code)}),y.workSchedule.getUsersYear({code:j.value,year:new Date(p.value).getFullYear()}).then(t=>{t.forEach(l=>{l.dateStart&&ee.value.push({code:l.code,dateStart:l.dateStart,dateEnd:l.dateEnd})}),ge()})},ge=()=>{y.workSchedule.getWorkSheet({code:j.value,date:c.parseTime(new Date(p.value),"{Y}-{m}-{dd}")}).then(t=>{$.value=[],t.forEach(l=>{l!==null&&$.value.push({code:l.code,days:l.data.days})}),y.workSchedule.getWorkSchedule({code:j.value,date:c.parseTime(new Date(p.value),"{Y}-{m}-{dd}")}).then(l=>{l.forEach((m,o)=>{var n,a;if(m!==null){b.value[o].days=[],m.data.days.forEach(u=>u.state="Я");for(let u=1;u<=d.value.length;u++){let f=c.parseTime(new Date(p.value).setDate(u),"{Y}-{m}-{dd}");const w=(n=m.data)==null?void 0:n.days.findIndex(C=>C.day===f);w===-1?X(u,o,"-","В"):b.value[o].days.push((a=m.data)==null?void 0:a.days[w])}}else for(let u=1;u<=d.value.length;u++)d.value[u-1].holidays===""?X(u,o,8):d.value[u-1].holidays==="preholiday"?X(u,o,7):X(u,o,"-","В");const h=b.value[o];if(h.employmentDate||h.dismissalDate)for(let u=1;u<=d.value.length;u++){const f=new Date(new Date(p.value).setDate(u)),w=c.parseTime(f,"{Y}-{m}-{dd}"),C=h.employmentDate&&f<new Date(h.employmentDate),T=h.dismissalDate&&f>new Date(h.dismissalDate);if(C||T){const N=h.days.findIndex(I=>I.day===w);N!==-1&&(h.days[N].state="-",h.days[N].time="-")}}for(let u=1;u<=d.value.length;u++){let f=new Date(new Date(p.value).getFullYear(),new Date(p.value).getMonth(),u).getTime()+1e3;for(let w of ee.value){const{dateStart:C,dateEnd:T,code:N}=w;if(C&&T&&N===b.value[o].code){const I=new Date(c.parseDate(C)).getTime(),U=new Date(c.parseDate(T)).getTime();if(f>=I&&f<=U){const r=c.parseTime(new Date(p.value).setDate(u),"{Y}-{m}-{dd}"),F=b.value[o].days.findIndex(ae=>ae.day===r);F!==-1?b.value[o].days[F]={day:r,time:"-",state:"ОТ"}:b.value[o].days.push({day:r,time:"-",state:"ОТ"})}}}}}),re()})})},X=(t,l,m,o="Я")=>{const h=c.parseTime(new Date(p.value).setDate(t),"{Y}-{m}-{dd}");b.value[l].days.push({day:h,time:m,state:o})},re=()=>{i.value.forEach(t=>{t.hourI=0,t.hourII=0,t.halfII=0,t.halfI=0,t.weekend=0,t.weekendDays=0,t.overtime=0,t.night=0,t.appearing={code:"-",count:"-"};const l=Object.entries(t.days.reduce((n,a)=>{if(a.hasOwnProperty("state")&&/^(|К|КВ|ОТ|Б|Р|ПР|ОЖ|НН|У|ДО|УД|Г)$/.test(a.state)){const u=a.state;n[u]=(n[u]||0)+1}return n},{})).map(([n,a])=>({code:n,count:a}));t.numberNonAppearing=[l.reduce((n,a)=>n+a.count,0),0];const m=Math.ceil(l.length/2),o=l.slice(0,m),h=l.slice(m);t.key===0&&o.length>0&&(t.appearing={code:o.map(n=>n.code).join("/"),count:o.map(n=>n.count).join("/")}),t.key===1&&h.length>0&&(t.appearing={code:h.map(n=>n.code).join("/"),count:h.map(n=>n.count).join("/")});for(let n=0;n<t.days.length;n++)n<15&&t.days[n].time!=="-"&&(t.hourI+=Number(t.days[n].time),t.days[n].overtime&&(t.hourI+=Number(t.days[n].overtime)),t.halfI++),n>=15&&t.days[n].time!=="-"&&(t.days[n].overtime&&(t.hourII+=Number(t.days[n].overtime)),t.hourII+=Number(t.days[n].time),t.halfII++),t.days[n].night&&(t.night+=Number(t.days[n].night)),t.days[n].overtime&&(t.overtime+=Number(t.days[n].overtime)),/{|РВ|}/.test(t.days[n].state)&&(t.weekend+=Number(t.days[n].time)),t.days[n].state==="В"&&t.weekendDays++;t.contDays=t.halfI+t.halfII,t.contHour=t.hourI+t.hourII})},ie=(t,l)=>{var u,f,w,C,T,N,I;if(l===-1)return"";const m=i.value[l],o=new Date(p.value),h=`${o.getFullYear()}-${(o.getMonth()+1).toString().padStart(2,"0")}-${t.toString().padStart(2,"0")}`,n=m.days.findIndex(U=>U.day===h);let a=0;return(u=m.days[n])!=null&&u.night&&(a+=m.days[n].night),(f=m.days[n])!=null&&f.overtime&&(a+=m.days[n].overtime),n===-1?"":m.key===0?(w=m.days[n])==null?void 0:w.state:((C=m.days[n])==null?void 0:C.time)===0?a===0?"-":a:a===0||a===((T=m.days[n])==null?void 0:T.time)?(N=m.days[n])==null?void 0:N.time:`${(I=m.days[n])==null?void 0:I.time}/${a}`};y.group&&(S.value[0]=y.group),y.date&&(H.value=new Date(y.date+"T00:00:01").getMonth()),c.holidays().then(t=>{ne.value=t,ue()});const se=t=>new Date(p.value).getMonth()===new Date().getMonth()&&t===new Date().getDate()?" today":"",fe=()=>{let t=W.value.match(/(\d{1,2}):\d{2}\s*-\s*(\d{1,2})/),l=b.value[v.value.ids].days[v.value.day+1].tips;return l=typeof l<"u"?l.match(/(\d{1,2}):\d{2}\s*-\s*(\d{1,2})/):[0,9,18],k.value>0&&(Number(t[1])<=6?t[1]=Number(t[1])+k.value:t[2]=Number(t[2])-k.value),Number(t[1])<Number(l[1])?`${t[1]}:00 по ${Number(t[1])+z.value}:00`:`${Number(t[2])-z.value}:00 по ${t[2]}:00`},ye=()=>{let t=/РВ/.test(W.value),l=t?W.value.match(/\(([^)]+)\)/)[1].replace("-"," по "):fe();G.value=`<p style="position: absolute;"><img src="https://cp.avanta-telecom.ru${y.logo}" style="height: 3rem;"></p><div style="display:inline-block;margin-left:66%;width:34%;">Директору<br>ООО "АВАНТА ТЕЛЕКОМ" Пунину Д. В.<br><br>от ${R.value} ${c.byInitials(y.fullName)}</div><p>${S.value[0]}<br>СЛУЖЕБНАЯ ЗАПИСКА<br>${c.parseTime(new Date(p.value).setDate(v.value.day+1),'"{dd}" {F} {Y}')}г.</p><p style="text-align:center;">Уважаемый Дмитрий Владимирович!</p><p>В связи с производственной необходимостью _________________, прошу привлечь к ${t?"к работе в выходной день":"сверхурочной работе"}, ${c.parseTime(new Date(p.value).setDate(v.value.day+1),"{dd}.{m}.{Y}")} c ${l}, ${i.value[v.value.ids*2].name.match(/\(([^)]+)\)/)[1]} ${i.value[v.value.ids*2].fio} для выполнения вышеуказанных работ с его(её) письменного согласия.</p><p>${R.value} ________________ ${c.byInitials(y.fullName)}</p>`},pe=async()=>{var T,N,I,U;q.value=!0;const t=new xe.Workbook,l=t.addWorksheet(M(p.value,"month"),{pageSetup:{paperSize:9,orientation:"landscape",fitToPage:!0}}),m={vertical:"middle",horizontal:"center"},o={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},h={vertical:"middle",horizontal:"center",wrapText:!0};l.mergeCells(`A1:${c.cellsDynamically("A1",d.value.length+15)}1`),l.mergeCells("A2:A4"),l.mergeCells("B2:B4"),l.mergeCells("C2:C4"),l.mergeCells("D5:R5"),l.mergeCells(`D2:${c.cellsDynamically("D2",d.value.length+2)}2`),l.mergeCells(`${c.cellsDynamically("D2",d.value.length+3)}2:${c.cellsDynamically("D2",d.value.length+8)}2`),l.mergeCells(`${c.cellsDynamically("D2",d.value.length+9)}2:${c.cellsDynamically("D2",d.value.length+9)}4`),l.mergeCells(`${c.cellsDynamically("D2",d.value.length+10)}2:${c.cellsDynamically("D2",d.value.length+11)}2`),l.mergeCells(`${c.cellsDynamically("D2",d.value.length+12)}2:${c.cellsDynamically("D2",d.value.length+12)}4`),l.mergeCells(`${c.cellsDynamically("D3",d.value.length+3)}3:${c.cellsDynamically("D3",d.value.length+3)}4`),l.mergeCells(`${c.cellsDynamically("D3",d.value.length+4)}3:${c.cellsDynamically("D3",d.value.length+8)}3`),l.mergeCells(`${c.cellsDynamically("D3",d.value.length+10)}3:${c.cellsDynamically("D3",d.value.length+10)}4`),l.mergeCells(`${c.cellsDynamically("D3",d.value.length+11)}3:${c.cellsDynamically("D3",d.value.length+11)}4`),l.mergeCells(`T5:${c.cellsDynamically("D5",d.value.length+1)}5`);for(let r=1;r<=d.value.length+2;r++)l.mergeCells(`${c.cellsDynamically("D3",r)}3:${c.cellsDynamically("D4",r)}4`),l.getColumn(r+3).width=5,l.getColumn(r+3).alignment=h,l.getCell(3,r+3).border=o,r<16&&(l.getCell(3,r+3).value=r),r>16&&(l.getCell(3,r+3).value=r-1);l.getCell("A1").value=s("sheet.title",{name:S.value[0]})+M(p.value,"month"),l.getCell("A2").value=s("sheet.listNumber"),l.getCell("B2").value=s("sheet.employee"),l.getCell("C2").value=s("sheet.personnelNumber"),l.getCell("D2").value=s("sheet.marks"),l.getCell("S3").value=s("sheet.halfMonth",{half:"I"}),l.getCell("A5").value="1",l.getCell("B5").value="2",l.getCell("C5").value="3",l.getCell("D5").value="4",l.getCell("S5").value="5",l.getCell("T5").value="6",l.getCell(5,d.value.length+5).value="7",l.getCell(2,d.value.length+6).value=s("sheet.workedMonth"),l.getCell(2,d.value.length+12).value=s("sheet.numberNonAppearing"),l.getCell(2,d.value.length+13).value=s("sheet.them"),l.getCell(2,d.value.length+15).value=s("sheet.countWeekend"),l.getCell(3,d.value.length+5).value=s("sheet.halfMonth",{half:"II"}),l.getCell(3,d.value.length+6).value=s("sheet.days"),l.getCell(3,d.value.length+7).value=s("sheet.hours"),l.getCell(4,d.value.length+7).value=s("sheet.all"),l.getCell(4,d.value.length+8).value=s("sheet.overtime"),l.getCell(4,d.value.length+9).value=s("sheet.night"),l.getCell(4,d.value.length+10).value=s("sheet.weekend"),l.getCell(4,d.value.length+13).value=s("sheet.code"),l.getCell(4,d.value.length+14).value=s("sheet.count"),l.getRow(1).height=40,l.getRow(2).height=32,l.getRow(3).height=20,l.getRow(4).height=60,l.getColumn(1).width=6,l.getColumn(2).width=30,l.getColumn(3).width=17,l.getColumn(19).width=12,l.getColumn(d.value.length+5).width=12,l.getColumn(d.value.length+12).width=11,l.getColumn(d.value.length+15).width=11,l.getCell("A1").alignment=m,l.getColumn(1).alignment=h,l.getColumn(2).alignment=h,l.getColumn(3).alignment=h;for(let r=6;r<=15;r++)l.getCell(5,d.value.length+r).value=r+2,l.getColumn(d.value.length+r).alignment=h,l.getCell(4,d.value.length+r).border=o,l.getCell(5,d.value.length+r).border=o;l.getCell("A2").border=o,l.getCell("B2").border=o,l.getCell("C2").border=o,l.getCell("D2").border=o,l.getCell("D2").border=o,l.getCell("A5").border=o,l.getCell("B5").border=o,l.getCell("C5").border=o,l.getCell("D5").border=o,l.getCell("S5").border=o,l.getCell("T5").border=o,l.getCell(2,d.value.length+6).border=o,l.getCell(2,d.value.length+12).border=o,l.getCell(2,d.value.length+13).border=o,l.getCell(2,d.value.length+15).border=o,l.getCell(3,d.value.length+7).border=o;let n=1,a=5,u=!0;for(const r of i.value){let F=[n,r.name,r.code];for(let E=0;E<d.value.length;E++)E===15&&F.push(u?(r==null?void 0:r.halfI)||"":(r==null?void 0:r.hourI)||""),F.push(u?((T=r.days[E])==null?void 0:T.state)||"":((N=r.days[E])==null?void 0:N.time)||"");F.push(u?(r==null?void 0:r.halfII)||0:(r==null?void 0:r.hourII)||0,(r==null?void 0:r.contDays)||0,(r==null?void 0:r.contHour)||0,(r==null?void 0:r.overtime)||0,(r==null?void 0:r.night)||0,(r==null?void 0:r.weekend)||0,"",u?(r==null?void 0:r.numberNonAppearing[0])||"":(r==null?void 0:r.numberNonAppearing[1])||0,((I=r==null?void 0:r.appearing)==null?void 0:I.code)||"-",((U=r==null?void 0:r.appearing)==null?void 0:U.count)||"-",(r==null?void 0:r.weekendDays)||0);const ae=l.addRow(F);if(ae.border=o,!u){l.mergeCells(`A${a+n*2-1}:A${a+n*2}`),l.mergeCells(`B${a+n*2-1}:B${a+n*2}`),l.mergeCells(`C${a+n*2-1}:C${a+n*2}`);for(let E=d.value.length+3;E<=d.value.length+8;E++)l.mergeCells(`${c.cellsDynamically("D",E)}${a+n*2-1}:${c.cellsDynamically("D",E)}${a+n*2}`);l.mergeCells(`${c.cellsDynamically("D",d.value.length+12)}${a+n*2-1}:${c.cellsDynamically("D",d.value.length+12)}${a+n*2}`),n++}u=!u}let f="Чемарина Н. Ю.";y.odata.personal.forEach(r=>{r.roleName==="Специалист по кадрам и кадровому делопроизводству"&&(f=r.employeeName)}),l.mergeCells(`A${i.value.length+7}:B${i.value.length+7}`),l.mergeCells(`C${i.value.length+7}:G${i.value.length+7}`),l.mergeCells(`H${i.value.length+7}:M${i.value.length+7}`),l.mergeCells(`O${i.value.length+7}:T${i.value.length+7}`),l.mergeCells(`V${i.value.length+7}:AC${i.value.length+7}`),l.mergeCells(`AD${i.value.length+7}:AI${i.value.length+7}`),l.mergeCells(`AJ${i.value.length+7}:AL${i.value.length+7}`),l.mergeCells(`AM${i.value.length+7}:AP${i.value.length+7}`),l.mergeCells(`V${i.value.length+9}:AC${i.value.length+9}`),l.mergeCells(`AD${i.value.length+9}:AI${i.value.length+9}`),l.mergeCells(`AJ${i.value.length+9}:AL${i.value.length+9}`),l.mergeCells(`AM${i.value.length+9}:AP${i.value.length+9}`),l.getCell(`A${i.value.length+7}`).value=s("sheet.responsiblePerson"),l.getCell(`V${i.value.length+7}`).value=s("sheet.headStructural"),l.getCell(`C${i.value.length+7}`).value=R.value+":",l.getCell(`O${i.value.length+7}`).value=c.byInitials(y.fullName),l.getCell(`AD${i.value.length+7}`).value=R.value+":",l.getCell(`AM${i.value.length+7}`).value=c.byInitials(y.fullName),l.getCell(`V${i.value.length+9}`).value=s("sheet.HREmployee"),l.getCell(`AD${i.value.length+9}`).value="Специалист по кадрам и кадровому делопроизводству:",l.getCell(`AM${i.value.length+9}`).value=c.byInitials(f),l.getCell(`A${i.value.length+7}`).alignment={vertical:"middle",horizontal:"right",wrapText:!0},l.getCell(`C${i.value.length+7}`).alignment={vertical:"middle",horizontal:"right",wrapText:!0},l.getCell(`O${i.value.length+7}`).alignment={vertical:"middle",horizontal:"left"},l.getCell(`V${i.value.length+7}`).alignment={vertical:"middle",horizontal:"right",wrapText:!0},l.getCell(`AD${i.value.length+7}`).alignment={vertical:"middle",horizontal:"right",wrapText:!0},l.getCell(`AM${i.value.length+7}`).alignment={vertical:"middle",horizontal:"left"},l.getCell(`V${i.value.length+9}`).alignment={vertical:"middle",horizontal:"right",wrapText:!0},l.getCell(`AD${i.value.length+9}`).alignment={vertical:"middle",horizontal:"right",wrapText:!0},l.getCell(`AM${i.value.length+9}`).alignment={vertical:"middle",horizontal:"left"},l.getCell(`H${i.value.length+7}`).border={bottom:{style:"thin"}},l.getCell(`AJ${i.value.length+7}`).border={bottom:{style:"thin"}},l.getCell(`AJ${i.value.length+9}`).border={bottom:{style:"thin"}};const w=`export_${c.parseTime(Date.now(),"{dd}.{m}.{Y}")}.xlsx`,C=await t.xlsx.writeBuffer();de.saveAs(new Blob([C]),w),q.value=!1},Ce=()=>{let t=new Blob([G.value],{type:"text/plain;charset=utf-8"});de.saveAs(t,`Служебка_${c.byInitials(i.value[v.value.ids*2].fio)}_${c.parseTime(Date.now(),"{dd}.{m}.{Y}")}.html`)};return(t,l)=>{const m=e.resolveComponent("el-form-item"),o=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-slider"),n=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",$e,[V.checkEdit?(e.openBlock(),e.createBlock(e.unref(g.ElSelect),{key:0,modelValue:S.value,"onUpdate:modelValue":l[0]||(l[0]=a=>S.value=a),multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:"Select",style:{width:"240px","margin-bottom":".5rem","margin-right":".5rem"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q.value,a=>(e.openBlock(),e.createBlock(e.unref(g.ElOption),{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):e.createCommentVNode("",!0),V.checkEdit?(e.openBlock(),e.createBlock(e.unref(g.ElButton),{key:1,plain:"",onClick:l[1]||(l[1]=a=>P.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("workSchedule.jobTitle")),1)]),_:1})):e.createCommentVNode("",!0),l[19]||(l[19]=e.createElementVNode("div",{class:"expander"},null,-1)),V.checkEdit?(e.openBlock(),e.createBlock(e.unref(g.ElSwitch),{key:2,modelValue:H.value,"onUpdate:modelValue":l[2]||(l[2]=a=>H.value=a),"active-text":e.unref(s)("workSchedule.currentMonth"),"active-value":"0","inactive-value":"-1",style:{"margin-bottom":".5rem","margin-left":".5rem"}},null,8,["modelValue","active-text"])):e.createCommentVNode("",!0),e.createVNode(e.unref(g.ElSwitch),{modelValue:Z.value,"onUpdate:modelValue":l[3]||(l[3]=a=>Z.value=a),"active-text":t.$t("sheet.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(g.ElSwitch),{modelValue:A.value,"onUpdate:modelValue":l[4]||(l[4]=a=>A.value=a),"active-text":t.$t("sheet.simplified"),"active-value":"true","inactive-value":"false"},null,8,["modelValue","active-text"])]),e.createVNode(e.unref(g.ElTable),{id:"printTable",data:i.value,"span-method":he,border:"",style:{width:"100%"},size:"small","empty-text":e.unref(s)("sheet.emptyText"),align:"center",onCellClick:me,"max-height":Z.value,"default-sort":{prop:"mame",order:"descending"}},{default:e.withCtx(()=>[e.createVNode(e.unref(g.ElTableColumn),{label:e.unref(s)("sheet.title",{name:S.value[0]})+e.unref(M)(p.value,"month"),align:"center",height:"10"},{default:e.withCtx(()=>[e.createVNode(e.unref(g.ElTableColumn),{label:e.unref(s)("sheet.employee"),width:A.value==="false"?180:t.auto,align:"center"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].name),1)]),_:1},8,["label","width"]),e.createVNode(e.unref(g.ElTableColumn),{label:e.unref(s)("sheet.personnelNumber"),align:"center",width:"108"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].code),1)]),_:1},8,["label"]),e.createVNode(e.unref(g.ElTableColumn),{label:e.unref(s)("sheet.marks"),align:"center"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,a=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:a.day},[a.day<=15?(e.openBlock(),e.createBlock(e.unref(g.ElTableColumn),{key:0,width:"39","class-name":a.holidays+se(a.day),align:"center",label:a.day.toString()+`
1
+ "use strict";const e=require("vue"),be=require("vue-i18n"),c=require("./index-Dn3djtwj.cjs"),g=require("element-plus"),_=require("@imengyu/vue3-context-menu"),de=require("file-saver"),we=require("exceljs");function De(N){const y=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(N){for(const s in N)if(s!=="default"){const M=Object.getOwnPropertyDescriptor(N,s);Object.defineProperty(y,s,M.get?M:{enumerable:!0,get:()=>N[s]})}}return y.default=N,Object.freeze(y)}const xe=De(we),$e={class:"nav"},ke={style:{height:"20px",width:"100%",display:"inline-block"}},Ne={style:{height:"20px",width:"100%",display:"inline-block"}},Ve={class:"label"},Se={key:0,style:{padding:"0 1rem .5rem"}},Te={key:1,style:{padding:"0 1rem .5rem"}},Ee={__name:"SheetTable",props:{checkEdit:{type:Boolean,default:()=>!0},odata:Object,workSchedule:Object,fullName:{type:String,default:"Вы"},group:String,date:String,logo:{type:URL,default:"#"},editor:{type:Object,default:()=>({})}},setup(N){const y=N,{t:s,d:M}=be.useI18n(),q=e.ref(!1),b=e.ref([]),H=e.ref("0"),p=e.ref(new Date(new Date().getFullYear(),new Date().getMonth(),1).setMonth(new Date().getMonth()+Number(H.value))),d=e.ref([]),V=e.ref([]),Z=e.ref("100%"),A=e.ref("true"),Q=e.ref([]),ve=e.ref([{value:"Я",label:s("sheet.valid.1")},{value:"К",label:s("sheet.valid.2")},{value:"ОТ",label:s("sheet.valid.3")},{value:"ДО",label:s("sheet.valid.4")},{value:"Р",label:s("sheet.valid.5")},{value:"ОЖ",label:s("sheet.valid.6")},{value:"Б",label:s("sheet.valid.7")},{value:"НН",label:s("sheet.valid.8")},{value:"ПР",label:s("sheet.valid.9")},{value:"У",label:s("sheet.valid.10")},{value:"УД",label:s("sheet.valid.11")},{value:"Г",label:s("sheet.valid.12")}]),ne=e.ref([]),ce=e.ref(0),x=e.ref(9),D=e.ref(8),I=e.ref(0),z=e.ref(0),O=e.ref([]),Y=e.ref(!1),P=e.ref(!1),ee=e.ref([]),j=e.ref([]),B=e.ref(!1),J=e.ref(!1),L=e.ref(1),oe=e.ref(null),le=e.ref({zIndex:3,minWidth:230,x:500,y:200}),v=e.ref({name:"",length:0,code:""}),$=e.ref([]),G=e.ref(""),R=e.ref("_____"),i=e.computed(()=>b.value.flatMap((t,l)=>{const m=$.value.find(n=>n.code===t.code),o=new Map;t.days.forEach(n=>o.set(n.day,{...n})),m&&m.days.forEach(n=>o.set(n.day,{...n}));const h=Array.from(o.values());return[{...t,days:h,key:0,ids:l,numberNonAppearing:[0,0]},{...t,days:h,key:1,ids:l,numberNonAppearing:[0,0]}]}));e.watch(V,async(t,l)=>{t!==l&&(O.value=[],y.odata.personal.forEach(m=>{t.includes(m.divisionName)&&(O.value.some(o=>(o==null?void 0:o.activeText)===m.roleName)||O.value.push({val:!0,activeText:m.roleName}))}),te())}),e.watch(H,t=>{p.value=new Date(new Date().getFullYear(),new Date().getMonth(),1).setMonth(new Date().getMonth()+Number(t)),ue(),te()}),e.watch(D,()=>Y.value=B.value),e.watch(x,()=>Y.value=B.value),e.watch(L,()=>Y.value=B.value);const me=async(t,l,m,o)=>{if(console.log("row",t),console.log("column",l),l.level!==3||l.labelClassName==="turn"||l.no===15||l.no>d.value.length||!y.checkEdit)return"";v.value.ids=t.ids,v.value.key=t.key,v.value.day=l.no<15?l.no:l.no-1;const h=new Date(p.value),n=`${h.getFullYear()}-${(h.getMonth()+1).toString().padStart(2,"0")}-${(v.value.day+1).toString().padStart(2,"0")}`,a=$.value.findIndex(f=>f.code===t.code);v.value.id=a!==-1?$.value[a].days.findIndex(f=>(f==null?void 0:f.day)===n):a,x.value=typeof t.days[v.value.day].tips>"u"?9:parseInt(t.days[v.value.day].tips.match(/(\d{1,2})/)),I.value=typeof t.days[v.value.day].night>"u"?0:parseInt(t.days[v.value.day].night),z.value=typeof t.days[v.value.day].overtime>"u"?0:parseInt(t.days[v.value.day].overtime),D.value=t.days[v.value.day].time!=="-"?parseInt(t.days[v.value.day].time):8;const u=t.days.findIndex(f=>f.day===n);v.value.failure=t.days[u].state,le.value.y=o.clientY,le.value.x=o.clientX,v.value.rest=a!==-1&&v.value.id!==-1,v.value.name=c.byInitials(t.fio),B.value=!0,await e.nextTick(),Y.value=!1},K=t=>{const l=new Date(p.value),m=`${l.getFullYear()}-${(l.getMonth()+1).toString().padStart(2,"0")}-${(v.value.day+1).toString().padStart(2,"0")}`;let o=$.value.findIndex(C=>C.code===b.value[v.value.ids].code);v.value.id=o!==-1?$.value[o].days.findIndex(C=>(C==null?void 0:C.day)===`${l.getFullYear()}-${(l.getMonth()+1).toString().padStart(2,"0")}-${(v.value.day+1).toString().padStart(2,"0")}`):o;let h=b.value[v.value.ids].days[v.value.day].state,n=t,a="-",u,f,w;switch(t){case"Я":h==="В"&&(n="РВ"),a=8;break;case"КВ":case"К":h==="В"||h==="КВ"?n="КВ":n="К";break;case"save":let C=W.value.split('"');n=C[1],Y.value=!1,C[2]!==""&&(a=D.value,w="("+C[2].split("(")[1],u=I.value,f=z.value)}t==="reset"?(n=h,$.value[o].days.splice(v.value.id,1)):o===-1?$.value.push({code:b.value[v.value.ids].code,days:[{day:m,state:n,time:a,night:u,overtime:f,tips:w}]}):v.value.id===-1?$.value[o].days.push({day:m,state:n,time:a,night:u,overtime:f,tips:w}):$.value[o].days[v.value.id]={day:m,state:n,time:a,night:u,overtime:f,tips:w},o=$.value.findIndex(C=>C.code===b.value[v.value.ids].code),y.workSchedule.addWorkSheet({date:c.parseTime(new Date(p.value),"{Y}-{m}-{dd}"),data:[{name:b.value[v.value.ids].fio,days:$.value[o].days,code:b.value[v.value.ids].code}]}),v.value.failure=n,L.value>1&&(L.value--,v.value.day++,K(n)),re()},W=e.computed(()=>{J.value=!1;let t=b.value[v.value.ids].days[v.value.day],l="";I.value=0,z.value=0;let m=D.value>=22?x.value+D.value+2:x.value+D.value+1,o=v.value.failure.split("/")[0];o=/^Н(?!Н$)С?$/.test(o)?t.state!=="В"?"Я":"РВ":o,/^(|Я|РВ)$/.test(o)&&((x.value<6||m>22)&&(l="Н",I.value=x.value<6?Math.min(6,m)-x.value:0,m<=6&&(I.value=D.value,o=""),m===7&&I.value>3&&I.value--,I.value+=Math.max(22,m)-22),D.value>t.time&&o!=="РВ"&&(l+="С",J.value=!0,z.value=D.value-t.time),/РВ/.test(o)&&(J.value=!0)),l.length>0&&o.length>0&&(l="/"+l);let h=`(${x.value}:00 - ${D.value>=22?x.value+D.value+2:x.value+D.value+1}:00)`,n=i.value[v.value.ids*2].days[v.value.day].time!=="-"?" "+D.value+" "+h:"";return'"'+o+l+'"'+n}),he=t=>{if(t.columnIndex<2||t.columnIndex>d.value.length+3&&t.columnIndex<d.value.length+9||t.columnIndex>d.value.length+11)return i.value[t.rowIndex].key===0?{rowspan:2,colspan:1}:{rowspan:0,colspan:0}},ue=()=>{const t=ne.value,l=new Date(p.value),m=new Date(l.getFullYear(),l.getMonth()+1,0).getDate();let o=[],h=0;for(let n=1;n<=m;n++){const a=c.parseTime(l.setDate(n),"{Y}-{m}-{dd}");h+=t.nowork.includes(a)||t.holidays.includes(a)?0:t.preholidays.includes(a)?7:8;let u=t.nowork.includes(a)?"nowork":t.holidays.includes(a)?"holiday":t.preholidays.includes(a)?"preholiday":"";o.push({day:n,holidays:u,weekday:M(new Date(l.getFullYear(),l.getMonth(),n),"day")})}return ce.value=h,d.value=o,y.odata.getPersonal({dismissed:"false"}).then(n=>{var a;V.value.length===0&&(V.value=[(a=n.find(u=>u.employeeName===y.fullName))==null?void 0:a.divisionName]),n.forEach(u=>{Q.value.some(f=>u.dismissalDate.length>0&&new Date(u.dismissalDate)<new Date(p.value)||(f==null?void 0:f.value)===u.divisionName)||Q.value.push({value:u.divisionName,label:u.divisionName,key:u.divisionName})})}),!0},te=()=>{b.value=[],j.value=[],ee.value=[],y.odata.personal.forEach(t=>{if(V.value.includes(t.divisionName)&&O.value.some(l=>l.val&&l.activeText===t.roleName)&&(t.dismissalDate.length===0||new Date(t.dismissalDate)>new Date(p.value))){let l=c.byInitials(t.employeeName);const m={fio:t.employeeName,name:l+" ("+t.roleName+")",code:t.employeeKey,days:[],contHour:0,id:!1,employmentDate:c.parseTime(new Date(t.employmentDate),"{Y}-{m}-{dd}T00:00:00"),dismissalDate:t.dismissalDate};b.value.push(m)}t.employeeName===y.fullName&&(R.value=t.roleName)}),b.value.sort((t,l)=>t.fio<l.fio?-1:t.fio>l.fio?1:0),b.value.forEach((t,l)=>{t.ids=l,j.value.push(t.code)}),y.workSchedule.getUsersYear({code:j.value,year:new Date(p.value).getFullYear()}).then(t=>{t.forEach(l=>{l.dateStart&&ee.value.push({code:l.code,dateStart:l.dateStart,dateEnd:l.dateEnd})}),ge()})},ge=()=>{y.workSchedule.getWorkSheet({code:j.value,date:c.parseTime(new Date(p.value),"{Y}-{m}-{dd}")}).then(t=>{$.value=[],t.forEach(l=>{l!==null&&$.value.push({code:l.code,days:l.data.days})}),y.workSchedule.getWorkSchedule({code:j.value,date:c.parseTime(new Date(p.value),"{Y}-{m}-{dd}")}).then(l=>{l.forEach((m,o)=>{var n,a;if(m!==null){b.value[o].days=[],m.data.days.forEach(u=>u.state="Я");for(let u=1;u<=d.value.length;u++){let f=c.parseTime(new Date(p.value).setDate(u),"{Y}-{m}-{dd}");const w=(n=m.data)==null?void 0:n.days.findIndex(C=>C.day===f);w===-1?X(u,o,"-","В"):b.value[o].days.push((a=m.data)==null?void 0:a.days[w])}}else for(let u=1;u<=d.value.length;u++)d.value[u-1].holidays===""?X(u,o,8):d.value[u-1].holidays==="preholiday"?X(u,o,7):X(u,o,"-","В");const h=b.value[o];if(h.employmentDate||h.dismissalDate)for(let u=1;u<=d.value.length;u++){const f=new Date(new Date(p.value).setDate(u)),w=c.parseTime(f,"{Y}-{m}-{dd}"),C=h.employmentDate&&f<new Date(h.employmentDate),S=h.dismissalDate&&f>new Date(h.dismissalDate);if(C||S){const k=h.days.findIndex(E=>E.day===w);k!==-1&&(h.days[k].state="-",h.days[k].time="-")}}for(let u=1;u<=d.value.length;u++){let f=new Date(new Date(p.value).getFullYear(),new Date(p.value).getMonth(),u).getTime()+1e3;for(let w of ee.value){const{dateStart:C,dateEnd:S,code:k}=w;if(C&&S&&k===b.value[o].code){const E=new Date(c.parseDate(C)).getTime(),U=new Date(c.parseDate(S)).getTime();if(f>=E&&f<=U){const r=c.parseTime(new Date(p.value).setDate(u),"{Y}-{m}-{dd}"),F=b.value[o].days.findIndex(ae=>ae.day===r);F!==-1?b.value[o].days[F]={day:r,time:"-",state:"ОТ"}:b.value[o].days.push({day:r,time:"-",state:"ОТ"})}}}}}),re()})})},X=(t,l,m,o="Я")=>{const h=c.parseTime(new Date(p.value).setDate(t),"{Y}-{m}-{dd}");b.value[l].days.push({day:h,time:m,state:o})},re=()=>{i.value.forEach(t=>{t.hourI=0,t.hourII=0,t.halfII=0,t.halfI=0,t.weekend=0,t.weekendDays=0,t.overtime=0,t.night=0,t.appearing={code:"-",count:"-"};const l=Object.entries(t.days.reduce((n,a)=>{if(a.hasOwnProperty("state")&&/^(|К|КВ|ОТ|Б|Р|ПР|ОЖ|НН|У|ДО|УД|Г)$/.test(a.state)){const u=a.state;n[u]=(n[u]||0)+1}return n},{})).map(([n,a])=>({code:n,count:a}));t.numberNonAppearing=[l.reduce((n,a)=>n+a.count,0),0];const m=Math.ceil(l.length/2),o=l.slice(0,m),h=l.slice(m);t.key===0&&o.length>0&&(t.appearing={code:o.map(n=>n.code).join("/"),count:o.map(n=>n.count).join("/")}),t.key===1&&h.length>0&&(t.appearing={code:h.map(n=>n.code).join("/"),count:h.map(n=>n.count).join("/")});for(let n=0;n<t.days.length;n++)n<15&&t.days[n].time!=="-"&&(t.hourI+=Number(t.days[n].time),t.days[n].overtime&&(t.hourI+=Number(t.days[n].overtime)),t.halfI++),n>=15&&t.days[n].time!=="-"&&(t.days[n].overtime&&(t.hourII+=Number(t.days[n].overtime)),t.hourII+=Number(t.days[n].time),t.halfII++),t.days[n].night&&(t.night+=Number(t.days[n].night)),t.days[n].overtime&&(t.overtime+=Number(t.days[n].overtime)),/{|РВ|}/.test(t.days[n].state)&&(t.weekend+=Number(t.days[n].time)),t.days[n].state==="В"&&t.weekendDays++;t.contDays=t.halfI+t.halfII,t.contHour=t.hourI+t.hourII})},ie=(t,l)=>{var u,f,w,C,S,k,E;if(l===-1)return"";const m=i.value[l],o=new Date(p.value),h=`${o.getFullYear()}-${(o.getMonth()+1).toString().padStart(2,"0")}-${t.toString().padStart(2,"0")}`,n=m.days.findIndex(U=>U.day===h);let a=0;return(u=m.days[n])!=null&&u.night&&(a+=m.days[n].night),(f=m.days[n])!=null&&f.overtime&&(a+=m.days[n].overtime),n===-1?"":m.key===0?(w=m.days[n])==null?void 0:w.state:((C=m.days[n])==null?void 0:C.time)===0?a===0?"-":a:a===0||a===((S=m.days[n])==null?void 0:S.time)?(k=m.days[n])==null?void 0:k.time:`${(E=m.days[n])==null?void 0:E.time}/${a}`};y.group&&(V.value[0]=y.group),y.date&&(H.value=new Date(y.date+"T00:00:01").getMonth()),c.holidays().then(t=>{ne.value=t,ue()});const se=t=>new Date(p.value).getMonth()===new Date().getMonth()&&t===new Date().getDate()?" today":"",fe=()=>{let t=W.value.match(/(\d{1,2}):\d{2}\s*-\s*(\d{1,2})/),l=b.value[v.value.ids].days[v.value.day+1].tips;return l=typeof l<"u"?l.match(/(\d{1,2}):\d{2}\s*-\s*(\d{1,2})/):[0,9,18],Number(t[1])<Number(l[1])?`${t[1]}:00 по ${Number(t[1])+z.value}:00`:`${Number(t[2])-z.value}:00 по ${t[2]}:00`},ye=()=>{let t=/РВ/.test(W.value),l=t?W.value.match(/\(([^)]+)\)/)[1].replace("-"," по "):fe();G.value=`<p style="position: absolute;"><img src="https://cp.avanta-telecom.ru${y.logo}" style="height: 3rem;"></p><div style="display:inline-block;margin-left:66%;width:34%;">Директору<br>ООО "АВАНТА ТЕЛЕКОМ" Пунину Д. В.<br><br>от ${R.value} ${c.byInitials(y.fullName)}</div><p>${V.value[0]}<br>СЛУЖЕБНАЯ ЗАПИСКА<br>${c.parseTime(new Date(p.value).setDate(v.value.day+1),'"{dd}" {F} {Y}')}г.</p><p style="text-align:center;">Уважаемый Дмитрий Владимирович!</p><p>В связи с производственной необходимостью _________________, прошу привлечь к ${t?"к работе в выходной день":"сверхурочной работе"}, ${c.parseTime(new Date(p.value).setDate(v.value.day+1),"{dd}.{m}.{Y}")} c ${l}, ${i.value[v.value.ids*2].name.match(/\(([^)]+)\)/)[1]} ${i.value[v.value.ids*2].fio} для выполнения вышеуказанных работ с его(её) письменного согласия.</p><p>${R.value} ________________ ${c.byInitials(y.fullName)}</p>`},pe=async()=>{var S,k,E,U;q.value=!0;const t=new xe.Workbook,l=t.addWorksheet(M(p.value,"month"),{pageSetup:{paperSize:9,orientation:"landscape",fitToPage:!0}}),m={vertical:"middle",horizontal:"center"},o={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},h={vertical:"middle",horizontal:"center",wrapText:!0};l.mergeCells(`A1:${c.cellsDynamically("A1",d.value.length+15)}1`),l.mergeCells("A2:A4"),l.mergeCells("B2:B4"),l.mergeCells("C2:C4"),l.mergeCells("D5:R5"),l.mergeCells(`D2:${c.cellsDynamically("D2",d.value.length+2)}2`),l.mergeCells(`${c.cellsDynamically("D2",d.value.length+3)}2:${c.cellsDynamically("D2",d.value.length+8)}2`),l.mergeCells(`${c.cellsDynamically("D2",d.value.length+9)}2:${c.cellsDynamically("D2",d.value.length+9)}4`),l.mergeCells(`${c.cellsDynamically("D2",d.value.length+10)}2:${c.cellsDynamically("D2",d.value.length+11)}2`),l.mergeCells(`${c.cellsDynamically("D2",d.value.length+12)}2:${c.cellsDynamically("D2",d.value.length+12)}4`),l.mergeCells(`${c.cellsDynamically("D3",d.value.length+3)}3:${c.cellsDynamically("D3",d.value.length+3)}4`),l.mergeCells(`${c.cellsDynamically("D3",d.value.length+4)}3:${c.cellsDynamically("D3",d.value.length+8)}3`),l.mergeCells(`${c.cellsDynamically("D3",d.value.length+10)}3:${c.cellsDynamically("D3",d.value.length+10)}4`),l.mergeCells(`${c.cellsDynamically("D3",d.value.length+11)}3:${c.cellsDynamically("D3",d.value.length+11)}4`),l.mergeCells(`T5:${c.cellsDynamically("D5",d.value.length+1)}5`);for(let r=1;r<=d.value.length+2;r++)l.mergeCells(`${c.cellsDynamically("D3",r)}3:${c.cellsDynamically("D4",r)}4`),l.getColumn(r+3).width=5,l.getColumn(r+3).alignment=h,l.getCell(3,r+3).border=o,r<16&&(l.getCell(3,r+3).value=r),r>16&&(l.getCell(3,r+3).value=r-1);l.getCell("A1").value=s("sheet.title",{name:V.value[0]})+M(p.value,"month"),l.getCell("A2").value=s("sheet.listNumber"),l.getCell("B2").value=s("sheet.employee"),l.getCell("C2").value=s("sheet.personnelNumber"),l.getCell("D2").value=s("sheet.marks"),l.getCell("S3").value=s("sheet.halfMonth",{half:"I"}),l.getCell("A5").value="1",l.getCell("B5").value="2",l.getCell("C5").value="3",l.getCell("D5").value="4",l.getCell("S5").value="5",l.getCell("T5").value="6",l.getCell(5,d.value.length+5).value="7",l.getCell(2,d.value.length+6).value=s("sheet.workedMonth"),l.getCell(2,d.value.length+12).value=s("sheet.numberNonAppearing"),l.getCell(2,d.value.length+13).value=s("sheet.them"),l.getCell(2,d.value.length+15).value=s("sheet.countWeekend"),l.getCell(3,d.value.length+5).value=s("sheet.halfMonth",{half:"II"}),l.getCell(3,d.value.length+6).value=s("sheet.days"),l.getCell(3,d.value.length+7).value=s("sheet.hours"),l.getCell(4,d.value.length+7).value=s("sheet.all"),l.getCell(4,d.value.length+8).value=s("sheet.overtime"),l.getCell(4,d.value.length+9).value=s("sheet.night"),l.getCell(4,d.value.length+10).value=s("sheet.weekend"),l.getCell(4,d.value.length+13).value=s("sheet.code"),l.getCell(4,d.value.length+14).value=s("sheet.count"),l.getRow(1).height=40,l.getRow(2).height=32,l.getRow(3).height=20,l.getRow(4).height=60,l.getColumn(1).width=6,l.getColumn(2).width=30,l.getColumn(3).width=17,l.getColumn(19).width=12,l.getColumn(d.value.length+5).width=12,l.getColumn(d.value.length+12).width=11,l.getColumn(d.value.length+15).width=11,l.getCell("A1").alignment=m,l.getColumn(1).alignment=h,l.getColumn(2).alignment=h,l.getColumn(3).alignment=h;for(let r=6;r<=15;r++)l.getCell(5,d.value.length+r).value=r+2,l.getColumn(d.value.length+r).alignment=h,l.getCell(4,d.value.length+r).border=o,l.getCell(5,d.value.length+r).border=o;l.getCell("A2").border=o,l.getCell("B2").border=o,l.getCell("C2").border=o,l.getCell("D2").border=o,l.getCell("D2").border=o,l.getCell("A5").border=o,l.getCell("B5").border=o,l.getCell("C5").border=o,l.getCell("D5").border=o,l.getCell("S5").border=o,l.getCell("T5").border=o,l.getCell(2,d.value.length+6).border=o,l.getCell(2,d.value.length+12).border=o,l.getCell(2,d.value.length+13).border=o,l.getCell(2,d.value.length+15).border=o,l.getCell(3,d.value.length+7).border=o;let n=1,a=5,u=!0;for(const r of i.value){let F=[n,r.name,r.code];for(let T=0;T<d.value.length;T++)T===15&&F.push(u?(r==null?void 0:r.halfI)||"":(r==null?void 0:r.hourI)||""),F.push(u?((S=r.days[T])==null?void 0:S.state)||"":((k=r.days[T])==null?void 0:k.time)||"");F.push(u?(r==null?void 0:r.halfII)||0:(r==null?void 0:r.hourII)||0,(r==null?void 0:r.contDays)||0,(r==null?void 0:r.contHour)||0,(r==null?void 0:r.overtime)||0,(r==null?void 0:r.night)||0,(r==null?void 0:r.weekend)||0,"",u?(r==null?void 0:r.numberNonAppearing[0])||"":(r==null?void 0:r.numberNonAppearing[1])||0,((E=r==null?void 0:r.appearing)==null?void 0:E.code)||"-",((U=r==null?void 0:r.appearing)==null?void 0:U.count)||"-",(r==null?void 0:r.weekendDays)||0);const ae=l.addRow(F);if(ae.border=o,!u){l.mergeCells(`A${a+n*2-1}:A${a+n*2}`),l.mergeCells(`B${a+n*2-1}:B${a+n*2}`),l.mergeCells(`C${a+n*2-1}:C${a+n*2}`);for(let T=d.value.length+3;T<=d.value.length+8;T++)l.mergeCells(`${c.cellsDynamically("D",T)}${a+n*2-1}:${c.cellsDynamically("D",T)}${a+n*2}`);l.mergeCells(`${c.cellsDynamically("D",d.value.length+12)}${a+n*2-1}:${c.cellsDynamically("D",d.value.length+12)}${a+n*2}`),n++}u=!u}let f="Чемарина Н. Ю.";y.odata.personal.forEach(r=>{r.roleName==="Специалист по кадрам и кадровому делопроизводству"&&(f=r.employeeName)}),l.mergeCells(`A${i.value.length+7}:B${i.value.length+7}`),l.mergeCells(`C${i.value.length+7}:G${i.value.length+7}`),l.mergeCells(`H${i.value.length+7}:M${i.value.length+7}`),l.mergeCells(`O${i.value.length+7}:T${i.value.length+7}`),l.mergeCells(`V${i.value.length+7}:AC${i.value.length+7}`),l.mergeCells(`AD${i.value.length+7}:AI${i.value.length+7}`),l.mergeCells(`AJ${i.value.length+7}:AL${i.value.length+7}`),l.mergeCells(`AM${i.value.length+7}:AP${i.value.length+7}`),l.mergeCells(`V${i.value.length+9}:AC${i.value.length+9}`),l.mergeCells(`AD${i.value.length+9}:AI${i.value.length+9}`),l.mergeCells(`AJ${i.value.length+9}:AL${i.value.length+9}`),l.mergeCells(`AM${i.value.length+9}:AP${i.value.length+9}`),l.getCell(`A${i.value.length+7}`).value=s("sheet.responsiblePerson"),l.getCell(`V${i.value.length+7}`).value=s("sheet.headStructural"),l.getCell(`C${i.value.length+7}`).value=R.value+":",l.getCell(`O${i.value.length+7}`).value=c.byInitials(y.fullName),l.getCell(`AD${i.value.length+7}`).value=R.value+":",l.getCell(`AM${i.value.length+7}`).value=c.byInitials(y.fullName),l.getCell(`V${i.value.length+9}`).value=s("sheet.HREmployee"),l.getCell(`AD${i.value.length+9}`).value="Специалист по кадрам и кадровому делопроизводству:",l.getCell(`AM${i.value.length+9}`).value=c.byInitials(f),l.getCell(`A${i.value.length+7}`).alignment={vertical:"middle",horizontal:"right",wrapText:!0},l.getCell(`C${i.value.length+7}`).alignment={vertical:"middle",horizontal:"right",wrapText:!0},l.getCell(`O${i.value.length+7}`).alignment={vertical:"middle",horizontal:"left"},l.getCell(`V${i.value.length+7}`).alignment={vertical:"middle",horizontal:"right",wrapText:!0},l.getCell(`AD${i.value.length+7}`).alignment={vertical:"middle",horizontal:"right",wrapText:!0},l.getCell(`AM${i.value.length+7}`).alignment={vertical:"middle",horizontal:"left"},l.getCell(`V${i.value.length+9}`).alignment={vertical:"middle",horizontal:"right",wrapText:!0},l.getCell(`AD${i.value.length+9}`).alignment={vertical:"middle",horizontal:"right",wrapText:!0},l.getCell(`AM${i.value.length+9}`).alignment={vertical:"middle",horizontal:"left"},l.getCell(`H${i.value.length+7}`).border={bottom:{style:"thin"}},l.getCell(`AJ${i.value.length+7}`).border={bottom:{style:"thin"}},l.getCell(`AJ${i.value.length+9}`).border={bottom:{style:"thin"}};const w=`export_${c.parseTime(Date.now(),"{dd}.{m}.{Y}")}.xlsx`,C=await t.xlsx.writeBuffer();de.saveAs(new Blob([C]),w),q.value=!1},Ce=()=>{let t=new Blob([G.value],{type:"text/plain;charset=utf-8"});de.saveAs(t,`Служебка_${c.byInitials(i.value[v.value.ids*2].fio)}_${c.parseTime(Date.now(),"{dd}.{m}.{Y}")}.html`)};return(t,l)=>{const m=e.resolveComponent("el-form-item"),o=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-slider"),n=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",$e,[N.checkEdit?(e.openBlock(),e.createBlock(e.unref(g.ElSelect),{key:0,modelValue:V.value,"onUpdate:modelValue":l[0]||(l[0]=a=>V.value=a),multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:"Select",style:{width:"240px","margin-bottom":".5rem","margin-right":".5rem"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q.value,a=>(e.openBlock(),e.createBlock(e.unref(g.ElOption),{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):e.createCommentVNode("",!0),N.checkEdit?(e.openBlock(),e.createBlock(e.unref(g.ElButton),{key:1,plain:"",onClick:l[1]||(l[1]=a=>P.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("workSchedule.jobTitle")),1)]),_:1})):e.createCommentVNode("",!0),l[19]||(l[19]=e.createElementVNode("div",{class:"expander"},null,-1)),N.checkEdit?(e.openBlock(),e.createBlock(e.unref(g.ElSwitch),{key:2,modelValue:H.value,"onUpdate:modelValue":l[2]||(l[2]=a=>H.value=a),"active-text":e.unref(s)("workSchedule.currentMonth"),"active-value":"0","inactive-value":"-1",style:{"margin-bottom":".5rem","margin-left":".5rem"}},null,8,["modelValue","active-text"])):e.createCommentVNode("",!0),e.createVNode(e.unref(g.ElSwitch),{modelValue:Z.value,"onUpdate:modelValue":l[3]||(l[3]=a=>Z.value=a),"active-text":t.$t("sheet.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(g.ElSwitch),{modelValue:A.value,"onUpdate:modelValue":l[4]||(l[4]=a=>A.value=a),"active-text":t.$t("sheet.simplified"),"active-value":"true","inactive-value":"false"},null,8,["modelValue","active-text"])]),e.createVNode(e.unref(g.ElTable),{id:"printTable",data:i.value,"span-method":he,border:"",style:{width:"100%"},size:"small","empty-text":e.unref(s)("sheet.emptyText"),align:"center",onCellClick:me,"max-height":Z.value,"default-sort":{prop:"mame",order:"descending"}},{default:e.withCtx(()=>[e.createVNode(e.unref(g.ElTableColumn),{label:e.unref(s)("sheet.title",{name:V.value[0]})+e.unref(M)(p.value,"month"),align:"center",height:"10"},{default:e.withCtx(()=>[e.createVNode(e.unref(g.ElTableColumn),{label:e.unref(s)("sheet.employee"),width:A.value==="false"?180:t.auto,align:"center"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].name),1)]),_:1},8,["label","width"]),e.createVNode(e.unref(g.ElTableColumn),{label:e.unref(s)("sheet.personnelNumber"),align:"center",width:"108"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].code),1)]),_:1},8,["label"]),e.createVNode(e.unref(g.ElTableColumn),{label:e.unref(s)("sheet.marks"),align:"center"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,a=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:a.day},[a.day<=15?(e.openBlock(),e.createBlock(e.unref(g.ElTableColumn),{key:0,width:"39","class-name":a.holidays+se(a.day),align:"center",label:a.day.toString()+`
2
2
  `+a.weekday},{default:e.withCtx(u=>[e.createElementVNode("div",ke,e.toDisplayString(ie(a.day,u.$index)||" "),1)]),_:2},1032,["class-name","label"])):e.createCommentVNode("",!0),a.day===15?(e.openBlock(),e.createBlock(e.unref(g.ElTableColumn),{key:1,label:e.unref(s)("sheet.halfMonth",{half:"I"}),align:"center",width:"120"},{default:e.withCtx(u=>[e.createTextVNode(e.toDisplayString(i.value[u.$index].key===0?i.value[u.$index].halfI:i.value[u.$index].hourI),1)]),_:1},8,["label"])):e.createCommentVNode("",!0),a.day>15?(e.openBlock(),e.createBlock(e.unref(g.ElTableColumn),{key:2,width:"39","class-name":a.holidays+se(a.day),align:"center",label:a.day.toString()+`
3
3
  `+a.weekday},{default:e.withCtx(u=>[e.createElementVNode("div",Ne,e.toDisplayString(ie(a.day,u.$index)||" "),1)]),_:2},1032,["class-name","label"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(e.unref(g.ElTableColumn),{label:e.unref(s)("sheet.halfMonth",{half:"II"}),align:"center",width:"120"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].key===0?i.value[a.$index].halfII:i.value[a.$index].hourII),1)]),_:1},8,["label"])]),_:1},8,["label"]),A.value==="false"?(e.openBlock(),e.createBlock(e.unref(g.ElTableColumn),{key:0,label:e.unref(s)("sheet.workedMonth"),align:"center"},{default:e.withCtx(()=>[e.createVNode(e.unref(g.ElTableColumn),{label:e.unref(s)("sheet.days"),align:"center","label-class-name":"turn",width:"34"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].contDays),1)]),_:1},8,["label"]),e.createVNode(e.unref(g.ElTableColumn),{label:e.unref(s)("sheet.hours"),align:"center"},{default:e.withCtx(()=>[e.createVNode(e.unref(g.ElTableColumn),{label:e.unref(s)("sheet.all"),align:"center","label-class-name":"turn",width:"40"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].contHour),1)]),_:1},8,["label"]),e.createVNode(e.unref(g.ElTableColumn),{label:e.unref(s)("sheet.overtime"),align:"center","label-class-name":"turn",width:"34"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].overtime),1)]),_:1},8,["label"]),e.createVNode(e.unref(g.ElTableColumn),{label:e.unref(s)("sheet.night"),align:"center","label-class-name":"turn",width:"34"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].night),1)]),_:1},8,["label"]),e.createVNode(e.unref(g.ElTableColumn),{label:e.unref(s)("sheet.weekend"),align:"center","label-class-name":"turn",width:"34"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].weekend),1)]),_:1},8,["label"])]),_:1},8,["label"])]),_:1},8,["label"])):e.createCommentVNode("",!0),A.value==="false"?(e.openBlock(),e.createBlock(e.unref(g.ElTableColumn),{key:1,label:e.unref(s)("sheet.numberNonAppearing"),align:"center"},{default:e.withCtx(a=>{var u;return[e.createTextVNode(e.toDisplayString((u=i.value[a.$index])==null?void 0:u.numberNonAppearing[i.value[a.$index].key]),1)]}),_:1},8,["label"])):e.createCommentVNode("",!0),A.value==="false"?(e.openBlock(),e.createBlock(e.unref(g.ElTableColumn),{key:2,label:e.unref(s)("sheet.them"),align:"center"},{default:e.withCtx(()=>[e.createVNode(e.unref(g.ElTableColumn),{label:e.unref(s)("sheet.code"),align:"center","label-class-name":"turn",width:"30"},{default:e.withCtx(a=>{var u;return[e.createTextVNode(e.toDisplayString((u=i.value[a.$index].appearing)==null?void 0:u.code),1)]}),_:1},8,["label"]),e.createVNode(e.unref(g.ElTableColumn),{label:e.unref(s)("sheet.count"),align:"center","label-class-name":"turn",width:"30"},{default:e.withCtx(a=>{var u;return[e.createTextVNode(e.toDisplayString((u=i.value[a.$index].appearing)==null?void 0:u.count),1)]}),_:1},8,["label"])]),_:1},8,["label"])):e.createCommentVNode("",!0),A.value==="false"?(e.openBlock(),e.createBlock(e.unref(g.ElTableColumn),{key:3,label:e.unref(s)("sheet.countWeekend"),align:"center"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].weekendDays),1)]),_:1},8,["label"])):e.createCommentVNode("",!0)]),_:1},8,["label"])]),_:1},8,["data","empty-text","max-height"]),e.withDirectives((e.openBlock(),e.createBlock(e.unref(g.ElButton),{disabled:q.value,plain:"",onClick:pe,style:{"margin-top":".5rem"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("workSchedule.exportExcel")),1)]),_:1},8,["disabled"])),[[n,q.value]]),e.createVNode(e.unref(g.ElDialog),{title:e.unref(s)("workSchedule.jobTitle"),modelValue:P.value,"onUpdate:modelValue":l[7]||(l[7]=a=>P.value=a),width:"400px"},{footer:e.withCtx(()=>[e.createVNode(e.unref(g.ElButton),{onClick:l[5]||(l[5]=a=>P.value=!1),size:"default"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("workSchedule.cancel")),1)]),_:1}),e.createVNode(e.unref(g.ElButton),{size:"default",type:"primary",onClick:l[6]||(l[6]=a=>{te(),P.value=!1})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("workSchedule.select")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(g.ElForm),{ref:"dialogForm",model:O.value,autocomplete:"on"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,a=>(e.openBlock(),e.createBlock(m,null,{default:e.withCtx(()=>[e.createVNode(e.unref(g.ElSwitch),{modelValue:a.val,"onUpdate:modelValue":u=>a.val=u,"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:B.value,"onUpdate:show":l[16]||(l[16]=a=>B.value=a),options:le.value},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"mx-context-menu-item",onClick:l[8]||(l[8]=a=>B.value=!1)},[e.createElementVNode("span",Ve,e.toDisplayString(v.value.name),1),l[20]||(l[20]=e.createElementVNode("div",{class:"expander"},null,-1)),e.createVNode(o,{"icon-class":"cross"})]),e.createVNode(e.unref(_.ContextMenuSeparator)),e.createElementVNode("div",null,[e.createElementVNode("div",null,[e.createVNode(e.unref(_.ContextMenuGroup),{label:W.value,style:{padding:"0 0 .5rem"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ve.value,a=>(e.openBlock(),e.createBlock(e.unref(_.ContextMenuItem),{key:a.value,label:a.label,onClick:u=>{v.value.rest=!0,Y.value=!1,K(a.value)},clickClose:!1},null,8,["label","onClick"]))),128))]),_:1},8,["label"])]),/^(РВ|Я|Н(?![Н])).*$/.test(v.value.failure)?(e.openBlock(),e.createElementBlock("div",Se,[e.createVNode(e.unref(_.ContextMenuItem),{clickClose:!1},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("workSchedule.with"))+":",1)]),_:1}),e.createVNode(h,{modelValue:x.value,"onUpdate:modelValue":l[9]||(l[9]=a=>x.value=a),step:1,min:0,max:19,style:{width:"100%"}},null,8,["modelValue"]),e.createVNode(e.unref(_.ContextMenuItem),{clickClose:!1},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("workSchedule.duration"))+":",1)]),_:1}),e.createVNode(h,{modelValue:D.value,"onUpdate:modelValue":l[10]||(l[10]=a=>D.value=a),step:1,min:4,max:e.unref(c.clamp)(x.value!==1?23-x.value:21,4,22)},null,8,["modelValue","max"])])):e.createCommentVNode("",!0),/^(|К|КВ|ОТ|Б|Р|ОЖ|У|ДО|УД|Г)$/.test(v.value.failure)?(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(e.unref(_.ContextMenuItem),{clickClose:!1},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(s)("sheet.count"))+":",1)]),_:1}),e.createVNode(h,{modelValue:L.value,"onUpdate:modelValue":l[11]||(l[11]=a=>L.value=a),step:1,min:1,max:d.value.length-v.value.day,style:{width:"100%"}},null,8,["modelValue","max"])])):e.createCommentVNode("",!0),e.createVNode(e.unref(_.ContextMenuItem),{class:"wrap"},{default:e.withCtx(()=>[v.value.rest?(e.openBlock(),e.createBlock(e.unref(g.ElButton),{key:0,onClick:l[12]||(l[12]=a=>K("reset"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("sheet.reset")),1)]),_:1})):e.createCommentVNode("",!0),Y.value?(e.openBlock(),e.createBlock(e.unref(g.ElButton),{key:1,onClick:l[13]||(l[13]=a=>K("save"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("sheet.save")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(g.ElButton),{onClick:l[14]||(l[14]=a=>B.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("sheet.cancel")),1)]),_:1}),J.value?(e.openBlock(),e.createBlock(e.unref(g.ElButton),{key:2,onClick:l[15]||(l[15]=a=>ye()),popovertarget:"my-service"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("sheet.service")),1)]),_:1})):e.createCommentVNode("",!0)]),_:1})])]),_:1},8,["show","options"]),e.createElementVNode("div",{id:"my-service",class:"sw-popover",popover:"",ref_key:"myService",ref:oe},[l[21]||(l[21]=e.createElementVNode("header",null,"Служебная записка",-1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.editor),{modelValue:G.value,"onUpdate:modelValue":l[17]||(l[17]=a=>G.value=a)},null,8,["modelValue"])),e.createElementVNode("footer",null,[e.createVNode(e.unref(g.ElButton),{onClick:l[18]||(l[18]=a=>oe.value.hidePopover()),size:"default"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("calendar.cancel")),1)]),_:1}),e.createVNode(e.unref(g.ElButton),{type:"success",plain:"",onClick:Ce},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("calendar.save")),1)]),_:1})])],512)],64)}}};module.exports=Ee;
@@ -1,7 +1,7 @@
1
- import { ref as y, computed as Ne, watch as ne, resolveComponent as $e, resolveDirective as He, createElementBlock as R, openBlock as C, Fragment as q, createElementVNode as A, createVNode as c, withDirectives as Oe, createBlock as S, createCommentVNode as M, unref as n, withCtx as m, renderList as ge, createTextVNode as D, toDisplayString as p, resolveDynamicComponent as Pe, nextTick as Re } from "vue";
1
+ import { ref as y, computed as Ne, watch as ne, resolveComponent as be, resolveDirective as He, createElementBlock as R, openBlock as C, Fragment as q, createElementVNode as A, createVNode as c, withDirectives as Oe, createBlock as S, createCommentVNode as M, unref as n, withCtx as m, renderList as ge, createTextVNode as D, toDisplayString as p, resolveDynamicComponent as Pe, nextTick as Re } from "vue";
2
2
  import { useI18n as We } from "vue-i18n";
3
- import { p as T, b as W, a as _e, h as Je, c as je, d as b } from "./index-2Mx6IUGl.js";
4
- import { ElSelect as Le, ElOption as Ge, ElButton as H, ElSwitch as me, ElTable as Ke, ElTableColumn as I, ElDialog as Xe, ElForm as qe } from "element-plus";
3
+ import { p as T, b as W, a as _e, h as Je, c as je, d as $ } from "./index-2Mx6IUGl.js";
4
+ import { ElSelect as Le, ElOption as Ge, ElButton as U, ElSwitch as me, ElTable as Ke, ElTableColumn as I, ElDialog as Xe, ElForm as qe } from "element-plus";
5
5
  import { ContextMenu as Ze, ContextMenuSeparator as Qe, ContextMenuGroup as el, ContextMenuItem as ue } from "@imengyu/vue3-context-menu";
6
6
  import { saveAs as Ae } from "file-saver";
7
7
  import * as ll from "exceljs";
@@ -24,7 +24,7 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
24
24
  editor: { type: Object, default: () => ({}) }
25
25
  },
26
26
  setup(oe) {
27
- const k = oe, { t: d, d: se } = We(), ie = y(!1), x = y([]), Z = y("0"), $ = y(new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1).setMonth((/* @__PURE__ */ new Date()).getMonth() + Number(Z.value))), r = y([]), B = y([]), ce = y("100%"), J = y("true"), fe = y([]), Me = y([
27
+ const k = oe, { t: d, d: se } = We(), ie = y(!1), x = y([]), Z = y("0"), b = y(new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1).setMonth((/* @__PURE__ */ new Date()).getMonth() + Number(Z.value))), r = y([]), z = y([]), ce = y("100%"), J = y("true"), fe = y([]), Me = y([
28
28
  { value: "Я", label: d("sheet.valid.1") },
29
29
  { value: "К", label: d("sheet.valid.2") },
30
30
  { value: "ОТ", label: d("sheet.valid.3") },
@@ -37,7 +37,7 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
37
37
  { value: "У", label: d("sheet.valid.10") },
38
38
  { value: "УД", label: d("sheet.valid.11") },
39
39
  { value: "Г", label: d("sheet.valid.12") }
40
- ]), we = y([]), Ve = y(0), V = y(9), _ = y(8), Y = y(0), G = y(0), K = y([]), j = y(!1), Q = y(!1), ye = y([]), ee = y([]), P = y(!1), de = y(!1), le = y(1), De = y(null), pe = y({
40
+ ]), we = y([]), Ve = y(0), V = y(9), _ = y(8), O = y(0), G = y(0), K = y([]), j = y(!1), Q = y(!1), ye = y([]), ee = y([]), P = y(!1), de = y(!1), le = y(1), De = y(null), pe = y({
41
41
  zIndex: 3,
42
42
  minWidth: 230,
43
43
  x: 500,
@@ -58,22 +58,22 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
58
58
  const g = Array.from(u.values());
59
59
  return [{ ...l, days: g, key: 0, ids: e, numberNonAppearing: [0, 0] }, { ...l, days: g, key: 1, ids: e, numberNonAppearing: [0, 0] }];
60
60
  }));
61
- ne(B, async (l, e) => {
61
+ ne(z, async (l, e) => {
62
62
  l !== e && (K.value = [], k.odata.personal.forEach((h) => {
63
63
  l.includes(h.divisionName) && (K.value.some((u) => (u == null ? void 0 : u.activeText) === h.roleName) || K.value.push({ val: !0, activeText: h.roleName }));
64
64
  }), Ce());
65
65
  }), ne(Z, (l) => {
66
- $.value = new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1).setMonth((/* @__PURE__ */ new Date()).getMonth() + Number(l)), ke(), Ce();
66
+ b.value = new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1).setMonth((/* @__PURE__ */ new Date()).getMonth() + Number(l)), ke(), Ce();
67
67
  }), ne(_, () => j.value = P.value), ne(V, () => j.value = P.value), ne(le, () => j.value = P.value);
68
68
  const Ee = async (l, e, h, u) => {
69
69
  if (console.log("row", l), console.log("column", e), e.level !== 3 || e.labelClassName === "turn" || e.no === 15 || e.no > r.value.length || !k.checkEdit) return "";
70
70
  v.value.ids = l.ids, v.value.key = l.key, v.value.day = e.no < 15 ? e.no : e.no - 1;
71
- const g = new Date($.value), t = `${g.getFullYear()}-${(g.getMonth() + 1).toString().padStart(2, "0")}-${(v.value.day + 1).toString().padStart(2, "0")}`, a = E.value.findIndex((f) => f.code === l.code);
72
- v.value.id = a !== -1 ? E.value[a].days.findIndex((f) => (f == null ? void 0 : f.day) === t) : a, V.value = typeof l.days[v.value.day].tips > "u" ? 9 : parseInt(l.days[v.value.day].tips.match(/(\d{1,2})/)), Y.value = typeof l.days[v.value.day].night > "u" ? 0 : parseInt(l.days[v.value.day].night), G.value = typeof l.days[v.value.day].overtime > "u" ? 0 : parseInt(l.days[v.value.day].overtime), _.value = l.days[v.value.day].time !== "-" ? parseInt(l.days[v.value.day].time) : 8;
71
+ const g = new Date(b.value), t = `${g.getFullYear()}-${(g.getMonth() + 1).toString().padStart(2, "0")}-${(v.value.day + 1).toString().padStart(2, "0")}`, a = E.value.findIndex((f) => f.code === l.code);
72
+ v.value.id = a !== -1 ? E.value[a].days.findIndex((f) => (f == null ? void 0 : f.day) === t) : a, V.value = typeof l.days[v.value.day].tips > "u" ? 9 : parseInt(l.days[v.value.day].tips.match(/(\d{1,2})/)), O.value = typeof l.days[v.value.day].night > "u" ? 0 : parseInt(l.days[v.value.day].night), G.value = typeof l.days[v.value.day].overtime > "u" ? 0 : parseInt(l.days[v.value.day].overtime), _.value = l.days[v.value.day].time !== "-" ? parseInt(l.days[v.value.day].time) : 8;
73
73
  const o = l.days.findIndex((f) => f.day === t);
74
74
  v.value.failure = l.days[o].state, pe.value.y = u.clientY, pe.value.x = u.clientX, v.value.rest = a !== -1 && v.value.id !== -1, v.value.name = W(l.fio), P.value = !0, await Re(), j.value = !1;
75
75
  }, ve = (l) => {
76
- const e = new Date($.value), h = `${e.getFullYear()}-${(e.getMonth() + 1).toString().padStart(2, "0")}-${(v.value.day + 1).toString().padStart(2, "0")}`;
76
+ const e = new Date(b.value), h = `${e.getFullYear()}-${(e.getMonth() + 1).toString().padStart(2, "0")}-${(v.value.day + 1).toString().padStart(2, "0")}`;
77
77
  let u = E.value.findIndex((w) => w.code === x.value[v.value.ids].code);
78
78
  v.value.id = u !== -1 ? E.value[u].days.findIndex((w) => (w == null ? void 0 : w.day) === `${e.getFullYear()}-${(e.getMonth() + 1).toString().padStart(2, "0")}-${(v.value.day + 1).toString().padStart(2, "0")}`) : u;
79
79
  let g = x.value[v.value.ids].days[v.value.day].state, t = l, a = "-", o, f, N;
@@ -87,10 +87,10 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
87
87
  break;
88
88
  case "save":
89
89
  let w = te.value.split('"');
90
- t = w[1], j.value = !1, w[2] !== "" && (a = _.value, N = "(" + w[2].split("(")[1], o = Y.value, f = G.value);
90
+ t = w[1], j.value = !1, w[2] !== "" && (a = _.value, N = "(" + w[2].split("(")[1], o = O.value, f = G.value);
91
91
  }
92
92
  l === "reset" ? (t = g, E.value[u].days.splice(v.value.id, 1)) : u === -1 ? E.value.push({ code: x.value[v.value.ids].code, days: [{ day: h, state: t, time: a, night: o, overtime: f, tips: N }] }) : v.value.id === -1 ? E.value[u].days.push({ day: h, state: t, time: a, night: o, overtime: f, tips: N }) : E.value[u].days[v.value.id] = { day: h, state: t, time: a, night: o, overtime: f, tips: N }, u = E.value.findIndex((w) => w.code === x.value[v.value.ids].code), k.workSchedule.addWorkSheet({
93
- date: T(new Date($.value), "{Y}-{m}-{dd}"),
93
+ date: T(new Date(b.value), "{Y}-{m}-{dd}"),
94
94
  data: [{
95
95
  name: x.value[v.value.ids].fio,
96
96
  days: E.value[u].days,
@@ -100,9 +100,9 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
100
100
  }, te = Ne(() => {
101
101
  de.value = !1;
102
102
  let l = x.value[v.value.ids].days[v.value.day], e = "";
103
- Y.value = 0, G.value = 0;
103
+ O.value = 0, G.value = 0;
104
104
  let h = _.value >= 22 ? V.value + _.value + 2 : V.value + _.value + 1, u = v.value.failure.split("/")[0];
105
- u = /^Н(?!Н$)С?$/.test(u) ? l.state !== "В" ? "Я" : "РВ" : u, /^(|Я|РВ)$/.test(u) && ((V.value < 6 || h > 22) && (e = "Н", Y.value = V.value < 6 ? Math.min(6, h) - V.value : 0, h <= 6 && (Y.value = _.value, u = ""), h === 7 && Y.value > 3 && Y.value--, Y.value += Math.max(22, h) - 22), _.value > l.time && u !== "РВ" && (e += "С", de.value = !0, G.value = _.value - l.time), /РВ/.test(u) && (de.value = !0)), e.length > 0 && u.length > 0 && (e = "/" + e);
105
+ u = /^Н(?!Н$)С?$/.test(u) ? l.state !== "В" ? "Я" : "РВ" : u, /^(|Я|РВ)$/.test(u) && ((V.value < 6 || h > 22) && (e = "Н", O.value = V.value < 6 ? Math.min(6, h) - V.value : 0, h <= 6 && (O.value = _.value, u = ""), h === 7 && O.value > 3 && O.value--, O.value += Math.max(22, h) - 22), _.value > l.time && u !== "РВ" && (e += "С", de.value = !0, G.value = _.value - l.time), /РВ/.test(u) && (de.value = !0)), e.length > 0 && u.length > 0 && (e = "/" + e);
106
106
  let g = `(${V.value}:00 - ${_.value >= 22 ? V.value + _.value + 2 : V.value + _.value + 1}:00)`, t = i.value[v.value.ids * 2].days[v.value.day].time !== "-" ? " " + _.value + " " + g : "";
107
107
  return '"' + u + e + '"' + t;
108
108
  }), Te = (l) => {
@@ -115,7 +115,7 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
115
115
  colspan: 0
116
116
  };
117
117
  }, ke = () => {
118
- const l = we.value, e = new Date($.value), h = new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
118
+ const l = we.value, e = new Date(b.value), h = new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
119
119
  let u = [], g = 0;
120
120
  for (let t = 1; t <= h; t++) {
121
121
  const a = T(e.setDate(t), "{Y}-{m}-{dd}");
@@ -125,13 +125,13 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
125
125
  }
126
126
  return Ve.value = g, r.value = u, k.odata.getPersonal({ dismissed: "false" }).then((t) => {
127
127
  var a;
128
- B.value.length === 0 && (B.value = [(a = t.find((o) => o.employeeName === k.fullName)) == null ? void 0 : a.divisionName]), t.forEach((o) => {
129
- fe.value.some((f) => o.dismissalDate.length > 0 && new Date(o.dismissalDate) < new Date($.value) || (f == null ? void 0 : f.value) === o.divisionName) || fe.value.push({ value: o.divisionName, label: o.divisionName, key: o.divisionName });
128
+ z.value.length === 0 && (z.value = [(a = t.find((o) => o.employeeName === k.fullName)) == null ? void 0 : a.divisionName]), t.forEach((o) => {
129
+ fe.value.some((f) => o.dismissalDate.length > 0 && new Date(o.dismissalDate) < new Date(b.value) || (f == null ? void 0 : f.value) === o.divisionName) || fe.value.push({ value: o.divisionName, label: o.divisionName, key: o.divisionName });
130
130
  });
131
131
  }), !0;
132
132
  }, Ce = () => {
133
133
  x.value = [], ee.value = [], ye.value = [], k.odata.personal.forEach((l) => {
134
- if (B.value.includes(l.divisionName) && K.value.some((e) => e.val && e.activeText === l.roleName) && (l.dismissalDate.length === 0 || new Date(l.dismissalDate) > new Date($.value))) {
134
+ if (z.value.includes(l.divisionName) && K.value.some((e) => e.val && e.activeText === l.roleName) && (l.dismissalDate.length === 0 || new Date(l.dismissalDate) > new Date(b.value))) {
135
135
  let e = W(l.employeeName);
136
136
  const h = {
137
137
  fio: l.employeeName,
@@ -149,24 +149,24 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
149
149
  l.employeeName === k.fullName && (ae.value = l.roleName);
150
150
  }), x.value.sort((l, e) => l.fio < e.fio ? -1 : l.fio > e.fio ? 1 : 0), x.value.forEach((l, e) => {
151
151
  l.ids = e, ee.value.push(l.code);
152
- }), k.workSchedule.getUsersYear({ code: ee.value, year: new Date($.value).getFullYear() }).then((l) => {
152
+ }), k.workSchedule.getUsersYear({ code: ee.value, year: new Date(b.value).getFullYear() }).then((l) => {
153
153
  l.forEach((e) => {
154
154
  e.dateStart && ye.value.push({ code: e.code, dateStart: e.dateStart, dateEnd: e.dateEnd });
155
155
  }), Ye();
156
156
  });
157
157
  }, Ye = () => {
158
- k.workSchedule.getWorkSheet({ code: ee.value, date: T(new Date($.value), "{Y}-{m}-{dd}") }).then(
158
+ k.workSchedule.getWorkSheet({ code: ee.value, date: T(new Date(b.value), "{Y}-{m}-{dd}") }).then(
159
159
  (l) => {
160
160
  E.value = [], l.forEach((e) => {
161
161
  e !== null && E.value.push({ code: e.code, days: e.data.days });
162
- }), k.workSchedule.getWorkSchedule({ code: ee.value, date: T(new Date($.value), "{Y}-{m}-{dd}") }).then(
162
+ }), k.workSchedule.getWorkSchedule({ code: ee.value, date: T(new Date(b.value), "{Y}-{m}-{dd}") }).then(
163
163
  (e) => {
164
164
  e.forEach((h, u) => {
165
165
  var t, a;
166
166
  if (h !== null) {
167
167
  x.value[u].days = [], h.data.days.forEach((o) => o.state = "Я");
168
168
  for (let o = 1; o <= r.value.length; o++) {
169
- let f = T(new Date($.value).setDate(o), "{Y}-{m}-{dd}");
169
+ let f = T(new Date(b.value).setDate(o), "{Y}-{m}-{dd}");
170
170
  const N = (t = h.data) == null ? void 0 : t.days.findIndex((w) => w.day === f);
171
171
  N === -1 ? he(o, u, "-", "В") : x.value[u].days.push((a = h.data) == null ? void 0 : a.days[N]);
172
172
  }
@@ -176,20 +176,20 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
176
176
  const g = x.value[u];
177
177
  if (g.employmentDate || g.dismissalDate)
178
178
  for (let o = 1; o <= r.value.length; o++) {
179
- const f = new Date(new Date($.value).setDate(o)), N = T(f, "{Y}-{m}-{dd}"), w = g.employmentDate && f < new Date(g.employmentDate), F = g.dismissalDate && f > new Date(g.dismissalDate);
180
- if (w || F) {
181
- const z = g.days.findIndex((O) => O.day === N);
182
- z !== -1 && (g.days[z].state = "-", g.days[z].time = "-");
179
+ const f = new Date(new Date(b.value).setDate(o)), N = T(f, "{Y}-{m}-{dd}"), w = g.employmentDate && f < new Date(g.employmentDate), B = g.dismissalDate && f > new Date(g.dismissalDate);
180
+ if (w || B) {
181
+ const Y = g.days.findIndex((H) => H.day === N);
182
+ Y !== -1 && (g.days[Y].state = "-", g.days[Y].time = "-");
183
183
  }
184
184
  }
185
185
  for (let o = 1; o <= r.value.length; o++) {
186
- let f = new Date(new Date($.value).getFullYear(), new Date($.value).getMonth(), o).getTime() + 1e3;
186
+ let f = new Date(new Date(b.value).getFullYear(), new Date(b.value).getMonth(), o).getTime() + 1e3;
187
187
  for (let N of ye.value) {
188
- const { dateStart: w, dateEnd: F, code: z } = N;
189
- if (w && F && z === x.value[u].code) {
190
- const O = new Date(_e(w)).getTime(), X = new Date(_e(F)).getTime();
191
- if (f >= O && f <= X) {
192
- const s = T(new Date($.value).setDate(o), "{Y}-{m}-{dd}"), L = x.value[u].days.findIndex((be) => be.day === s);
188
+ const { dateStart: w, dateEnd: B, code: Y } = N;
189
+ if (w && B && Y === x.value[u].code) {
190
+ const H = new Date(_e(w)).getTime(), X = new Date(_e(B)).getTime();
191
+ if (f >= H && f <= X) {
192
+ const s = T(new Date(b.value).setDate(o), "{Y}-{m}-{dd}"), L = x.value[u].days.findIndex(($e) => $e.day === s);
193
193
  L !== -1 ? x.value[u].days[L] = { day: s, time: "-", state: "ОТ" } : x.value[u].days.push({ day: s, time: "-", state: "ОТ" });
194
194
  }
195
195
  }
@@ -201,7 +201,7 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
201
201
  }
202
202
  );
203
203
  }, he = (l, e, h, u = "Я") => {
204
- const g = T(new Date($.value).setDate(l), "{Y}-{m}-{dd}");
204
+ const g = T(new Date(b.value).setDate(l), "{Y}-{m}-{dd}");
205
205
  x.value[e].days.push({
206
206
  day: g,
207
207
  time: h,
@@ -236,37 +236,37 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
236
236
  l.contDays = l.halfI + l.halfII, l.contHour = l.hourI + l.hourII;
237
237
  });
238
238
  }, Ie = (l, e) => {
239
- var o, f, N, w, F, z, O;
239
+ var o, f, N, w, B, Y, H;
240
240
  if (e === -1) return "";
241
- const h = i.value[e], u = new Date($.value), g = `${u.getFullYear()}-${(u.getMonth() + 1).toString().padStart(2, "0")}-${l.toString().padStart(2, "0")}`, t = h.days.findIndex((X) => X.day === g);
241
+ const h = i.value[e], u = new Date(b.value), g = `${u.getFullYear()}-${(u.getMonth() + 1).toString().padStart(2, "0")}-${l.toString().padStart(2, "0")}`, t = h.days.findIndex((X) => X.day === g);
242
242
  let a = 0;
243
- return (o = h.days[t]) != null && o.night && (a += h.days[t].night), (f = h.days[t]) != null && f.overtime && (a += h.days[t].overtime), t === -1 ? "" : h.key === 0 ? (N = h.days[t]) == null ? void 0 : N.state : ((w = h.days[t]) == null ? void 0 : w.time) === 0 ? a === 0 ? "-" : a : a === 0 || a === ((F = h.days[t]) == null ? void 0 : F.time) ? (z = h.days[t]) == null ? void 0 : z.time : `${(O = h.days[t]) == null ? void 0 : O.time}/${a}`;
243
+ return (o = h.days[t]) != null && o.night && (a += h.days[t].night), (f = h.days[t]) != null && f.overtime && (a += h.days[t].overtime), t === -1 ? "" : h.key === 0 ? (N = h.days[t]) == null ? void 0 : N.state : ((w = h.days[t]) == null ? void 0 : w.time) === 0 ? a === 0 ? "-" : a : a === 0 || a === ((B = h.days[t]) == null ? void 0 : B.time) ? (Y = h.days[t]) == null ? void 0 : Y.time : `${(H = h.days[t]) == null ? void 0 : H.time}/${a}`;
244
244
  };
245
- k.group && (B.value[0] = k.group), k.date && (Z.value = (/* @__PURE__ */ new Date(k.date + "T00:00:01")).getMonth()), Je().then((l) => {
245
+ k.group && (z.value[0] = k.group), k.date && (Z.value = (/* @__PURE__ */ new Date(k.date + "T00:00:01")).getMonth()), Je().then((l) => {
246
246
  we.value = l, ke();
247
247
  });
248
- const Se = (l) => new Date($.value).getMonth() === (/* @__PURE__ */ new Date()).getMonth() && l === (/* @__PURE__ */ new Date()).getDate() ? " today" : "", ze = () => {
248
+ const Se = (l) => new Date(b.value).getMonth() === (/* @__PURE__ */ new Date()).getMonth() && l === (/* @__PURE__ */ new Date()).getDate() ? " today" : "", ze = () => {
249
249
  let l = te.value.match(/(\d{1,2}):\d{2}\s*-\s*(\d{1,2})/), e = x.value[v.value.ids].days[v.value.day + 1].tips;
250
- return e = typeof e < "u" ? e.match(/(\d{1,2}):\d{2}\s*-\s*(\d{1,2})/) : [0, 9, 18], Y.value > 0 && (Number(l[1]) <= 6 ? l[1] = Number(l[1]) + Y.value : l[2] = Number(l[2]) - Y.value), Number(l[1]) < Number(e[1]) ? `${l[1]}:00 по ${Number(l[1]) + G.value}:00` : `${Number(l[2]) - G.value}:00 по ${l[2]}:00`;
250
+ return e = typeof e < "u" ? e.match(/(\d{1,2}):\d{2}\s*-\s*(\d{1,2})/) : [0, 9, 18], Number(l[1]) < Number(e[1]) ? `${l[1]}:00 по ${Number(l[1]) + G.value}:00` : `${Number(l[2]) - G.value}:00 по ${l[2]}:00`;
251
251
  }, Be = () => {
252
252
  let l = /РВ/.test(te.value), e = l ? te.value.match(/\(([^)]+)\)/)[1].replace("-", " по ") : ze();
253
- re.value = `<p style="position: absolute;"><img src="https://cp.avanta-telecom.ru${k.logo}" style="height: 3rem;"></p><div style="display:inline-block;margin-left:66%;width:34%;">Директору<br>ООО "АВАНТА ТЕЛЕКОМ" Пунину Д. В.<br><br>от ${ae.value} ${W(k.fullName)}</div><p>${B.value[0]}<br>СЛУЖЕБНАЯ ЗАПИСКА<br>${T(new Date($.value).setDate(v.value.day + 1), '"{dd}" {F} {Y}')}г.</p><p style="text-align:center;">Уважаемый Дмитрий Владимирович!</p><p>В связи с производственной необходимостью _________________, прошу привлечь к ${l ? "к работе в выходной день" : "сверхурочной работе"}, ${T(new Date($.value).setDate(v.value.day + 1), "{dd}.{m}.{Y}")} c ${e}, ${i.value[v.value.ids * 2].name.match(/\(([^)]+)\)/)[1]} ${i.value[v.value.ids * 2].fio} для выполнения вышеуказанных работ с его(её) письменного согласия.</p><p>${ae.value} ________________ ${W(k.fullName)}</p>`;
253
+ re.value = `<p style="position: absolute;"><img src="https://cp.avanta-telecom.ru${k.logo}" style="height: 3rem;"></p><div style="display:inline-block;margin-left:66%;width:34%;">Директору<br>ООО "АВАНТА ТЕЛЕКОМ" Пунину Д. В.<br><br>от ${ae.value} ${W(k.fullName)}</div><p>${z.value[0]}<br>СЛУЖЕБНАЯ ЗАПИСКА<br>${T(new Date(b.value).setDate(v.value.day + 1), '"{dd}" {F} {Y}')}г.</p><p style="text-align:center;">Уважаемый Дмитрий Владимирович!</p><p>В связи с производственной необходимостью _________________, прошу привлечь к ${l ? "к работе в выходной день" : "сверхурочной работе"}, ${T(new Date(b.value).setDate(v.value.day + 1), "{dd}.{m}.{Y}")} c ${e}, ${i.value[v.value.ids * 2].name.match(/\(([^)]+)\)/)[1]} ${i.value[v.value.ids * 2].fio} для выполнения вышеуказанных работ с его(её) письменного согласия.</p><p>${ae.value} ________________ ${W(k.fullName)}</p>`;
254
254
  }, Fe = async () => {
255
- var F, z, O, X;
255
+ var B, Y, H, X;
256
256
  ie.value = !0;
257
- const l = new ll.Workbook(), e = l.addWorksheet(se($.value, "month"), { pageSetup: { paperSize: 9, orientation: "landscape", fitToPage: !0 } }), h = { vertical: "middle", horizontal: "center" }, u = { top: { style: "thin" }, left: { style: "thin" }, bottom: { style: "thin" }, right: { style: "thin" } }, g = { vertical: "middle", horizontal: "center", wrapText: !0 };
258
- e.mergeCells(`A1:${b("A1", r.value.length + 15)}1`), e.mergeCells("A2:A4"), e.mergeCells("B2:B4"), e.mergeCells("C2:C4"), e.mergeCells("D5:R5"), e.mergeCells(`D2:${b("D2", r.value.length + 2)}2`), e.mergeCells(`${b("D2", r.value.length + 3)}2:${b("D2", r.value.length + 8)}2`), e.mergeCells(`${b("D2", r.value.length + 9)}2:${b("D2", r.value.length + 9)}4`), e.mergeCells(`${b("D2", r.value.length + 10)}2:${b("D2", r.value.length + 11)}2`), e.mergeCells(`${b("D2", r.value.length + 12)}2:${b("D2", r.value.length + 12)}4`), e.mergeCells(`${b("D3", r.value.length + 3)}3:${b("D3", r.value.length + 3)}4`), e.mergeCells(`${b("D3", r.value.length + 4)}3:${b("D3", r.value.length + 8)}3`), e.mergeCells(`${b("D3", r.value.length + 10)}3:${b("D3", r.value.length + 10)}4`), e.mergeCells(`${b("D3", r.value.length + 11)}3:${b("D3", r.value.length + 11)}4`), e.mergeCells(`T5:${b("D5", r.value.length + 1)}5`);
257
+ const l = new ll.Workbook(), e = l.addWorksheet(se(b.value, "month"), { pageSetup: { paperSize: 9, orientation: "landscape", fitToPage: !0 } }), h = { vertical: "middle", horizontal: "center" }, u = { top: { style: "thin" }, left: { style: "thin" }, bottom: { style: "thin" }, right: { style: "thin" } }, g = { vertical: "middle", horizontal: "center", wrapText: !0 };
258
+ e.mergeCells(`A1:${$("A1", r.value.length + 15)}1`), e.mergeCells("A2:A4"), e.mergeCells("B2:B4"), e.mergeCells("C2:C4"), e.mergeCells("D5:R5"), e.mergeCells(`D2:${$("D2", r.value.length + 2)}2`), e.mergeCells(`${$("D2", r.value.length + 3)}2:${$("D2", r.value.length + 8)}2`), e.mergeCells(`${$("D2", r.value.length + 9)}2:${$("D2", r.value.length + 9)}4`), e.mergeCells(`${$("D2", r.value.length + 10)}2:${$("D2", r.value.length + 11)}2`), e.mergeCells(`${$("D2", r.value.length + 12)}2:${$("D2", r.value.length + 12)}4`), e.mergeCells(`${$("D3", r.value.length + 3)}3:${$("D3", r.value.length + 3)}4`), e.mergeCells(`${$("D3", r.value.length + 4)}3:${$("D3", r.value.length + 8)}3`), e.mergeCells(`${$("D3", r.value.length + 10)}3:${$("D3", r.value.length + 10)}4`), e.mergeCells(`${$("D3", r.value.length + 11)}3:${$("D3", r.value.length + 11)}4`), e.mergeCells(`T5:${$("D5", r.value.length + 1)}5`);
259
259
  for (let s = 1; s <= r.value.length + 2; s++)
260
- e.mergeCells(`${b("D3", s)}3:${b("D4", s)}4`), e.getColumn(s + 3).width = 5, e.getColumn(s + 3).alignment = g, e.getCell(3, s + 3).border = u, s < 16 && (e.getCell(3, s + 3).value = s), s > 16 && (e.getCell(3, s + 3).value = s - 1);
261
- e.getCell("A1").value = d("sheet.title", { name: B.value[0] }) + se($.value, "month"), e.getCell("A2").value = d("sheet.listNumber"), e.getCell("B2").value = d("sheet.employee"), e.getCell("C2").value = d("sheet.personnelNumber"), e.getCell("D2").value = d("sheet.marks"), e.getCell("S3").value = d("sheet.halfMonth", { half: "I" }), e.getCell("A5").value = "1", e.getCell("B5").value = "2", e.getCell("C5").value = "3", e.getCell("D5").value = "4", e.getCell("S5").value = "5", e.getCell("T5").value = "6", e.getCell(5, r.value.length + 5).value = "7", e.getCell(2, r.value.length + 6).value = d("sheet.workedMonth"), e.getCell(2, r.value.length + 12).value = d("sheet.numberNonAppearing"), e.getCell(2, r.value.length + 13).value = d("sheet.them"), e.getCell(2, r.value.length + 15).value = d("sheet.countWeekend"), e.getCell(3, r.value.length + 5).value = d("sheet.halfMonth", { half: "II" }), e.getCell(3, r.value.length + 6).value = d("sheet.days"), e.getCell(3, r.value.length + 7).value = d("sheet.hours"), e.getCell(4, r.value.length + 7).value = d("sheet.all"), e.getCell(4, r.value.length + 8).value = d("sheet.overtime"), e.getCell(4, r.value.length + 9).value = d("sheet.night"), e.getCell(4, r.value.length + 10).value = d("sheet.weekend"), e.getCell(4, r.value.length + 13).value = d("sheet.code"), e.getCell(4, r.value.length + 14).value = d("sheet.count"), e.getRow(1).height = 40, e.getRow(2).height = 32, e.getRow(3).height = 20, e.getRow(4).height = 60, e.getColumn(1).width = 6, e.getColumn(2).width = 30, e.getColumn(3).width = 17, e.getColumn(19).width = 12, e.getColumn(r.value.length + 5).width = 12, e.getColumn(r.value.length + 12).width = 11, e.getColumn(r.value.length + 15).width = 11, e.getCell("A1").alignment = h, e.getColumn(1).alignment = g, e.getColumn(2).alignment = g, e.getColumn(3).alignment = g;
260
+ e.mergeCells(`${$("D3", s)}3:${$("D4", s)}4`), e.getColumn(s + 3).width = 5, e.getColumn(s + 3).alignment = g, e.getCell(3, s + 3).border = u, s < 16 && (e.getCell(3, s + 3).value = s), s > 16 && (e.getCell(3, s + 3).value = s - 1);
261
+ e.getCell("A1").value = d("sheet.title", { name: z.value[0] }) + se(b.value, "month"), e.getCell("A2").value = d("sheet.listNumber"), e.getCell("B2").value = d("sheet.employee"), e.getCell("C2").value = d("sheet.personnelNumber"), e.getCell("D2").value = d("sheet.marks"), e.getCell("S3").value = d("sheet.halfMonth", { half: "I" }), e.getCell("A5").value = "1", e.getCell("B5").value = "2", e.getCell("C5").value = "3", e.getCell("D5").value = "4", e.getCell("S5").value = "5", e.getCell("T5").value = "6", e.getCell(5, r.value.length + 5).value = "7", e.getCell(2, r.value.length + 6).value = d("sheet.workedMonth"), e.getCell(2, r.value.length + 12).value = d("sheet.numberNonAppearing"), e.getCell(2, r.value.length + 13).value = d("sheet.them"), e.getCell(2, r.value.length + 15).value = d("sheet.countWeekend"), e.getCell(3, r.value.length + 5).value = d("sheet.halfMonth", { half: "II" }), e.getCell(3, r.value.length + 6).value = d("sheet.days"), e.getCell(3, r.value.length + 7).value = d("sheet.hours"), e.getCell(4, r.value.length + 7).value = d("sheet.all"), e.getCell(4, r.value.length + 8).value = d("sheet.overtime"), e.getCell(4, r.value.length + 9).value = d("sheet.night"), e.getCell(4, r.value.length + 10).value = d("sheet.weekend"), e.getCell(4, r.value.length + 13).value = d("sheet.code"), e.getCell(4, r.value.length + 14).value = d("sheet.count"), e.getRow(1).height = 40, e.getRow(2).height = 32, e.getRow(3).height = 20, e.getRow(4).height = 60, e.getColumn(1).width = 6, e.getColumn(2).width = 30, e.getColumn(3).width = 17, e.getColumn(19).width = 12, e.getColumn(r.value.length + 5).width = 12, e.getColumn(r.value.length + 12).width = 11, e.getColumn(r.value.length + 15).width = 11, e.getCell("A1").alignment = h, e.getColumn(1).alignment = g, e.getColumn(2).alignment = g, e.getColumn(3).alignment = g;
262
262
  for (let s = 6; s <= 15; s++)
263
263
  e.getCell(5, r.value.length + s).value = s + 2, e.getColumn(r.value.length + s).alignment = g, e.getCell(4, r.value.length + s).border = u, e.getCell(5, r.value.length + s).border = u;
264
264
  e.getCell("A2").border = u, e.getCell("B2").border = u, e.getCell("C2").border = u, e.getCell("D2").border = u, e.getCell("D2").border = u, e.getCell("A5").border = u, e.getCell("B5").border = u, e.getCell("C5").border = u, e.getCell("D5").border = u, e.getCell("S5").border = u, e.getCell("T5").border = u, e.getCell(2, r.value.length + 6).border = u, e.getCell(2, r.value.length + 12).border = u, e.getCell(2, r.value.length + 13).border = u, e.getCell(2, r.value.length + 15).border = u, e.getCell(3, r.value.length + 7).border = u;
265
265
  let t = 1, a = 5, o = !0;
266
266
  for (const s of i.value) {
267
267
  let L = [t, s.name, s.code];
268
- for (let U = 0; U < r.value.length; U++)
269
- U === 15 && L.push(o ? (s == null ? void 0 : s.halfI) || "" : (s == null ? void 0 : s.hourI) || ""), L.push(o ? ((F = s.days[U]) == null ? void 0 : F.state) || "" : ((z = s.days[U]) == null ? void 0 : z.time) || "");
268
+ for (let F = 0; F < r.value.length; F++)
269
+ F === 15 && L.push(o ? (s == null ? void 0 : s.halfI) || "" : (s == null ? void 0 : s.hourI) || ""), L.push(o ? ((B = s.days[F]) == null ? void 0 : B.state) || "" : ((Y = s.days[F]) == null ? void 0 : Y.time) || "");
270
270
  L.push(
271
271
  o ? (s == null ? void 0 : s.halfII) || 0 : (s == null ? void 0 : s.hourII) || 0,
272
272
  (s == null ? void 0 : s.contDays) || 0,
@@ -276,16 +276,16 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
276
276
  (s == null ? void 0 : s.weekend) || 0,
277
277
  "",
278
278
  o ? (s == null ? void 0 : s.numberNonAppearing[0]) || "" : (s == null ? void 0 : s.numberNonAppearing[1]) || 0,
279
- ((O = s == null ? void 0 : s.appearing) == null ? void 0 : O.code) || "-",
279
+ ((H = s == null ? void 0 : s.appearing) == null ? void 0 : H.code) || "-",
280
280
  ((X = s == null ? void 0 : s.appearing) == null ? void 0 : X.count) || "-",
281
281
  (s == null ? void 0 : s.weekendDays) || 0
282
282
  );
283
- const be = e.addRow(L);
284
- if (be.border = u, !o) {
283
+ const $e = e.addRow(L);
284
+ if ($e.border = u, !o) {
285
285
  e.mergeCells(`A${a + t * 2 - 1}:A${a + t * 2}`), e.mergeCells(`B${a + t * 2 - 1}:B${a + t * 2}`), e.mergeCells(`C${a + t * 2 - 1}:C${a + t * 2}`);
286
- for (let U = r.value.length + 3; U <= r.value.length + 8; U++)
287
- e.mergeCells(`${b("D", U)}${a + t * 2 - 1}:${b("D", U)}${a + t * 2}`);
288
- e.mergeCells(`${b("D", r.value.length + 12)}${a + t * 2 - 1}:${b("D", r.value.length + 12)}${a + t * 2}`), t++;
286
+ for (let F = r.value.length + 3; F <= r.value.length + 8; F++)
287
+ e.mergeCells(`${$("D", F)}${a + t * 2 - 1}:${$("D", F)}${a + t * 2}`);
288
+ e.mergeCells(`${$("D", r.value.length + 12)}${a + t * 2 - 1}:${$("D", r.value.length + 12)}${a + t * 2}`), t++;
289
289
  }
290
290
  o = !o;
291
291
  }
@@ -300,13 +300,13 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
300
300
  Ae(l, `Служебка_${W(i.value[v.value.ids * 2].fio)}_${T(Date.now(), "{dd}.{m}.{Y}")}.html`);
301
301
  };
302
302
  return (l, e) => {
303
- const h = $e("el-form-item"), u = $e("svg-icon"), g = $e("el-slider"), t = He("loading");
303
+ const h = be("el-form-item"), u = be("svg-icon"), g = be("el-slider"), t = He("loading");
304
304
  return C(), R(q, null, [
305
305
  A("div", al, [
306
306
  oe.checkEdit ? (C(), S(n(Le), {
307
307
  key: 0,
308
- modelValue: B.value,
309
- "onUpdate:modelValue": e[0] || (e[0] = (a) => B.value = a),
308
+ modelValue: z.value,
309
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => z.value = a),
310
310
  multiple: "",
311
311
  "collapse-tags": "",
312
312
  "collapse-tags-tooltip": "",
@@ -322,7 +322,7 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
322
322
  ]),
323
323
  _: 1
324
324
  }, 8, ["modelValue"])) : M("", !0),
325
- oe.checkEdit ? (C(), S(n(H), {
325
+ oe.checkEdit ? (C(), S(n(U), {
326
326
  key: 1,
327
327
  plain: "",
328
328
  onClick: e[1] || (e[1] = (a) => Q.value = !0)
@@ -372,7 +372,7 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
372
372
  }, {
373
373
  default: m(() => [
374
374
  c(n(I), {
375
- label: n(d)("sheet.title", { name: B.value[0] }) + n(se)($.value, "month"),
375
+ label: n(d)("sheet.title", { name: z.value[0] }) + n(se)(b.value, "month"),
376
376
  align: "center",
377
377
  height: "10"
378
378
  }, {
@@ -594,7 +594,7 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
594
594
  ]),
595
595
  _: 1
596
596
  }, 8, ["data", "empty-text", "max-height"]),
597
- Oe((C(), S(n(H), {
597
+ Oe((C(), S(n(U), {
598
598
  disabled: ie.value,
599
599
  plain: "",
600
600
  onClick: Fe,
@@ -614,7 +614,7 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
614
614
  width: "400px"
615
615
  }, {
616
616
  footer: m(() => [
617
- c(n(H), {
617
+ c(n(U), {
618
618
  onClick: e[5] || (e[5] = (a) => Q.value = !1),
619
619
  size: "default"
620
620
  }, {
@@ -623,7 +623,7 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
623
623
  ]),
624
624
  _: 1
625
625
  }),
626
- c(n(H), {
626
+ c(n(U), {
627
627
  size: "default",
628
628
  type: "primary",
629
629
  onClick: e[6] || (e[6] = (a) => {
@@ -740,7 +740,7 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
740
740
  ])) : M("", !0),
741
741
  c(n(ue), { class: "wrap" }, {
742
742
  default: m(() => [
743
- v.value.rest ? (C(), S(n(H), {
743
+ v.value.rest ? (C(), S(n(U), {
744
744
  key: 0,
745
745
  onClick: e[12] || (e[12] = (a) => ve("reset"))
746
746
  }, {
@@ -749,7 +749,7 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
749
749
  ]),
750
750
  _: 1
751
751
  })) : M("", !0),
752
- j.value ? (C(), S(n(H), {
752
+ j.value ? (C(), S(n(U), {
753
753
  key: 1,
754
754
  onClick: e[13] || (e[13] = (a) => ve("save"))
755
755
  }, {
@@ -758,7 +758,7 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
758
758
  ]),
759
759
  _: 1
760
760
  })) : M("", !0),
761
- c(n(H), {
761
+ c(n(U), {
762
762
  onClick: e[14] || (e[14] = (a) => P.value = !1)
763
763
  }, {
764
764
  default: m(() => [
@@ -766,7 +766,7 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
766
766
  ]),
767
767
  _: 1
768
768
  }),
769
- de.value ? (C(), S(n(H), {
769
+ de.value ? (C(), S(n(U), {
770
770
  key: 2,
771
771
  onClick: e[15] || (e[15] = (a) => Be()),
772
772
  popovertarget: "my-service"
@@ -796,7 +796,7 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
796
796
  "onUpdate:modelValue": e[17] || (e[17] = (a) => re.value = a)
797
797
  }, null, 8, ["modelValue"])),
798
798
  A("footer", null, [
799
- c(n(H), {
799
+ c(n(U), {
800
800
  onClick: e[18] || (e[18] = (a) => De.value.hidePopover()),
801
801
  size: "default"
802
802
  }, {
@@ -805,7 +805,7 @@ const al = { class: "nav" }, tl = { style: { height: "20px", width: "100%", disp
805
805
  ]),
806
806
  _: 1
807
807
  }),
808
- c(n(H), {
808
+ c(n(U), {
809
809
  type: "success",
810
810
  plain: "",
811
811
  onClick: Ue
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studio-west/employees",
3
- "version": "0.6.52",
3
+ "version": "0.6.54",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -35,7 +35,7 @@
35
35
  "author": "Alexander Efimov",
36
36
  "license": "Commercial",
37
37
  "dependencies": {
38
- "@studio-west/component-sw": "^0.10.12",
38
+ "@studio-west/component-sw": "^0.10.14",
39
39
  "js-cookie": "^3.0.5",
40
40
  "vue": "^3.5.25"
41
41
  }