@studio-west/employees 0.5.3 → 0.5.5

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"),$=require("vue-i18n"),p=require("./index-CHGzf-XH.cjs"),o=require("element-plus"),F={style:{height:"20px",width:"100%",display:"inline-block"}},Y={style:{height:"20px",width:"100%",display:"inline-block"}},H={__name:"SheetTable",props:{checkEdit:{type:Boolean,default:()=>!0},odata:Object,workSchedule:Object,fullName:{type:String,default:"Вы"}},setup(x){const g=x,{t:u,d:C}=$.useI18n(),c=e.ref([]),w=e.ref("0"),y=e.ref(new Date(new Date().getFullYear(),new Date().getMonth(),1).setMonth(new Date().getMonth()+Number(w.value))),h=e.ref([]),v=e.ref("all"),N=e.ref([{value:"all",label:"Все",key:"all"}]),T=e.ref([]),k=e.ref(0),b=e.ref([]);e.watch(v,async(t,l)=>{t!==l&&(b.value=[],confirm.value=!1,g.odata.personal.forEach(a=>{a.divisionName===t&&(b.value.some(r=>(r==null?void 0:r.activeText)===a.roleName)||b.value.push({val:!0,activeText:a.roleName}))}),D())}),e.watch(w,t=>{y.value=new Date(new Date().getFullYear(),new Date().getMonth(),1).setMonth(new Date().getMonth()+Number(t)),V()});const i=e.computed(()=>c.value.flatMap((t,l)=>[{...t,key:0,ids:l},{...t,key:1,ids:l}])),I=t=>{if(t.columnIndex<2||t.columnIndex>h.value.length+3&&t.columnIndex<h.value.length+9||t.columnIndex>h.value.length+11)return i.value[t.rowIndex].key===0?{rowspan:2,colspan:1}:{rowspan:0,colspan:0}},V=()=>{const t=T.value,l=new Date(y.value),a=new Date(l.getFullYear(),l.getMonth()+1,0).getDate();let r=[],f=0;for(let d=1;d<=a;d++){const n=p.parseTime(l.setDate(d),"{Y}-{m}-{dd}");f+=t.nowork.includes(n)||t.holidays.includes(n)?0:t.preholidays.includes(n)?7:8;let s=t.nowork.includes(n)?"nowork":t.holidays.includes(n)?"holiday":t.preholidays.includes(n)?"preholiday":"";r.push({day:d,holidays:s,weekday:C(new Date(l.getFullYear(),l.getMonth(),d),"day")})}k.value=f,h.value=r,g.odata.getPersonal({}).then(d=>{var n;v.value=(n=d.find(s=>s.employeeName===g.fullName))==null?void 0:n.divisionName,d.forEach(s=>{N.value.some(m=>(m==null?void 0:m.value)===s.divisionName)||N.value.push({value:s.divisionName,label:s.divisionName,key:s.divisionName}),s.divisionName===v.value&&!b.value.some(m=>(m==null?void 0:m.activeText)===s.roleName)&&b.value.push({val:!0,activeText:s.roleName})}),D()})},D=()=>{c.value=[];let t=[];g.odata.personal.forEach(l=>{if(l.divisionName===v.value&&b.value.some(a=>a.val&&a.activeText===l.roleName)){let a=p.byInitials(l.employeeName);t.push(l.employeeKey),c.value.push({name:a+" ("+l.roleName+")",code:l.employeeKey,days:[],contHour:0,id:!1,ids:c.value.length})}}),B(t)},B=t=>{g.workSchedule.getWorkSchedule({code:t,date:p.parseTime(new Date(y.value),"{Y}-{m}-{dd}")}).then(l=>{l.forEach((a,r)=>{var f,d;if(a!==null){a.data.days.forEach(n=>n.state="Я");for(let n=1;n<=h.value.length;n++){let s=p.parseTime(new Date(y.value).setDate(n),"{Y}-{m}-{dd}");const m=(f=a.data)==null?void 0:f.days.findIndex(M=>M.day===s);m===-1?c.value[r].days.push({day:s,time:"-",state:"В"}):c.value[r].days.push((d=a.data)==null?void 0:d.days[m])}}else{c.value[r].days=[];for(let n=1;n<=h.value.length;n++)h.value[n-1].holidays===""?S(n,r,8):h.value[n-1].holidays==="preholiday"?S(n,r,7):c.value[r].days.push({day:p.parseTime(new Date(y.value).setDate(n),"{Y}-{m}-{dd}"),time:"-",state:"В"})}}),_()})},S=(t,l,a)=>{const r=p.parseTime(new Date(y.value).setDate(t),"{Y}-{m}-{dd}");ind===-1&&c.value[l].days.push({day:r,time:a,state:"Я"})},_=()=>{c.value.forEach(t=>{t.hourI=0,t.hourII=0,t.halfII=0,t.halfI=0,t.weekend=0,t.weekendDays=0,t.night=0;for(let l=0;l<t.days.length;l++)l<15&&t.days[l].time!=="-"&&(t.hourI+=t.days[l].time),l<15&&t.days[l].state==="Я"&&t.halfI++,l>=15&&t.days[l].time!=="-"&&(t.hourII+=t.days[l].time),l>=15&&t.days[l].state==="Я"&&t.halfII++,t.days[l].state==="Н"&&(t.night+=t.days[l].time),t.days[l].state==="РВ"&&(t.weekend+=t.days[l].time),t.days[l].state==="В"&&t.weekendDays++;t.contDays=t.halfI+t.halfII,t.contHour=t.hourI+t.hourII,t.overtime=0,k.value<t.contHour&&(t.overtime=t.contHour-k.value),t.numberNonAppearing=0,t.appearing={code:"-",countH:"-"}})},E=(t,l)=>{var d,n;if(l===-1)return"";const a=new Date(y.value),r=`${a.getFullYear()}-${(a.getMonth()+1).toString().padStart(2,"0")}-${t.toString().padStart(2,"0")}`,f=i.value[l].days.findIndex(s=>s.day===r);return f===-1?"":i.value[l].key===0?(d=i.value[l].days[f])==null?void 0:d.state:(n=i.value[l].days[f])==null?void 0:n.time};return p.holidays().then(t=>{T.value=t,V()}),(t,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[x.checkEdit?(e.openBlock(),e.createBlock(e.unref(o.ElSelect),{key:0,modelValue:v.value,"onUpdate:modelValue":l[0]||(l[0]=a=>v.value=a),placeholder:"Select",style:{width:"240px","margin-bottom":".5rem","margin-right":".5rem"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,a=>(e.openBlock(),e.createBlock(e.unref(o.ElOption),{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):e.createCommentVNode("",!0),x.checkEdit?(e.openBlock(),e.createBlock(e.unref(o.ElSwitch),{key:1,modelValue:w.value,"onUpdate:modelValue":l[1]||(l[1]=a=>w.value=a),"active-text":e.unref(u)("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(o.ElTable),{id:"printTable",data:i.value,"span-method":I,border:"",style:{width:"100%"},size:"small","empty-text":e.unref(u)("sheet.emptyText"),align:"center",onCellClick:t.coMenu},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElTableColumn),{label:e.unref(u)("sheet.title",{name:v.value})+e.unref(C)(y.value,"month"),align:"center",height:"10"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElTableColumn),{label:e.unref(u)("sheet.employee"),width:"180",align:"center"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].name),1)]),_:1},8,["label"]),e.createVNode(e.unref(o.ElTableColumn),{label:e.unref(u)("sheet.personnelNumber"),align:"center"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].code),1)]),_:1},8,["label"]),e.createVNode(e.unref(o.ElTableColumn),{label:e.unref(u)("sheet.marks"),align:"center"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,a=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:a.day},[a.day<=15?(e.openBlock(),e.createBlock(e.unref(o.ElTableColumn),{key:0,width:"30","class-name":a.holidays,align:"center",label:a.day.toString()+`
2
- `+a.weekday},{default:e.withCtx(r=>[e.createElementVNode("div",F,e.toDisplayString(E(a.day,r.$index)||" "),1)]),_:2},1032,["class-name","label"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(e.unref(o.ElTableColumn),{label:e.unref(u)("sheet.halfMonth",{half:"I"}),align:"center"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].dateStart),1)]),_:1},8,["label"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,a=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:a.day},[a.day>15?(e.openBlock(),e.createBlock(e.unref(o.ElTableColumn),{key:0,width:"30","class-name":a.holidays,align:"center",label:a.day.toString()+`
3
- `+a.weekday},{default:e.withCtx(r=>[e.createElementVNode("div",Y,e.toDisplayString(E(a.day,r.$index)||" "),1)]),_:2},1032,["class-name","label"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(e.unref(o.ElTableColumn),{label:e.unref(u)("sheet.halfMonth",{half:"II"}),align:"center"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].dateStart),1)]),_:1},8,["label"])]),_:1},8,["label"]),e.createVNode(e.unref(o.ElTableColumn),{label:e.unref(u)("sheet.workedMonth"),align:"center"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElTableColumn),{label:e.unref(u)("sheet.days"),align:"center","label-class-name":"turn",width:"30"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].dateStart),1)]),_:1},8,["label"]),e.createVNode(e.unref(o.ElTableColumn),{label:e.unref(u)("sheet.hours"),align:"center"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElTableColumn),{label:e.unref(u)("sheet.all"),align:"center","label-class-name":"turn",width:"30"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].dateStart),1)]),_:1},8,["label"]),e.createVNode(e.unref(o.ElTableColumn),{label:e.unref(u)("sheet.overtime"),align:"center","label-class-name":"turn",width:"30"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].dateStart),1)]),_:1},8,["label"]),e.createVNode(e.unref(o.ElTableColumn),{label:e.unref(u)("sheet.night"),align:"center","label-class-name":"turn",width:"30"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].dateStart),1)]),_:1},8,["label"]),e.createVNode(e.unref(o.ElTableColumn),{label:e.unref(u)("sheet.weekend"),align:"center","label-class-name":"turn",width:"30"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].dateStart),1)]),_:1},8,["label"])]),_:1},8,["label"])]),_:1},8,["label"]),e.createVNode(e.unref(o.ElTableColumn),{label:e.unref(u)("sheet.numberNonAppearing"),align:"center"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].dateStart),1)]),_:1},8,["label"]),e.createVNode(e.unref(o.ElTableColumn),{label:e.unref(u)("sheet.them"),align:"center"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElTableColumn),{label:e.unref(u)("sheet.code"),align:"center","label-class-name":"turn",width:"30"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].dateStart),1)]),_:1},8,["label"]),e.createVNode(e.unref(o.ElTableColumn),{label:e.unref(u)("sheet.count"),align:"center","label-class-name":"turn",width:"30"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].dateStart),1)]),_:1},8,["label"])]),_:1},8,["label"]),e.createVNode(e.unref(o.ElTableColumn),{label:e.unref(u)("sheet.countWeekend"),align:"center"},{default:e.withCtx(a=>[e.createTextVNode(e.toDisplayString(i.value[a.$index].dateStart),1)]),_:1},8,["label"])]),_:1},8,["label"])]),_:1},8,["data","empty-text","onCellClick"])],64))}};module.exports=H;
1
+ "use strict";const e=require("vue"),M=require("vue-i18n"),p=require("./index-CHGzf-XH.cjs"),r=require("element-plus"),F={style:{height:"20px",width:"100%",display:"inline-block"}},Y={style:{height:"20px",width:"100%",display:"inline-block"}},H={__name:"SheetTable",props:{checkEdit:{type:Boolean,default:()=>!0},odata:Object,workSchedule:Object,fullName:{type:String,default:"Вы"}},setup(w){const g=w,{t:i,d:C}=M.useI18n(),c=e.ref([]),x=e.ref("0"),y=e.ref(new Date(new Date().getFullYear(),new Date().getMonth(),1).setMonth(new Date().getMonth()+Number(x.value))),h=e.ref([]),v=e.ref("all"),N=e.ref([{value:"all",label:"Все",key:"all"}]),T=e.ref([]),k=e.ref(0),b=e.ref([]);e.watch(v,async(a,l)=>{a!==l&&(b.value=[],confirm.value=!1,g.odata.personal.forEach(t=>{t.divisionName===a&&(b.value.some(n=>(n==null?void 0:n.activeText)===t.roleName)||b.value.push({val:!0,activeText:t.roleName}))}),V())}),e.watch(x,a=>{y.value=new Date(new Date().getFullYear(),new Date().getMonth(),1).setMonth(new Date().getMonth()+Number(a)),D()});const u=e.computed(()=>c.value.flatMap((a,l)=>[{...a,key:0,ids:l},{...a,key:1,ids:l}])),S=a=>{if(a.columnIndex<2||a.columnIndex>h.value.length+3&&a.columnIndex<h.value.length+9||a.columnIndex>h.value.length+11)return u.value[a.rowIndex].key===0?{rowspan:2,colspan:1}:{rowspan:0,colspan:0}},D=()=>{const a=T.value,l=new Date(y.value),t=new Date(l.getFullYear(),l.getMonth()+1,0).getDate();let n=[],f=0;for(let d=1;d<=t;d++){const o=p.parseTime(l.setDate(d),"{Y}-{m}-{dd}");f+=a.nowork.includes(o)||a.holidays.includes(o)?0:a.preholidays.includes(o)?7:8;let s=a.nowork.includes(o)?"nowork":a.holidays.includes(o)?"holiday":a.preholidays.includes(o)?"preholiday":"";n.push({day:d,holidays:s,weekday:C(new Date(l.getFullYear(),l.getMonth(),d),"day")})}k.value=f,h.value=n,g.odata.getPersonal({}).then(d=>{var o;v.value=(o=d.find(s=>s.employeeName===g.fullName))==null?void 0:o.divisionName,d.forEach(s=>{N.value.some(m=>(m==null?void 0:m.value)===s.divisionName)||N.value.push({value:s.divisionName,label:s.divisionName,key:s.divisionName}),s.divisionName===v.value&&!b.value.some(m=>(m==null?void 0:m.activeText)===s.roleName)&&b.value.push({val:!0,activeText:s.roleName})}),V()})},V=()=>{c.value=[];let a=[];g.odata.personal.forEach(l=>{if(l.divisionName===v.value&&b.value.some(t=>t.val&&t.activeText===l.roleName)){let t=p.byInitials(l.employeeName);a.push(l.employeeKey),c.value.push({name:t+" ("+l.roleName+")",code:l.employeeKey,days:[],contHour:0,id:!1,ids:c.value.length})}}),B(a)},B=a=>{g.workSchedule.getWorkSchedule({code:a,date:p.parseTime(new Date(y.value),"{Y}-{m}-{dd}")}).then(l=>{l.forEach((t,n)=>{var f,d;if(t!==null){t.data.days.forEach(o=>o.state="Я");for(let o=1;o<=h.value.length;o++){let s=p.parseTime(new Date(y.value).setDate(o),"{Y}-{m}-{dd}");const m=(f=t.data)==null?void 0:f.days.findIndex($=>$.day===s);m===-1?c.value[n].days.push({day:s,time:"-",state:"В"}):c.value[n].days.push((d=t.data)==null?void 0:d.days[m])}}else{c.value[n].days=[];for(let o=1;o<=h.value.length;o++)h.value[o-1].holidays===""?E(o,n,8):h.value[o-1].holidays==="preholiday"?E(o,n,7):c.value[n].days.push({day:p.parseTime(new Date(y.value).setDate(o),"{Y}-{m}-{dd}"),time:"-",state:"В"})}}),_()})},E=(a,l,t)=>{const n=p.parseTime(new Date(y.value).setDate(a),"{Y}-{m}-{dd}");c.value[l].days.push({day:n,time:t,state:"Я"})},_=()=>{c.value.forEach(a=>{a.hourI=0,a.hourII=0,a.halfII=0,a.halfI=0,a.weekend=0,a.weekendDays=0,a.night=0;for(let l=0;l<a.days.length;l++)l<15&&a.days[l].time!=="-"&&(a.hourI+=a.days[l].time),l<15&&a.days[l].state==="Я"&&a.halfI++,l>=15&&a.days[l].time!=="-"&&(a.hourII+=a.days[l].time),l>=15&&a.days[l].state==="Я"&&a.halfII++,a.days[l].state==="Н"&&(a.night+=a.days[l].time),a.days[l].state==="РВ"&&(a.weekend+=a.days[l].time),a.days[l].state==="В"&&a.weekendDays++;a.contDays=a.halfI+a.halfII,a.contHour=a.hourI+a.hourII,a.overtime=0,k.value<a.contHour&&(a.overtime=a.contHour-k.value),a.numberNonAppearing=0,a.appearing={code:"-",countH:"-"}})},I=(a,l)=>{var d,o;if(l===-1)return"";const t=new Date(y.value),n=`${t.getFullYear()}-${(t.getMonth()+1).toString().padStart(2,"0")}-${a.toString().padStart(2,"0")}`,f=u.value[l].days.findIndex(s=>s.day===n);return f===-1?"":u.value[l].key===0?(d=u.value[l].days[f])==null?void 0:d.state:(o=u.value[l].days[f])==null?void 0:o.time};return p.holidays().then(a=>{T.value=a,D()}),(a,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[w.checkEdit?(e.openBlock(),e.createBlock(e.unref(r.ElSelect),{key:0,modelValue:v.value,"onUpdate:modelValue":l[0]||(l[0]=t=>v.value=t),placeholder:"Select",style:{width:"240px","margin-bottom":".5rem","margin-right":".5rem"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,t=>(e.openBlock(),e.createBlock(e.unref(r.ElOption),{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):e.createCommentVNode("",!0),w.checkEdit?(e.openBlock(),e.createBlock(e.unref(r.ElSwitch),{key:1,modelValue:x.value,"onUpdate:modelValue":l[1]||(l[1]=t=>x.value=t),"active-text":e.unref(i)("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(r.ElTable),{id:"printTable",data:u.value,"span-method":S,border:"",style:{width:"100%"},size:"small","empty-text":e.unref(i)("sheet.emptyText"),align:"center",onCellClick:a.coMenu},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElTableColumn),{label:e.unref(i)("sheet.title",{name:v.value})+e.unref(C)(y.value,"month"),align:"center",height:"10"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElTableColumn),{label:e.unref(i)("sheet.employee"),width:"180",align:"center"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(u.value[t.$index].name),1)]),_:1},8,["label"]),e.createVNode(e.unref(r.ElTableColumn),{label:e.unref(i)("sheet.personnelNumber"),align:"center"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(u.value[t.$index].code),1)]),_:1},8,["label"]),e.createVNode(e.unref(r.ElTableColumn),{label:e.unref(i)("sheet.marks"),align:"center"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,t=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t.day},[t.day<=15?(e.openBlock(),e.createBlock(e.unref(r.ElTableColumn),{key:0,width:"30","class-name":t.holidays,align:"center",label:t.day.toString()+`
2
+ `+t.weekday},{default:e.withCtx(n=>[e.createElementVNode("div",F,e.toDisplayString(I(t.day,n.$index)||" "),1)]),_:2},1032,["class-name","label"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(e.unref(r.ElTableColumn),{label:e.unref(i)("sheet.halfMonth",{half:"I"}),align:"center"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(u.value[t.$index].key===0?u.value[t.$index].halfI:u.value[t.$index].hourI),1)]),_:1},8,["label"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,t=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t.day},[t.day>15?(e.openBlock(),e.createBlock(e.unref(r.ElTableColumn),{key:0,width:"30","class-name":t.holidays,align:"center",label:t.day.toString()+`
3
+ `+t.weekday},{default:e.withCtx(n=>[e.createElementVNode("div",Y,e.toDisplayString(I(t.day,n.$index)||" "),1)]),_:2},1032,["class-name","label"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(e.unref(r.ElTableColumn),{label:e.unref(i)("sheet.halfMonth",{half:"II"}),align:"center"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(u.value[t.$index].key===0?u.value[t.$index].halfII:u.value[t.$index].hourII),1)]),_:1},8,["label"])]),_:1},8,["label"]),e.createVNode(e.unref(r.ElTableColumn),{label:e.unref(i)("sheet.workedMonth"),align:"center"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElTableColumn),{label:e.unref(i)("sheet.days"),align:"center","label-class-name":"turn",width:"34"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(u.value[t.$index].contDays),1)]),_:1},8,["label"]),e.createVNode(e.unref(r.ElTableColumn),{label:e.unref(i)("sheet.hours"),align:"center"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElTableColumn),{label:e.unref(i)("sheet.all"),align:"center","label-class-name":"turn",width:"40"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(u.value[t.$index].contHour),1)]),_:1},8,["label"]),e.createVNode(e.unref(r.ElTableColumn),{label:e.unref(i)("sheet.overtime"),align:"center","label-class-name":"turn",width:"34"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(u.value[t.$index].overtime),1)]),_:1},8,["label"]),e.createVNode(e.unref(r.ElTableColumn),{label:e.unref(i)("sheet.night"),align:"center","label-class-name":"turn",width:"34"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(u.value[t.$index].night),1)]),_:1},8,["label"]),e.createVNode(e.unref(r.ElTableColumn),{label:e.unref(i)("sheet.weekend"),align:"center","label-class-name":"turn",width:"34"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(u.value[t.$index].weekend),1)]),_:1},8,["label"])]),_:1},8,["label"])]),_:1},8,["label"]),e.createVNode(e.unref(r.ElTableColumn),{label:e.unref(i)("sheet.numberNonAppearing"),align:"center"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(u.value[t.$index].numberNonAppearing),1)]),_:1},8,["label"]),e.createVNode(e.unref(r.ElTableColumn),{label:e.unref(i)("sheet.them"),align:"center"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElTableColumn),{label:e.unref(i)("sheet.code"),align:"center","label-class-name":"turn",width:"30"},{default:e.withCtx(t=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value[t.$index].appearing)==null?void 0:n.code),1)]}),_:1},8,["label"]),e.createVNode(e.unref(r.ElTableColumn),{label:e.unref(i)("sheet.count"),align:"center","label-class-name":"turn",width:"30"},{default:e.withCtx(t=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value[t.$index].appearing)==null?void 0:n.countH),1)]}),_:1},8,["label"])]),_:1},8,["label"]),e.createVNode(e.unref(r.ElTableColumn),{label:e.unref(i)("sheet.countWeekend"),align:"center"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(u.value[t.$index].weekendDays),1)]),_:1},8,["label"])]),_:1},8,["label"])]),_:1},8,["data","empty-text","onCellClick"])],64))}};module.exports=H;
@@ -1,8 +1,8 @@
1
- import { ref as w, watch as K, computed as L, openBlock as y, createElementBlock as D, Fragment as S, createBlock as _, unref as l, withCtx as o, renderList as C, createCommentVNode as E, createVNode as d, createTextVNode as m, toDisplayString as c, createElementVNode as P } from "vue";
1
+ import { ref as w, watch as K, computed as L, openBlock as y, createElementBlock as D, Fragment as N, createBlock as $, unref as t, withCtx as s, renderList as H, createCommentVNode as E, createVNode as d, createTextVNode as m, toDisplayString as c, createElementVNode as P } from "vue";
2
2
  import { useI18n as q } from "vue-i18n";
3
3
  import { p as M, b as G, h as R } from "./index-uVRk2ARj.js";
4
- import { ElSelect as X, ElOption as Z, ElSwitch as Q, ElTable as ee, ElTableColumn as i } from "element-plus";
5
- const ae = { style: { height: "20px", width: "100%", display: "inline-block" } }, te = { style: { height: "20px", width: "100%", display: "inline-block" } }, se = {
4
+ import { ElSelect as X, ElOption as Z, ElSwitch as Q, ElTable as ee, ElTableColumn as r } from "element-plus";
5
+ const ae = { style: { height: "20px", width: "100%", display: "inline-block" } }, le = { style: { height: "20px", width: "100%", display: "inline-block" } }, se = {
6
6
  __name: "SheetTable",
7
7
  props: {
8
8
  checkEdit: { type: Boolean, default: () => !0 },
@@ -11,17 +11,17 @@ const ae = { style: { height: "20px", width: "100%", display: "inline-block" } }
11
11
  fullName: { type: String, default: "Вы" }
12
12
  },
13
13
  setup(T) {
14
- const N = T, { t: s, d: F } = q(), f = w([]), $ = w("0"), x = w(new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1).setMonth((/* @__PURE__ */ new Date()).getMonth() + Number($.value))), b = w([]), k = w("all"), V = w([{ value: "all", label: "Все", key: "all" }]), H = w([]), Y = w(0), I = w([]);
15
- K(k, async (e, t) => {
16
- e !== t && (I.value = [], confirm.value = !1, N.odata.personal.forEach((a) => {
17
- a.divisionName === e && (I.value.some((u) => (u == null ? void 0 : u.activeText) === a.roleName) || I.value.push({ val: !0, activeText: a.roleName }));
14
+ const _ = T, { t: i, d: C } = q(), f = w([]), S = w("0"), x = w(new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1).setMonth((/* @__PURE__ */ new Date()).getMonth() + Number(S.value))), b = w([]), k = w("all"), V = w([{ value: "all", label: "Все", key: "all" }]), F = w([]), Y = w(0), I = w([]);
15
+ K(k, async (e, l) => {
16
+ e !== l && (I.value = [], confirm.value = !1, _.odata.personal.forEach((a) => {
17
+ a.divisionName === e && (I.value.some((n) => (n == null ? void 0 : n.activeText) === a.roleName) || I.value.push({ val: !0, activeText: a.roleName }));
18
18
  }), j());
19
- }), K($, (e) => {
19
+ }), K(S, (e) => {
20
20
  x.value = new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1).setMonth((/* @__PURE__ */ new Date()).getMonth() + Number(e)), B();
21
21
  });
22
- const r = L(() => f.value.flatMap((e, t) => [{ ...e, key: 0, ids: t }, { ...e, key: 1, ids: t }])), U = (e) => {
22
+ const u = L(() => f.value.flatMap((e, l) => [{ ...e, key: 0, ids: l }, { ...e, key: 1, ids: l }])), U = (e) => {
23
23
  if (e.columnIndex < 2 || e.columnIndex > b.value.length + 3 && e.columnIndex < b.value.length + 9 || e.columnIndex > b.value.length + 11)
24
- return r.value[e.rowIndex].key === 0 ? {
24
+ return u.value[e.rowIndex].key === 0 ? {
25
25
  rowspan: 2,
26
26
  colspan: 1
27
27
  } : {
@@ -29,50 +29,50 @@ const ae = { style: { height: "20px", width: "100%", display: "inline-block" } }
29
29
  colspan: 0
30
30
  };
31
31
  }, B = () => {
32
- const e = H.value, t = new Date(x.value), a = new Date(t.getFullYear(), t.getMonth() + 1, 0).getDate();
33
- let u = [], g = 0;
32
+ const e = F.value, l = new Date(x.value), a = new Date(l.getFullYear(), l.getMonth() + 1, 0).getDate();
33
+ let n = [], g = 0;
34
34
  for (let v = 1; v <= a; v++) {
35
- const n = M(t.setDate(v), "{Y}-{m}-{dd}");
36
- g += e.nowork.includes(n) || e.holidays.includes(n) ? 0 : e.preholidays.includes(n) ? 7 : 8;
37
- let h = e.nowork.includes(n) ? "nowork" : e.holidays.includes(n) ? "holiday" : e.preholidays.includes(n) ? "preholiday" : "";
38
- u.push({ day: v, holidays: h, weekday: F(new Date(t.getFullYear(), t.getMonth(), v), "day") });
35
+ const o = M(l.setDate(v), "{Y}-{m}-{dd}");
36
+ g += e.nowork.includes(o) || e.holidays.includes(o) ? 0 : e.preholidays.includes(o) ? 7 : 8;
37
+ let h = e.nowork.includes(o) ? "nowork" : e.holidays.includes(o) ? "holiday" : e.preholidays.includes(o) ? "preholiday" : "";
38
+ n.push({ day: v, holidays: h, weekday: C(new Date(l.getFullYear(), l.getMonth(), v), "day") });
39
39
  }
40
- Y.value = g, b.value = u, N.odata.getPersonal({}).then((v) => {
41
- var n;
42
- k.value = (n = v.find((h) => h.employeeName === N.fullName)) == null ? void 0 : n.divisionName, v.forEach((h) => {
40
+ Y.value = g, b.value = n, _.odata.getPersonal({}).then((v) => {
41
+ var o;
42
+ k.value = (o = v.find((h) => h.employeeName === _.fullName)) == null ? void 0 : o.divisionName, v.forEach((h) => {
43
43
  V.value.some((p) => (p == null ? void 0 : p.value) === h.divisionName) || V.value.push({ value: h.divisionName, label: h.divisionName, key: h.divisionName }), h.divisionName === k.value && !I.value.some((p) => (p == null ? void 0 : p.activeText) === h.roleName) && I.value.push({ val: !0, activeText: h.roleName });
44
44
  }), j();
45
45
  });
46
46
  }, j = () => {
47
47
  f.value = [];
48
48
  let e = [];
49
- N.odata.personal.forEach((t) => {
50
- if (t.divisionName === k.value && I.value.some((a) => a.val && a.activeText === t.roleName)) {
51
- let a = G(t.employeeName);
52
- e.push(t.employeeKey), f.value.push({ name: a + " (" + t.roleName + ")", code: t.employeeKey, days: [], contHour: 0, id: !1, ids: f.value.length });
49
+ _.odata.personal.forEach((l) => {
50
+ if (l.divisionName === k.value && I.value.some((a) => a.val && a.activeText === l.roleName)) {
51
+ let a = G(l.employeeName);
52
+ e.push(l.employeeKey), f.value.push({ name: a + " (" + l.roleName + ")", code: l.employeeKey, days: [], contHour: 0, id: !1, ids: f.value.length });
53
53
  }
54
54
  }), W(e);
55
55
  }, W = (e) => {
56
- N.workSchedule.getWorkSchedule({ code: e, date: M(new Date(x.value), "{Y}-{m}-{dd}") }).then(
57
- (t) => {
58
- t.forEach((a, u) => {
56
+ _.workSchedule.getWorkSchedule({ code: e, date: M(new Date(x.value), "{Y}-{m}-{dd}") }).then(
57
+ (l) => {
58
+ l.forEach((a, n) => {
59
59
  var g, v;
60
60
  if (a !== null) {
61
- a.data.days.forEach((n) => n.state = "Я");
62
- for (let n = 1; n <= b.value.length; n++) {
63
- let h = M(new Date(x.value).setDate(n), "{Y}-{m}-{dd}");
61
+ a.data.days.forEach((o) => o.state = "Я");
62
+ for (let o = 1; o <= b.value.length; o++) {
63
+ let h = M(new Date(x.value).setDate(o), "{Y}-{m}-{dd}");
64
64
  const p = (g = a.data) == null ? void 0 : g.days.findIndex((J) => J.day === h);
65
- p === -1 ? f.value[u].days.push({
65
+ p === -1 ? f.value[n].days.push({
66
66
  day: h,
67
67
  time: "-",
68
68
  state: "В"
69
- }) : f.value[u].days.push((v = a.data) == null ? void 0 : v.days[p]);
69
+ }) : f.value[n].days.push((v = a.data) == null ? void 0 : v.days[p]);
70
70
  }
71
71
  } else {
72
- f.value[u].days = [];
73
- for (let n = 1; n <= b.value.length; n++)
74
- b.value[n - 1].holidays === "" ? O(n, u, 8) : b.value[n - 1].holidays === "preholiday" ? O(n, u, 7) : f.value[u].days.push({
75
- day: M(new Date(x.value).setDate(n), "{Y}-{m}-{dd}"),
72
+ f.value[n].days = [];
73
+ for (let o = 1; o <= b.value.length; o++)
74
+ b.value[o - 1].holidays === "" ? A(o, n, 8) : b.value[o - 1].holidays === "preholiday" ? A(o, n, 7) : f.value[n].days.push({
75
+ day: M(new Date(x.value).setDate(o), "{Y}-{m}-{dd}"),
76
76
  time: "-",
77
77
  state: "В"
78
78
  });
@@ -80,41 +80,41 @@ const ae = { style: { height: "20px", width: "100%", display: "inline-block" } }
80
80
  }), z();
81
81
  }
82
82
  );
83
- }, O = (e, t, a) => {
84
- const u = M(new Date(x.value).setDate(e), "{Y}-{m}-{dd}");
85
- ind === -1 && f.value[t].days.push({
86
- day: u,
83
+ }, A = (e, l, a) => {
84
+ const n = M(new Date(x.value).setDate(e), "{Y}-{m}-{dd}");
85
+ f.value[l].days.push({
86
+ day: n,
87
87
  time: a,
88
88
  state: "Я"
89
89
  });
90
90
  }, z = () => {
91
91
  f.value.forEach((e) => {
92
92
  e.hourI = 0, e.hourII = 0, e.halfII = 0, e.halfI = 0, e.weekend = 0, e.weekendDays = 0, e.night = 0;
93
- for (let t = 0; t < e.days.length; t++)
94
- t < 15 && e.days[t].time !== "-" && (e.hourI += e.days[t].time), t < 15 && e.days[t].state === "Я" && e.halfI++, t >= 15 && e.days[t].time !== "-" && (e.hourII += e.days[t].time), t >= 15 && e.days[t].state === "Я" && e.halfII++, e.days[t].state === "Н" && (e.night += e.days[t].time), e.days[t].state === "РВ" && (e.weekend += e.days[t].time), e.days[t].state === "В" && e.weekendDays++;
93
+ for (let l = 0; l < e.days.length; l++)
94
+ l < 15 && e.days[l].time !== "-" && (e.hourI += e.days[l].time), l < 15 && e.days[l].state === "Я" && e.halfI++, l >= 15 && e.days[l].time !== "-" && (e.hourII += e.days[l].time), l >= 15 && e.days[l].state === "Я" && e.halfII++, e.days[l].state === "Н" && (e.night += e.days[l].time), e.days[l].state === "РВ" && (e.weekend += e.days[l].time), e.days[l].state === "В" && e.weekendDays++;
95
95
  e.contDays = e.halfI + e.halfII, e.contHour = e.hourI + e.hourII, e.overtime = 0, Y.value < e.contHour && (e.overtime = e.contHour - Y.value), e.numberNonAppearing = 0, e.appearing = {
96
96
  code: "-",
97
97
  countH: "-"
98
98
  };
99
99
  });
100
- }, A = (e, t) => {
101
- var v, n;
102
- if (t === -1) return "";
103
- const a = new Date(x.value), u = `${a.getFullYear()}-${(a.getMonth() + 1).toString().padStart(2, "0")}-${e.toString().padStart(2, "0")}`, g = r.value[t].days.findIndex((h) => h.day === u);
104
- return g === -1 ? "" : r.value[t].key === 0 ? (v = r.value[t].days[g]) == null ? void 0 : v.state : (n = r.value[t].days[g]) == null ? void 0 : n.time;
100
+ }, O = (e, l) => {
101
+ var v, o;
102
+ if (l === -1) return "";
103
+ const a = new Date(x.value), n = `${a.getFullYear()}-${(a.getMonth() + 1).toString().padStart(2, "0")}-${e.toString().padStart(2, "0")}`, g = u.value[l].days.findIndex((h) => h.day === n);
104
+ return g === -1 ? "" : u.value[l].key === 0 ? (v = u.value[l].days[g]) == null ? void 0 : v.state : (o = u.value[l].days[g]) == null ? void 0 : o.time;
105
105
  };
106
106
  return R().then((e) => {
107
- H.value = e, B();
108
- }), (e, t) => (y(), D(S, null, [
109
- T.checkEdit ? (y(), _(l(X), {
107
+ F.value = e, B();
108
+ }), (e, l) => (y(), D(N, null, [
109
+ T.checkEdit ? (y(), $(t(X), {
110
110
  key: 0,
111
111
  modelValue: k.value,
112
- "onUpdate:modelValue": t[0] || (t[0] = (a) => k.value = a),
112
+ "onUpdate:modelValue": l[0] || (l[0] = (a) => k.value = a),
113
113
  placeholder: "Select",
114
114
  style: { width: "240px", "margin-bottom": ".5rem", "margin-right": ".5rem" }
115
115
  }, {
116
- default: o(() => [
117
- (y(!0), D(S, null, C(V.value, (a) => (y(), _(l(Z), {
116
+ default: s(() => [
117
+ (y(!0), D(N, null, H(V.value, (a) => (y(), $(t(Z), {
118
118
  key: a.value,
119
119
  label: a.label,
120
120
  value: a.value
@@ -122,61 +122,61 @@ const ae = { style: { height: "20px", width: "100%", display: "inline-block" } }
122
122
  ]),
123
123
  _: 1
124
124
  }, 8, ["modelValue"])) : E("", !0),
125
- T.checkEdit ? (y(), _(l(Q), {
125
+ T.checkEdit ? (y(), $(t(Q), {
126
126
  key: 1,
127
- modelValue: $.value,
128
- "onUpdate:modelValue": t[1] || (t[1] = (a) => $.value = a),
129
- "active-text": l(s)("workSchedule.currentMonth"),
127
+ modelValue: S.value,
128
+ "onUpdate:modelValue": l[1] || (l[1] = (a) => S.value = a),
129
+ "active-text": t(i)("workSchedule.currentMonth"),
130
130
  "active-value": "0",
131
131
  "inactive-value": "-1",
132
132
  style: { "margin-bottom": ".5rem", "margin-left": ".5rem" }
133
133
  }, null, 8, ["modelValue", "active-text"])) : E("", !0),
134
- d(l(ee), {
134
+ d(t(ee), {
135
135
  id: "printTable",
136
- data: r.value,
136
+ data: u.value,
137
137
  "span-method": U,
138
138
  border: "",
139
139
  style: { width: "100%" },
140
140
  size: "small",
141
- "empty-text": l(s)("sheet.emptyText"),
141
+ "empty-text": t(i)("sheet.emptyText"),
142
142
  align: "center",
143
143
  onCellClick: e.coMenu
144
144
  }, {
145
- default: o(() => [
146
- d(l(i), {
147
- label: l(s)("sheet.title", { name: k.value }) + l(F)(x.value, "month"),
145
+ default: s(() => [
146
+ d(t(r), {
147
+ label: t(i)("sheet.title", { name: k.value }) + t(C)(x.value, "month"),
148
148
  align: "center",
149
149
  height: "10"
150
150
  }, {
151
- default: o(() => [
152
- d(l(i), {
153
- label: l(s)("sheet.employee"),
151
+ default: s(() => [
152
+ d(t(r), {
153
+ label: t(i)("sheet.employee"),
154
154
  width: "180",
155
155
  align: "center"
156
156
  }, {
157
- default: o((a) => [
158
- m(c(r.value[a.$index].name), 1)
157
+ default: s((a) => [
158
+ m(c(u.value[a.$index].name), 1)
159
159
  ]),
160
160
  _: 1
161
161
  }, 8, ["label"]),
162
- d(l(i), {
163
- label: l(s)("sheet.personnelNumber"),
162
+ d(t(r), {
163
+ label: t(i)("sheet.personnelNumber"),
164
164
  align: "center"
165
165
  }, {
166
- default: o((a) => [
167
- m(c(r.value[a.$index].code), 1)
166
+ default: s((a) => [
167
+ m(c(u.value[a.$index].code), 1)
168
168
  ]),
169
169
  _: 1
170
170
  }, 8, ["label"]),
171
- d(l(i), {
172
- label: l(s)("sheet.marks"),
171
+ d(t(r), {
172
+ label: t(i)("sheet.marks"),
173
173
  align: "center"
174
174
  }, {
175
- default: o(() => [
176
- (y(!0), D(S, null, C(b.value, (a) => (y(), D(S, {
175
+ default: s(() => [
176
+ (y(!0), D(N, null, H(b.value, (a) => (y(), D(N, {
177
177
  key: a.day
178
178
  }, [
179
- a.day <= 15 ? (y(), _(l(i), {
179
+ a.day <= 15 ? (y(), $(t(r), {
180
180
  key: 0,
181
181
  width: "30",
182
182
  "class-name": a.holidays,
@@ -184,25 +184,25 @@ const ae = { style: { height: "20px", width: "100%", display: "inline-block" } }
184
184
  label: a.day.toString() + `
185
185
  ` + a.weekday
186
186
  }, {
187
- default: o((u) => [
188
- P("div", ae, c(A(a.day, u.$index) || " "), 1)
187
+ default: s((n) => [
188
+ P("div", ae, c(O(a.day, n.$index) || " "), 1)
189
189
  ]),
190
190
  _: 2
191
191
  }, 1032, ["class-name", "label"])) : E("", !0)
192
192
  ], 64))), 128)),
193
- d(l(i), {
194
- label: l(s)("sheet.halfMonth", { half: "I" }),
193
+ d(t(r), {
194
+ label: t(i)("sheet.halfMonth", { half: "I" }),
195
195
  align: "center"
196
196
  }, {
197
- default: o((a) => [
198
- m(c(r.value[a.$index].dateStart), 1)
197
+ default: s((a) => [
198
+ m(c(u.value[a.$index].key === 0 ? u.value[a.$index].halfI : u.value[a.$index].hourI), 1)
199
199
  ]),
200
200
  _: 1
201
201
  }, 8, ["label"]),
202
- (y(!0), D(S, null, C(b.value, (a) => (y(), D(S, {
202
+ (y(!0), D(N, null, H(b.value, (a) => (y(), D(N, {
203
203
  key: a.day
204
204
  }, [
205
- a.day > 15 ? (y(), _(l(i), {
205
+ a.day > 15 ? (y(), $(t(r), {
206
206
  key: 0,
207
207
  width: "30",
208
208
  "class-name": a.holidays,
@@ -210,86 +210,86 @@ const ae = { style: { height: "20px", width: "100%", display: "inline-block" } }
210
210
  label: a.day.toString() + `
211
211
  ` + a.weekday
212
212
  }, {
213
- default: o((u) => [
214
- P("div", te, c(A(a.day, u.$index) || " "), 1)
213
+ default: s((n) => [
214
+ P("div", le, c(O(a.day, n.$index) || " "), 1)
215
215
  ]),
216
216
  _: 2
217
217
  }, 1032, ["class-name", "label"])) : E("", !0)
218
218
  ], 64))), 128)),
219
- d(l(i), {
220
- label: l(s)("sheet.halfMonth", { half: "II" }),
219
+ d(t(r), {
220
+ label: t(i)("sheet.halfMonth", { half: "II" }),
221
221
  align: "center"
222
222
  }, {
223
- default: o((a) => [
224
- m(c(r.value[a.$index].dateStart), 1)
223
+ default: s((a) => [
224
+ m(c(u.value[a.$index].key === 0 ? u.value[a.$index].halfII : u.value[a.$index].hourII), 1)
225
225
  ]),
226
226
  _: 1
227
227
  }, 8, ["label"])
228
228
  ]),
229
229
  _: 1
230
230
  }, 8, ["label"]),
231
- d(l(i), {
232
- label: l(s)("sheet.workedMonth"),
231
+ d(t(r), {
232
+ label: t(i)("sheet.workedMonth"),
233
233
  align: "center"
234
234
  }, {
235
- default: o(() => [
236
- d(l(i), {
237
- label: l(s)("sheet.days"),
235
+ default: s(() => [
236
+ d(t(r), {
237
+ label: t(i)("sheet.days"),
238
238
  align: "center",
239
239
  "label-class-name": "turn",
240
- width: "30"
240
+ width: "34"
241
241
  }, {
242
- default: o((a) => [
243
- m(c(r.value[a.$index].dateStart), 1)
242
+ default: s((a) => [
243
+ m(c(u.value[a.$index].contDays), 1)
244
244
  ]),
245
245
  _: 1
246
246
  }, 8, ["label"]),
247
- d(l(i), {
248
- label: l(s)("sheet.hours"),
247
+ d(t(r), {
248
+ label: t(i)("sheet.hours"),
249
249
  align: "center"
250
250
  }, {
251
- default: o(() => [
252
- d(l(i), {
253
- label: l(s)("sheet.all"),
251
+ default: s(() => [
252
+ d(t(r), {
253
+ label: t(i)("sheet.all"),
254
254
  align: "center",
255
255
  "label-class-name": "turn",
256
- width: "30"
256
+ width: "40"
257
257
  }, {
258
- default: o((a) => [
259
- m(c(r.value[a.$index].dateStart), 1)
258
+ default: s((a) => [
259
+ m(c(u.value[a.$index].contHour), 1)
260
260
  ]),
261
261
  _: 1
262
262
  }, 8, ["label"]),
263
- d(l(i), {
264
- label: l(s)("sheet.overtime"),
263
+ d(t(r), {
264
+ label: t(i)("sheet.overtime"),
265
265
  align: "center",
266
266
  "label-class-name": "turn",
267
- width: "30"
267
+ width: "34"
268
268
  }, {
269
- default: o((a) => [
270
- m(c(r.value[a.$index].dateStart), 1)
269
+ default: s((a) => [
270
+ m(c(u.value[a.$index].overtime), 1)
271
271
  ]),
272
272
  _: 1
273
273
  }, 8, ["label"]),
274
- d(l(i), {
275
- label: l(s)("sheet.night"),
274
+ d(t(r), {
275
+ label: t(i)("sheet.night"),
276
276
  align: "center",
277
277
  "label-class-name": "turn",
278
- width: "30"
278
+ width: "34"
279
279
  }, {
280
- default: o((a) => [
281
- m(c(r.value[a.$index].dateStart), 1)
280
+ default: s((a) => [
281
+ m(c(u.value[a.$index].night), 1)
282
282
  ]),
283
283
  _: 1
284
284
  }, 8, ["label"]),
285
- d(l(i), {
286
- label: l(s)("sheet.weekend"),
285
+ d(t(r), {
286
+ label: t(i)("sheet.weekend"),
287
287
  align: "center",
288
288
  "label-class-name": "turn",
289
- width: "30"
289
+ width: "34"
290
290
  }, {
291
- default: o((a) => [
292
- m(c(r.value[a.$index].dateStart), 1)
291
+ default: s((a) => [
292
+ m(c(u.value[a.$index].weekend), 1)
293
293
  ]),
294
294
  _: 1
295
295
  }, 8, ["label"])
@@ -299,51 +299,57 @@ const ae = { style: { height: "20px", width: "100%", display: "inline-block" } }
299
299
  ]),
300
300
  _: 1
301
301
  }, 8, ["label"]),
302
- d(l(i), {
303
- label: l(s)("sheet.numberNonAppearing"),
302
+ d(t(r), {
303
+ label: t(i)("sheet.numberNonAppearing"),
304
304
  align: "center"
305
305
  }, {
306
- default: o((a) => [
307
- m(c(r.value[a.$index].dateStart), 1)
306
+ default: s((a) => [
307
+ m(c(u.value[a.$index].numberNonAppearing), 1)
308
308
  ]),
309
309
  _: 1
310
310
  }, 8, ["label"]),
311
- d(l(i), {
312
- label: l(s)("sheet.them"),
311
+ d(t(r), {
312
+ label: t(i)("sheet.them"),
313
313
  align: "center"
314
314
  }, {
315
- default: o(() => [
316
- d(l(i), {
317
- label: l(s)("sheet.code"),
315
+ default: s(() => [
316
+ d(t(r), {
317
+ label: t(i)("sheet.code"),
318
318
  align: "center",
319
319
  "label-class-name": "turn",
320
320
  width: "30"
321
321
  }, {
322
- default: o((a) => [
323
- m(c(r.value[a.$index].dateStart), 1)
324
- ]),
322
+ default: s((a) => {
323
+ var n;
324
+ return [
325
+ m(c((n = u.value[a.$index].appearing) == null ? void 0 : n.code), 1)
326
+ ];
327
+ }),
325
328
  _: 1
326
329
  }, 8, ["label"]),
327
- d(l(i), {
328
- label: l(s)("sheet.count"),
330
+ d(t(r), {
331
+ label: t(i)("sheet.count"),
329
332
  align: "center",
330
333
  "label-class-name": "turn",
331
334
  width: "30"
332
335
  }, {
333
- default: o((a) => [
334
- m(c(r.value[a.$index].dateStart), 1)
335
- ]),
336
+ default: s((a) => {
337
+ var n;
338
+ return [
339
+ m(c((n = u.value[a.$index].appearing) == null ? void 0 : n.countH), 1)
340
+ ];
341
+ }),
336
342
  _: 1
337
343
  }, 8, ["label"])
338
344
  ]),
339
345
  _: 1
340
346
  }, 8, ["label"]),
341
- d(l(i), {
342
- label: l(s)("sheet.countWeekend"),
347
+ d(t(r), {
348
+ label: t(i)("sheet.countWeekend"),
343
349
  align: "center"
344
350
  }, {
345
- default: o((a) => [
346
- m(c(r.value[a.$index].dateStart), 1)
351
+ default: s((a) => [
352
+ m(c(u.value[a.$index].weekendDays), 1)
347
353
  ]),
348
354
  _: 1
349
355
  }, 8, ["label"])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studio-west/employees",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "files": [
5
5
  "dist"
6
6
  ],