@studio-west/employees 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/WorkTable.cjs +3 -3
- package/dist/WorkTable.js +178 -178
- package/package.json +1 -1
package/dist/WorkTable.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),de=require("file-saver"),se=require("exceljs"),c=require("./index-DxdyeKnm.cjs"),ce=require("vue-i18n"),i=require("element-plus"),
|
|
2
|
-
`+(h-1),l.getColumn(h).width=6,l.getColumn(h).alignment=t,l.getCell(4,h).border=d;l.getRow(1).height=40,l.getRow(2).height=30,l.getRow(3).height=20,l.getColumn(1).width=15,l.getColumn(u.value.length+2).width=5,l.getColumn(u.value.length+3).width=6,l.getColumn(u.value.length+4).width=13,l.getColumn(u.value.length+5).width=13,l.getColumn(1).alignment=t,l.getCell("A2").alignment=o,l.getCell("A3").alignment=o,l.getCell("B3").alignment=o,l.getCell(3,u.value.length+2).alignment=o,l.getColumn(u.value.length+2).alignment=t,l.getColumn(u.value.length+3).alignment=t,l.getColumn(u.value.length+4).alignment=o,l.getColumn(u.value.length+5).alignment=o,l.getCell("A3").border=d,l.getCell("B3").border=d,l.getCell(3,u.value.length+2).border=d,l.getCell(4,u.value.length+2).border=d,l.getCell(3,u.value.length+4).border=d,l.getCell(3,u.value.length+5).border=d,l.getCell(4,u.value.length+3).border=d;let s=0;for(const h of n.value){let
|
|
3
|
-
`+t.day.toString(),prop:"vacation"},{default:e.withCtx(s=>[e.createElementVNode("div",{style:{height:"100px",width:"100%",display:"inline-block"},innerHTML:
|
|
1
|
+
"use strict";const e=require("vue"),de=require("file-saver"),se=require("exceljs"),c=require("./index-DxdyeKnm.cjs"),ce=require("vue-i18n"),i=require("element-plus"),G=require("@imengyu/vue3-context-menu");function ve(w){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(w){for(const S in w)if(S!=="default"){const f=Object.getOwnPropertyDescriptor(w,S);Object.defineProperty(r,S,f.get?f:{enumerable:!0,get:()=>w[S]})}}return r.default=w,Object.freeze(r)}const me=ve(se),ge={class:"work"},he={class:"nav"},fe={style:{height:"100px",width:"100%",display:"inline-block"}},pe=["innerHTML"],ye={key:0,class:"controls-container",style:{"margin-top":".5rem"}},we={key:0,style:{padding:"0.5em 1.5em"}},ke={key:1,style:{padding:"0.5em 1.5em"}},Ce={__name:"WorkTable",props:{checkEdit:{type:Boolean,default:()=>!0},odata:Object,workSchedule:Object,fullName:{type:String,default:"Вы"},group:String},setup(w){const{t:r,d:S}=ce.useI18n(),f=w,z=e.ref(!1),n=e.ref([]),R=e.ref(new Date().getMonth()+1),j=e.ref(!1),E=e.ref([]),p=e.ref(new Date(new Date().getFullYear(),new Date().getMonth(),1)),u=e.ref([]),D=e.ref(0),C=e.ref(9),y=e.ref(8),F=e.ref(!1),J=e.ref(!0),$=e.ref(!1),q=e.ref("5"),B=e.ref(1),k=e.ref(""),O=e.ref([]),V=e.ref([]),I=e.ref([]),v=e.ref({name:"Имя",length:0,code:""}),Y=e.ref(!1),P=e.ref({zIndex:30,minWidth:220,x:500,y:200}),Z=e.ref({}),T=e.ref("100%");e.watch(k,async(a,l)=>{a!==l&&(V.value=[],F.value=!1,f.odata.personal.forEach(o=>{o.divisionName===a&&(V.value.some(d=>(d==null?void 0:d.activeText)===o.roleName)||V.value.push({val:!0,activeText:o.roleName}))}),W())}),e.watch(R,async a=>{let l=new Date().getMonth(),o=a===null?l:a-1;o=l-1<=o?o:o+12,p.value=new Date(new Date().getFullYear(),o,1),K()});const _=(a,l,o,d)=>{v.value.ids=a.ids,v.value.key=a.key,v.value.add=a.days.length>0&&a.days[a.days.length-1].cont,v.value.level=l.level,v.value.day=o.cellIndex,P.value.y=d.clientY,P.value.x=d.clientX,l.level===2&&l.no===0&&f.checkEdit&&(v.value.name=r("workSchedule.autocomplete"),Y.value=!0),l.level===3&&o.cellIndex-l.no===1&&f.checkEdit&&(N(o.cellIndex,a.ids),v.value.name=r("workSchedule.modeSelection"),Y.value=!0)},ee=({row:a,columnIndex:l})=>{if(!E.value||E.value.length===0||!j.value)return"";const o=new Date(new Date(p.value).getFullYear(),new Date(p.value).getMonth(),l).getTime()+1e3;for(let d of E.value){const{dateStart:t,dateEnd:s,code:m}=d;if(t&&s&&m===a.code&&l!==0&&l<=u.value.length){const g=new Date(c.parseDate(t)).getTime(),b=new Date(c.parseDate(s)).getTime();if(o>=g&&o<=b)return"vacation"}}return""},K=()=>{const a=Z.value,l=new Date(p.value),o=new Date(l.getFullYear(),l.getMonth()+1,0).getDate();let d=[],t=0;for(let s=1;s<=o;s++){const m=c.parseTime(l.setDate(s),"{Y}-{m}-{dd}");t+=a.nowork.includes(m)||a.holidays.includes(m)?0:a.preholidays.includes(m)?7:8;const g=a.nowork.includes(m)?"nowork":a.holidays.includes(m)?"holiday":a.preholidays.includes(m)?"preholiday":"";d.push({day:s,holidays:g,weekday:S(new Date(l.getFullYear(),l.getMonth(),s),"day")})}D.value=t,u.value=d,f.odata.getPersonal({}).then(s=>{var m;k.value.length===0&&(k.value=(m=s.find(g=>g.employeeName===f.fullName))==null?void 0:m.divisionName),s.forEach((g,b)=>{O.value.some(x=>(x==null?void 0:x.value)===g.divisionName)||O.value.push({value:g.divisionName,label:g.divisionName,key:b}),g.divisionName===k.value&&!V.value.some(x=>(x==null?void 0:x.activeText)===g.roleName)&&V.value.push({val:!0,activeText:g.roleName})}),W(),J.value=!1})},le=e.computed(()=>!n.value.some(a=>a.contHour!==D.value)),Q=(a,l)=>{var s,m,g;const o=new Date(p.value),d=`${o.getFullYear()}-${(o.getMonth()+1).toString().padStart(2,"0")}-${a.toString().padStart(2,"0")}`,t=(s=n.value[l])==null?void 0:s.days.findIndex(b=>b.day===d);return l===-1||t===-1?"":((m=n.value[l].days[t])==null?void 0:m.tips)+"<br>"+((g=n.value[l].days[t])==null?void 0:g.time)},W=()=>{n.value=[],I.value=[],E.value=[],f.odata.personal.forEach(a=>{if(a.divisionName===k.value&&V.value.some(l=>l.val&&l.activeText===a.roleName)){let l=c.byInitials(a.employeeName);I.value.push(a.employeeKey),n.value.push({name:l+" ("+a.roleName+")",days:[],contHour:0,code:a.employeeKey,id:!1,ids:n.value.length})}}),f.workSchedule.getUsersYear({code:I.value,year:new Date(p.value).getFullYear()}).then(a=>{a.forEach(l=>{l.dateStart&&E.value.push({code:l.code,dateStart:l.dateStart,dateEnd:l.dateEnd})}),console.log(a),te(),$.value=!1})},te=()=>{f.workSchedule.getWorkSchedule({code:I.value,date:c.parseTime(new Date(p.value),"{Y}-{m}-{dd}")}).then(a=>{a.forEach((l,o)=>{l!==null&&(n.value[o].days=l.data.days,n.value[o].id=l.id)}),M()})},M=()=>{n.value.forEach(a=>{a.contHour=a.days.reduce((l,o)=>l+o.time,0)})},ae=a=>{n.value[a].days=[],M()},ne=a=>{switch(q.value){case"5":for(let l=B.value;l<=u.value.length;l++)u.value[l-1].holidays===""&&N(l,a,!0),u.value[l-1].holidays==="preholiday"&&(y.value-=1,N(l,a,!0),y.value+=1);break;case"2x2":for(let l=B.value;l<=u.value.length;l+=4)N(l,a,!0),l+1<=u.value.length&&N(l+1,a,!0);break;case"2x5":for(let l=B.value;l<=u.value.length;l+=7)for(let o=l;o<l+5&&o<=u.value.length;o++)u.value[o-1].holidays==="preholiday"?(y.value-=1,N(o,a,!0),y.value+=1):N(o,a,!0);break}},N=(a,l,o=!1)=>{const{date:d,ind:t}=U(a,l);t===-1?(n.value[l].days.push({day:d,time:y.value,tips:`(${C.value}:00 - ${C.value+y.value+1}:00)`}),M()):o||(y.value=n.value[l].days[t].time,C.value=parseInt(n.value[l].days[t].tips.slice(1,-12)))},oe=(a,l)=>{const{ind:o}=U(a,l);n.value[l].days.splice(o,1),M(),document.querySelector(".app-main").click()},X=(a,l)=>{const{date:o,ind:d}=U(a,l);n.value[l].days[d]={day:o,time:y.value,tips:`(${C.value}:00 - ${C.value+y.value+1}:00)`},M()},U=(a,l)=>{var t;const o=c.parseTime(new Date(p.value).setDate(a),"{Y}-{m}-{dd}"),d=(t=n.value[l])==null?void 0:t.days.findIndex(s=>s.day===o);return{date:o,ind:d}},ue=async()=>{var x;z.value=!0;const a=new me.Workbook,l=a.addWorksheet(S(p.value,"month"),{pageSetup:{paperSize:9,orientation:"landscape",fitToPage:!0}}),o={vertical:"middle",horizontal:"center"},d={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},t={vertical:"middle",horizontal:"center",wrapText:!0};l.mergeCells(`A1:${c.cellsDynamically("A1",u.value.length+5)}1`),l.mergeCells(`A2:${c.cellsDynamically("A2",u.value.length+5)}2`),l.mergeCells("A3:A4"),l.mergeCells(`B3:${c.cellsDynamically("B3",u.value.length)}3`),l.mergeCells(`${c.cellsDynamically("B3",u.value.length+1)}3:${c.cellsDynamically("B3",u.value.length+2)}3`),l.mergeCells(`${c.cellsDynamically("B3",u.value.length+3)}3:${c.cellsDynamically("B4",u.value.length+3)}4`),l.mergeCells(`${c.cellsDynamically("B3",u.value.length+4)}3:${c.cellsDynamically("B4",u.value.length+4)}4`),l.getCell("A1").value=r("workSchedule.firm"),l.getCell("A2").value=r("workSchedule.title",{name:k.value})+S(p.value,"month")+` ${new Date(p.value).getFullYear()}`,l.getCell("A3").value=r("workSchedule.month"),l.getCell("B3").value=r("workSchedule.numbersMonth"),l.getCell(3,u.value.length+2).value=r("workSchedule.onSchedule"),l.getCell(3,u.value.length+4).value=r("workSchedule.acquainted"),l.getCell(3,u.value.length+5).value=r("workSchedule.date"),l.getCell(4,u.value.length+2).value=r("workSchedule.days"),l.getCell(4,u.value.length+3).value=`${r("workSchedule.hours")} (${D.value})`;for(let h=2;h<=u.value.length+1;h++)l.getCell(4,h).value=u.value[h-2].weekday+`
|
|
2
|
+
`+(h-1),l.getColumn(h).width=6,l.getColumn(h).alignment=t,l.getCell(4,h).border=d;l.getRow(1).height=40,l.getRow(2).height=30,l.getRow(3).height=20,l.getColumn(1).width=15,l.getColumn(u.value.length+2).width=5,l.getColumn(u.value.length+3).width=6,l.getColumn(u.value.length+4).width=13,l.getColumn(u.value.length+5).width=13,l.getColumn(1).alignment=t,l.getCell("A2").alignment=o,l.getCell("A3").alignment=o,l.getCell("B3").alignment=o,l.getCell(3,u.value.length+2).alignment=o,l.getColumn(u.value.length+2).alignment=t,l.getColumn(u.value.length+3).alignment=t,l.getColumn(u.value.length+4).alignment=o,l.getColumn(u.value.length+5).alignment=o,l.getCell("A3").border=d,l.getCell("B3").border=d,l.getCell(3,u.value.length+2).border=d,l.getCell(4,u.value.length+2).border=d,l.getCell(3,u.value.length+4).border=d,l.getCell(3,u.value.length+5).border=d,l.getCell(4,u.value.length+3).border=d;let s=0;for(const h of n.value){let H=[h.name];for(let A=1;A<=u.value.length;A++){const{ind:L}=U(A,s);L!==-1?H[A]=`${h.days[L].time} ${h.days[L].tips}`:H[A]=" "}H.push(((x=h.days)==null?void 0:x.length)||" ",h.contHour||0);const ie=l.addRow(H);ie.border=d,s++}let m="Щербина Е. В.";f.odata.personal.forEach(h=>{h.roleName==="Начальник отдела правовой и кадровой работы"&&(m=h.employeeName)}),l.mergeCells(`A${n.value.length+6}:P${n.value.length+6}`),l.mergeCells(`Q${n.value.length+6}:AG${n.value.length+6}`),l.mergeCells(`B${n.value.length+8}:E${n.value.length+8}`),l.mergeCells(`F${n.value.length+8}:L${n.value.length+8}`),l.mergeCells(`M${n.value.length+8}:P${n.value.length+8}`),l.mergeCells(`S${n.value.length+8}:V${n.value.length+8}`),l.mergeCells(`W${n.value.length+8}:AC${n.value.length+8}`),l.mergeCells(`AD${n.value.length+8}:AG${n.value.length+8}`),l.mergeCells(`Z${n.value.length+9}:AA${n.value.length+9}`),l.getCell(`A${n.value.length+6}`).value=r("workSchedule.byInitials"),l.getCell(`Q${n.value.length+6}`).value=r("workSchedule.supervisorHR"),l.getCell(`B${n.value.length+8}`).value=r("workSchedule.compiled")+":",l.getCell(`S${n.value.length+8}`).value=r("workSchedule.approved")+":",l.getCell(`M${n.value.length+8}`).value=c.byInitials(f.fullName),l.getCell(`AD${n.value.length+8}`).value=c.byInitials(m),l.getCell(`Z${n.value.length+9}`).value=r("workSchedule.printPlace"),l.getCell(`A${n.value.length+6}`).alignment={vertical:"middle",horizontal:"right"},l.getCell(`Q${n.value.length+6}`).alignment={vertical:"middle",horizontal:"right"},l.getCell(`B${n.value.length+8}`).alignment={vertical:"middle",horizontal:"right"},l.getCell(`F${n.value.length+8}`).alignment={vertical:"middle",horizontal:"right"},l.getCell(`M${n.value.length+8}`).alignment={vertical:"middle",horizontal:"left"},l.getCell(`AD${n.value.length+8}`).alignment={vertical:"middle",horizontal:"left"},l.getCell(`Z${n.value.length+9}`).alignment=o,l.getCell(`F${n.value.length+8}`).border={bottom:{style:"thin"}},l.getCell(`W${n.value.length+8}`).border={bottom:{style:"thin"}};const g="export_"+c.parseTime(Date.now(),"{dd}.{m}.{Y}")+".xlsx",b=await a.xlsx.writeBuffer();de.saveAs(new Blob([b]),g),z.value=!1},re=async()=>{F.value||f.workSchedule.addWorkSchedule({data:n.value,date:c.parseTime(new Date(p.value),"{Y}-{m}-{dd}"),group:k.value}).then(a=>F.value=a)};return f.group&&(k.value=f.group),c.holidays().then(a=>{Z.value=a,K()}),(a,l)=>{const o=e.resolveComponent("el-date-picker"),d=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",ge,[e.createElementVNode("div",he,[w.checkEdit?(e.openBlock(),e.createBlock(e.unref(i.ElSelect),{key:0,modelValue:k.value,"onUpdate:modelValue":l[0]||(l[0]=t=>k.value=t),placeholder:"Select",style:{width:"240px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,t=>(e.openBlock(),e.createBlock(e.unref(i.ElOption),{key:t.key,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(i.ElButton),{key:1,plain:"",onClick:l[1]||(l[1]=t=>$.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("workSchedule.jobTitle")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(o,{modelValue:R.value,"onUpdate:modelValue":l[2]||(l[2]=t=>R.value=t),type:"month",placeholder:"Выберите месяц",format:"MMM","value-format":"M"},null,8,["modelValue"]),l[19]||(l[19]=e.createElementVNode("div",{class:"expander"},null,-1)),e.createVNode(e.unref(i.ElSwitch),{modelValue:T.value,"onUpdate:modelValue":l[3]||(l[3]=t=>T.value=t),"active-text":a.$t("bids.currentHeight"),"active-value":"100%","inactive-value":"calc(100vh - var(--el-component-size)*4 - var(--el-main-padding)*2 - var(--header-height))"},null,8,["modelValue","active-text"]),e.createVNode(e.unref(i.ElSwitch),{modelValue:j.value,"onUpdate:modelValue":l[4]||(l[4]=t=>j.value=t),"active-text":"Отпуска","active-value":!0,"inactive-value":!1},null,8,["modelValue"])]),e.createVNode(e.unref(i.ElSkeleton),{style:{width:"100%"},loading:J.value,animated:""},{template:e.withCtx(()=>[e.createVNode(e.unref(i.ElSkeletonItem),{variant:"text",style:{width:"100%",height:"2rem"}}),e.createVNode(e.unref(i.ElSkeletonItem),{variant:"text",style:{width:"180px",height:"4rem","margin-right":"4px"}}),e.createVNode(e.unref(i.ElSkeletonItem),{variant:"text",style:{width:"calc( 100% - 184px)",height:"4rem"}}),e.createVNode(e.unref(i.ElSkeletonItem),{variant:"text",style:{width:"180px",height:"8rem","margin-right":"4px"}}),e.createVNode(e.unref(i.ElSkeletonItem),{variant:"text",style:{width:"calc( 100% - 184px)",height:"8rem"}})]),default:e.withCtx(()=>[e.createVNode(e.unref(i.ElTable),{id:"printTable",data:n.value,style:{width:"100%"},"max-height":T.value,size:"small",align:"center",onCellClick:_,"empty-text":e.unref(r)("workSchedule.emptyText"),"cell-class-name":ee},{default:e.withCtx(()=>[e.createVNode(e.unref(i.ElTableColumn),{label:e.unref(r)("workSchedule.title",{name:k.value})+e.unref(S)(p.value,"month")+` ${new Date(p.value).getFullYear()}`,align:"center",height:"34"},{default:e.withCtx(()=>[e.createVNode(e.unref(i.ElTableColumn),{label:e.unref(r)("workSchedule.month"),width:"180",align:"center",fixed:T.value!=="100%"},{default:e.withCtx(t=>[e.createElementVNode("div",fe,e.toDisplayString(n.value[t.$index].name),1)]),_:1},8,["label","fixed"]),e.createVNode(e.unref(i.ElTableColumn),{label:e.unref(r)("workSchedule.numbersMonth"),align:"center"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,t=>(e.openBlock(),e.createBlock(e.unref(i.ElTableColumn),{key:t.day,width:"46","class-name":t.holidays,align:"center",label:t.weekday+`
|
|
3
|
+
`+t.day.toString(),prop:"vacation"},{default:e.withCtx(s=>[e.createElementVNode("div",{style:{height:"100px",width:"100%",display:"inline-block"},innerHTML:Q(t.day,s.$index)||" "},null,8,pe)]),_:2},1032,["class-name","label"]))),128))]),_:1},8,["label"]),e.createVNode(e.unref(i.ElTableColumn),{label:e.unref(r)("workSchedule.onSchedule"),align:"center",fixed:T.value!=="100%"?"right":!1},{default:e.withCtx(()=>[e.createVNode(e.unref(i.ElTableColumn),{label:e.unref(r)("workSchedule.days"),align:"center"},{default:e.withCtx(t=>[e.createTextVNode(e.toDisplayString(n.value[t.$index].days.length||0),1)]),_:1},8,["label"]),e.createVNode(e.unref(i.ElTableColumn),{label:`${e.unref(r)("workSchedule.hours")} ( ${D.value} )`,align:"center"},{default:e.withCtx(t=>[e.createElementVNode("div",{style:e.normalizeStyle(`color: ${D.value===t.row.contHour?"green":"red"};`)},e.toDisplayString(t.row.contHour),5)]),_:1},8,["label"])]),_:1},8,["label","fixed"])]),_:1},8,["label"])]),_:1},8,["data","max-height","empty-text"])]),_:1},8,["loading"]),le.value&&w.checkEdit?(e.openBlock(),e.createElementBlock("div",ye,[e.createTextVNode(e.toDisplayString(e.unref(r)("workSchedule.chartsFilled"))+": ",1),F.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(i.ElButton),{key:0,type:"primary",onClick:re},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("workSchedule.confirm")),1)]),_:1})),l[20]||(l[20]=e.createTextVNode()),e.createElementVNode("span",null,e.toDisplayString(w.fullName),1)])):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createBlock(e.unref(i.ElButton),{disabled:z.value,plain:"",onClick:ue,style:{"margin-top":".5rem"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("workSchedule.exportExcel")),1)]),_:1},8,["disabled"])),[[d,z.value]]),e.createVNode(e.unref(i.ElDialog),{title:e.unref(r)("workSchedule.jobTitle"),modelValue:$.value,"onUpdate:modelValue":l[6]||(l[6]=t=>$.value=t),width:"400px"},{footer:e.withCtx(()=>[e.createVNode(e.unref(i.ElButton),{onClick:l[5]||(l[5]=t=>$.value=!1),size:"default"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.$t("workSchedule.cancel")),1)]),_:1}),e.createVNode(e.unref(i.ElButton),{size:"default",type:"primary",onClick:W},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.$t("workSchedule.select")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(i.ElForm),{ref:"dialogForm",model:V.value,autocomplete:"on"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,t=>(e.openBlock(),e.createBlock(e.unref(i.ElFormItem),null,{default:e.withCtx(()=>[e.createVNode(e.unref(i.ElSwitch),{modelValue:t.val,"onUpdate:modelValue":s=>t.val=s,"active-text":t.activeText},null,8,["modelValue","onUpdate:modelValue","active-text"])]),_:2},1024))),256))]),_:1},8,["model"])]),_:1},8,["title","modelValue"]),e.createVNode(e.unref(G.ContextMenu),{show:Y.value,"onUpdate:show":l[18]||(l[18]=t=>Y.value=t),options:P.value},{default:e.withCtx(()=>[e.createVNode(e.unref(G.ContextMenuItem),{label:v.value.name,disabled:""},null,8,["label"]),e.createVNode(e.unref(G.ContextMenuSeparator)),v.value.level===2?(e.openBlock(),e.createElementBlock("div",we,[e.createVNode(e.unref(i.ElRadioGroup),{modelValue:q.value,"onUpdate:modelValue":l[7]||(l[7]=t=>q.value=t),size:"small"},{default:e.withCtx(()=>[e.createVNode(e.unref(i.ElRadioButton),{label:e.unref(r)("workSchedule.Days5"),value:"5"},null,8,["label"]),e.createVNode(e.unref(i.ElRadioButton),{label:"2 Х 2",value:"2x2"}),e.createVNode(e.unref(i.ElRadioButton),{label:"2 Х 5",value:"2x5"})]),_:1},8,["modelValue"]),l[21]||(l[21]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("span",null,e.toDisplayString(e.unref(r)("workSchedule.fromDate"))+":",1),e.createVNode(e.unref(i.ElSlider),{modelValue:B.value,"onUpdate:modelValue":l[8]||(l[8]=t=>B.value=t),step:1,min:1,max:u.value.length},null,8,["modelValue","max"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(r)("workSchedule.with"))+":",1),e.createVNode(e.unref(i.ElSlider),{modelValue:C.value,"onUpdate:modelValue":l[9]||(l[9]=t=>C.value=t),step:1,min:8,max:11},null,8,["modelValue"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(r)("workSchedule.duration"))+":",1),e.createVNode(e.unref(i.ElSlider),{modelValue:y.value,"onUpdate:modelValue":l[10]||(l[10]=t=>y.value=t),step:1,min:4,max:24-C.value},null,8,["modelValue","max"]),e.createVNode(e.unref(i.ElButton),{style:{"margin-top":".5rem"},size:"small",onClick:l[11]||(l[11]=t=>ne(v.value.ids))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("workSchedule.fillOut")),1)]),_:1}),e.createVNode(e.unref(i.ElButton),{style:{"margin-top":".5rem"},size:"small",onClick:l[12]||(l[12]=t=>ae(v.value.ids))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("workSchedule.clearRow")),1)]),_:1})])):(e.openBlock(),e.createElementBlock("div",ke,[e.createElementVNode("div",null,e.toDisplayString(Q(v.value.day,v.value.ids)),1),l[22]||(l[22]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("span",null,e.toDisplayString(e.unref(r)("workSchedule.with"))+":",1),e.createVNode(e.unref(i.ElSlider),{modelValue:C.value,"onUpdate:modelValue":l[13]||(l[13]=t=>C.value=t),step:1,min:8,max:11,onChange:l[14]||(l[14]=t=>X(v.value.day,v.value.ids))},null,8,["modelValue"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(r)("workSchedule.duration"))+":",1),e.createVNode(e.unref(i.ElSlider),{modelValue:y.value,"onUpdate:modelValue":l[15]||(l[15]=t=>y.value=t),step:1,min:4,max:12,onChange:l[16]||(l[16]=t=>X(v.value.day,v.value.ids))},null,8,["modelValue"]),e.createVNode(e.unref(i.ElButton),{style:{"margin-top":".5rem"},size:"small",onClick:l[17]||(l[17]=t=>oe(v.value.day,v.value.ids))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("workSchedule.delete")),1)]),_:1})]))]),_:1},8,["show","options"])])}}};module.exports=Ce;
|
package/dist/WorkTable.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ref as s, watch as ye, computed as Me, resolveComponent as Ne, resolveDirective as Ae, createElementBlock as
|
|
1
|
+
import { ref as s, watch as ye, computed as Me, resolveComponent as Ne, resolveDirective as Ae, createElementBlock as T, openBlock as w, createElementVNode as k, createVNode as i, createCommentVNode as _, withDirectives as Te, createBlock as B, unref as a, withCtx as v, Fragment as de, renderList as ie, createTextVNode as $, toDisplayString as h, normalizeStyle as Be } from "vue";
|
|
2
2
|
import { saveAs as ze } from "file-saver";
|
|
3
3
|
import * as Fe from "exceljs";
|
|
4
|
-
import { p as
|
|
4
|
+
import { p as j, b as re, h as Ye, a as fe, c as D } from "./index-D4ZMBdCa.js";
|
|
5
5
|
import { useI18n as Ue } from "vue-i18n";
|
|
6
|
-
import { ElSelect as He, ElOption as Ie, ElButton as M, ElSwitch as
|
|
6
|
+
import { ElSelect as He, ElOption as Ie, ElButton as M, ElSwitch as ve, ElSkeleton as Re, ElTable as We, ElTableColumn as z, ElSkeletonItem as L, ElDialog as Pe, ElForm as je, ElFormItem as Le, ElRadioGroup as Oe, ElRadioButton as se, ElSlider as O } from "element-plus";
|
|
7
7
|
import { ContextMenu as Ge, ContextMenuItem as Ze, ContextMenuSeparator as qe } from "@imengyu/vue3-context-menu";
|
|
8
8
|
const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "100px", width: "100%", display: "inline-block" } }, Xe = ["innerHTML"], _e = {
|
|
9
9
|
key: 0,
|
|
@@ -24,8 +24,8 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
24
24
|
fullName: { type: String, default: "Вы" },
|
|
25
25
|
group: String
|
|
26
26
|
},
|
|
27
|
-
setup(
|
|
28
|
-
const { t: d, d:
|
|
27
|
+
setup(F) {
|
|
28
|
+
const { t: d, d: G } = Ue(), C = F, Z = s(!1), n = s([
|
|
29
29
|
// { name: 'Иванов П.М. (Ведущий работник месяца)',
|
|
30
30
|
// days: [], // {day: "2024-11-01", tips: '(9:00 - 18:00)', time: 8 }
|
|
31
31
|
// contHour: 0,
|
|
@@ -38,194 +38,194 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
38
38
|
// code: '0000-00052'
|
|
39
39
|
// ids: 1
|
|
40
40
|
// }
|
|
41
|
-
]),
|
|
41
|
+
]), ee = s((/* @__PURE__ */ new Date()).getMonth() + 1), le = s(!1), Y = s([]), f = s(new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1)), u = s([]), U = s(0), b = s(9), x = s(8), q = s(!1), ge = s(!0), H = s(!1), te = s("5"), I = s(1), S = s(""), ae = s([]), E = s([]), J = s([]), m = s({ name: "Имя", length: 0, code: "" }), K = s(!1), ne = s({
|
|
42
42
|
zIndex: 30,
|
|
43
43
|
minWidth: 220,
|
|
44
44
|
x: 500,
|
|
45
45
|
y: 200
|
|
46
|
-
}),
|
|
47
|
-
ye(
|
|
48
|
-
t !== e && (E.value = [],
|
|
46
|
+
}), me = s({}), R = s("100%");
|
|
47
|
+
ye(S, async (t, e) => {
|
|
48
|
+
t !== e && (E.value = [], q.value = !1, C.odata.personal.forEach((o) => {
|
|
49
49
|
o.divisionName === t && (E.value.some((r) => (r == null ? void 0 : r.activeText) === o.roleName) || E.value.push({ val: !0, activeText: o.roleName }));
|
|
50
|
-
}),
|
|
51
|
-
}), ye(
|
|
50
|
+
}), oe());
|
|
51
|
+
}), ye(ee, async (t) => {
|
|
52
52
|
let e = (/* @__PURE__ */ new Date()).getMonth(), o = t === null ? e : t - 1;
|
|
53
|
-
o = e - 1 <= o ? o : o + 12, f.value = new Date((/* @__PURE__ */ new Date()).getFullYear(), o, 1),
|
|
53
|
+
o = e - 1 <= o ? o : o + 12, f.value = new Date((/* @__PURE__ */ new Date()).getFullYear(), o, 1), he();
|
|
54
54
|
});
|
|
55
55
|
const we = (t, e, o, r) => {
|
|
56
|
-
m.value.ids = t.ids, m.value.key = t.key, m.value.add = t.days.length > 0 && t.days[t.days.length - 1].cont, m.value.level = e.level, m.value.day = o.cellIndex,
|
|
56
|
+
m.value.ids = t.ids, m.value.key = t.key, m.value.add = t.days.length > 0 && t.days[t.days.length - 1].cont, m.value.level = e.level, m.value.day = o.cellIndex, ne.value.y = r.clientY, ne.value.x = r.clientX, e.level === 2 && e.no === 0 && C.checkEdit && (m.value.name = d("workSchedule.autocomplete"), K.value = !0), e.level === 3 && o.cellIndex - e.no === 1 && C.checkEdit && (N(o.cellIndex, t.ids), m.value.name = d("workSchedule.modeSelection"), K.value = !0);
|
|
57
57
|
}, ke = ({ row: t, columnIndex: e }) => {
|
|
58
|
-
if (!
|
|
58
|
+
if (!Y.value || Y.value.length === 0 || !le.value) return "";
|
|
59
59
|
const o = new Date(new Date(f.value).getFullYear(), new Date(f.value).getMonth(), e).getTime() + 1e3;
|
|
60
|
-
for (let r of
|
|
61
|
-
const { dateStart: l, dateEnd: g, code:
|
|
62
|
-
if (l && g &&
|
|
63
|
-
const
|
|
64
|
-
if (o >=
|
|
60
|
+
for (let r of Y.value) {
|
|
61
|
+
const { dateStart: l, dateEnd: g, code: c } = r;
|
|
62
|
+
if (l && g && c === t.code && e !== 0 && e <= u.value.length) {
|
|
63
|
+
const p = new Date(fe(l)).getTime(), A = new Date(fe(g)).getTime();
|
|
64
|
+
if (o >= p && o <= A) return "vacation";
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
return "";
|
|
68
|
-
},
|
|
69
|
-
const t =
|
|
68
|
+
}, he = () => {
|
|
69
|
+
const t = me.value, e = new Date(f.value), o = new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
|
|
70
70
|
let r = [], l = 0;
|
|
71
71
|
for (let g = 1; g <= o; g++) {
|
|
72
|
-
const
|
|
73
|
-
l += t.nowork.includes(
|
|
74
|
-
const
|
|
75
|
-
r.push({ day: g, holidays:
|
|
72
|
+
const c = j(e.setDate(g), "{Y}-{m}-{dd}");
|
|
73
|
+
l += t.nowork.includes(c) || t.holidays.includes(c) ? 0 : t.preholidays.includes(c) ? 7 : 8;
|
|
74
|
+
const p = t.nowork.includes(c) ? "nowork" : t.holidays.includes(c) ? "holiday" : t.preholidays.includes(c) ? "preholiday" : "";
|
|
75
|
+
r.push({ day: g, holidays: p, weekday: G(new Date(e.getFullYear(), e.getMonth(), g), "day") });
|
|
76
76
|
}
|
|
77
|
-
|
|
78
|
-
var
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}),
|
|
77
|
+
U.value = l, u.value = r, C.odata.getPersonal({}).then((g) => {
|
|
78
|
+
var c;
|
|
79
|
+
S.value.length === 0 && (S.value = (c = g.find((p) => p.employeeName === C.fullName)) == null ? void 0 : c.divisionName), g.forEach((p, A) => {
|
|
80
|
+
ae.value.some((V) => (V == null ? void 0 : V.value) === p.divisionName) || ae.value.push({ value: p.divisionName, label: p.divisionName, key: A }), p.divisionName === S.value && !E.value.some((V) => (V == null ? void 0 : V.activeText) === p.roleName) && E.value.push({ val: !0, activeText: p.roleName });
|
|
81
|
+
}), oe(), ge.value = !1;
|
|
82
82
|
});
|
|
83
|
-
}, Ce = Me(() => !n.value.some((t) => t.contHour !==
|
|
84
|
-
var g,
|
|
85
|
-
const o = new Date(f.value), r = `${o.getFullYear()}-${(o.getMonth() + 1).toString().padStart(2, "0")}-${t.toString().padStart(2, "0")}`, l = (g = n.value[e]) == null ? void 0 : g.days.findIndex((
|
|
86
|
-
return e === -1 || l === -1 ? "" : ((
|
|
87
|
-
},
|
|
88
|
-
n.value = [],
|
|
89
|
-
if (t.divisionName ===
|
|
90
|
-
let e =
|
|
91
|
-
|
|
83
|
+
}, Ce = Me(() => !n.value.some((t) => t.contHour !== U.value)), ce = (t, e) => {
|
|
84
|
+
var g, c, p;
|
|
85
|
+
const o = new Date(f.value), r = `${o.getFullYear()}-${(o.getMonth() + 1).toString().padStart(2, "0")}-${t.toString().padStart(2, "0")}`, l = (g = n.value[e]) == null ? void 0 : g.days.findIndex((A) => A.day === r);
|
|
86
|
+
return e === -1 || l === -1 ? "" : ((c = n.value[e].days[l]) == null ? void 0 : c.tips) + "<br>" + ((p = n.value[e].days[l]) == null ? void 0 : p.time);
|
|
87
|
+
}, oe = () => {
|
|
88
|
+
n.value = [], J.value = [], Y.value = [], C.odata.personal.forEach((t) => {
|
|
89
|
+
if (t.divisionName === S.value && E.value.some((e) => e.val && e.activeText === t.roleName)) {
|
|
90
|
+
let e = re(t.employeeName);
|
|
91
|
+
J.value.push(t.employeeKey), n.value.push({ name: e + " (" + t.roleName + ")", days: [], contHour: 0, code: t.employeeKey, id: !1, ids: n.value.length });
|
|
92
92
|
}
|
|
93
|
-
}), C.workSchedule.getUsersYear({ code:
|
|
93
|
+
}), C.workSchedule.getUsersYear({ code: J.value, year: new Date(f.value).getFullYear() }).then((t) => {
|
|
94
94
|
t.forEach((e) => {
|
|
95
|
-
e.dateStart &&
|
|
96
|
-
}), console.log(t),
|
|
95
|
+
e.dateStart && Y.value.push({ code: e.code, dateStart: e.dateStart, dateEnd: e.dateEnd });
|
|
96
|
+
}), console.log(t), xe(), H.value = !1;
|
|
97
97
|
});
|
|
98
|
-
},
|
|
99
|
-
C.workSchedule.getWorkSchedule({ code:
|
|
98
|
+
}, xe = () => {
|
|
99
|
+
C.workSchedule.getWorkSchedule({ code: J.value, date: j(new Date(f.value), "{Y}-{m}-{dd}") }).then(
|
|
100
100
|
(t) => {
|
|
101
101
|
t.forEach((e, o) => {
|
|
102
102
|
e !== null && (n.value[o].days = e.data.days, n.value[o].id = e.id);
|
|
103
|
-
}),
|
|
103
|
+
}), W();
|
|
104
104
|
}
|
|
105
105
|
);
|
|
106
|
-
},
|
|
106
|
+
}, W = () => {
|
|
107
107
|
n.value.forEach((t) => {
|
|
108
108
|
t.contHour = t.days.reduce((e, o) => e + o.time, 0);
|
|
109
109
|
});
|
|
110
|
-
},
|
|
111
|
-
n.value[t].days = [],
|
|
110
|
+
}, Se = (t) => {
|
|
111
|
+
n.value[t].days = [], W();
|
|
112
112
|
}, $e = (t) => {
|
|
113
|
-
switch (
|
|
113
|
+
switch (te.value) {
|
|
114
114
|
case "5":
|
|
115
|
-
for (let e =
|
|
116
|
-
u.value[e - 1].holidays === "" && N(e, t, !0), u.value[e - 1].holidays === "preholiday" && (
|
|
115
|
+
for (let e = I.value; e <= u.value.length; e++)
|
|
116
|
+
u.value[e - 1].holidays === "" && N(e, t, !0), u.value[e - 1].holidays === "preholiday" && (x.value -= 1, N(e, t, !0), x.value += 1);
|
|
117
117
|
break;
|
|
118
118
|
case "2x2":
|
|
119
|
-
for (let e =
|
|
119
|
+
for (let e = I.value; e <= u.value.length; e += 4)
|
|
120
120
|
N(e, t, !0), e + 1 <= u.value.length && N(e + 1, t, !0);
|
|
121
121
|
break;
|
|
122
122
|
case "2x5":
|
|
123
|
-
for (let e =
|
|
123
|
+
for (let e = I.value; e <= u.value.length; e += 7)
|
|
124
124
|
for (let o = e; o < e + 5 && o <= u.value.length; o++)
|
|
125
|
-
u.value[o - 1].holidays === "preholiday" ? (
|
|
125
|
+
u.value[o - 1].holidays === "preholiday" ? (x.value -= 1, N(o, t, !0), x.value += 1) : N(o, t, !0);
|
|
126
126
|
break;
|
|
127
127
|
}
|
|
128
128
|
}, N = (t, e, o = !1) => {
|
|
129
|
-
const { date: r, ind: l } =
|
|
129
|
+
const { date: r, ind: l } = Q(t, e);
|
|
130
130
|
l === -1 ? (n.value[e].days.push({
|
|
131
131
|
day: r,
|
|
132
|
-
time:
|
|
133
|
-
tips: `(${
|
|
134
|
-
}),
|
|
132
|
+
time: x.value,
|
|
133
|
+
tips: `(${b.value}:00 - ${b.value + x.value + 1}:00)`
|
|
134
|
+
}), W()) : o || (x.value = n.value[e].days[l].time, b.value = parseInt(n.value[e].days[l].tips.slice(1, -12)));
|
|
135
135
|
}, be = (t, e) => {
|
|
136
|
-
const { ind: o } =
|
|
137
|
-
n.value[e].days.splice(o, 1),
|
|
138
|
-
},
|
|
139
|
-
const { date: o, ind: r } =
|
|
136
|
+
const { ind: o } = Q(t, e);
|
|
137
|
+
n.value[e].days.splice(o, 1), W(), document.querySelector(".app-main").click();
|
|
138
|
+
}, pe = (t, e) => {
|
|
139
|
+
const { date: o, ind: r } = Q(t, e);
|
|
140
140
|
n.value[e].days[r] = {
|
|
141
141
|
day: o,
|
|
142
|
-
time:
|
|
143
|
-
tips: `(${
|
|
144
|
-
},
|
|
145
|
-
},
|
|
142
|
+
time: x.value,
|
|
143
|
+
tips: `(${b.value}:00 - ${b.value + x.value + 1}:00)`
|
|
144
|
+
}, W();
|
|
145
|
+
}, Q = (t, e) => {
|
|
146
146
|
var l;
|
|
147
|
-
const o =
|
|
147
|
+
const o = j(new Date(f.value).setDate(t), "{Y}-{m}-{dd}"), r = (l = n.value[e]) == null ? void 0 : l.days.findIndex((g) => g.day === o);
|
|
148
148
|
return { date: o, ind: r };
|
|
149
149
|
}, Ve = async () => {
|
|
150
|
-
var
|
|
151
|
-
|
|
152
|
-
const t = new Fe.Workbook(), e = t.addWorksheet(
|
|
153
|
-
e.mergeCells(`A1:${D("A1", u.value.length + 5)}1`), e.mergeCells(`A2:${D("A2", u.value.length + 5)}2`), e.mergeCells("A3:A4"), e.mergeCells(`B3:${D("B3", u.value.length)}3`), e.mergeCells(`${D("B3", u.value.length + 1)}3:${D("B3", u.value.length + 2)}3`), e.mergeCells(`${D("B3", u.value.length + 3)}3:${D("B4", u.value.length + 3)}4`), e.mergeCells(`${D("B3", u.value.length + 4)}3:${D("B4", u.value.length + 4)}4`), e.getCell("A1").value = d("workSchedule.firm"), e.getCell("A2").value = d("workSchedule.title", { name:
|
|
150
|
+
var V;
|
|
151
|
+
Z.value = !0;
|
|
152
|
+
const t = new Fe.Workbook(), e = t.addWorksheet(G(f.value, "month"), { pageSetup: { paperSize: 9, orientation: "landscape", fitToPage: !0 } }), o = { vertical: "middle", horizontal: "center" }, r = { top: { style: "thin" }, left: { style: "thin" }, bottom: { style: "thin" }, right: { style: "thin" } }, l = { vertical: "middle", horizontal: "center", wrapText: !0 };
|
|
153
|
+
e.mergeCells(`A1:${D("A1", u.value.length + 5)}1`), e.mergeCells(`A2:${D("A2", u.value.length + 5)}2`), e.mergeCells("A3:A4"), e.mergeCells(`B3:${D("B3", u.value.length)}3`), e.mergeCells(`${D("B3", u.value.length + 1)}3:${D("B3", u.value.length + 2)}3`), e.mergeCells(`${D("B3", u.value.length + 3)}3:${D("B4", u.value.length + 3)}4`), e.mergeCells(`${D("B3", u.value.length + 4)}3:${D("B4", u.value.length + 4)}4`), e.getCell("A1").value = d("workSchedule.firm"), e.getCell("A2").value = d("workSchedule.title", { name: S.value }) + G(f.value, "month") + ` ${new Date(f.value).getFullYear()}`, e.getCell("A3").value = d("workSchedule.month"), e.getCell("B3").value = d("workSchedule.numbersMonth"), e.getCell(3, u.value.length + 2).value = d("workSchedule.onSchedule"), e.getCell(3, u.value.length + 4).value = d("workSchedule.acquainted"), e.getCell(3, u.value.length + 5).value = d("workSchedule.date"), e.getCell(4, u.value.length + 2).value = d("workSchedule.days"), e.getCell(4, u.value.length + 3).value = `${d("workSchedule.hours")} (${U.value})`;
|
|
154
154
|
for (let y = 2; y <= u.value.length + 1; y++)
|
|
155
155
|
e.getCell(4, y).value = u.value[y - 2].weekday + `
|
|
156
156
|
` + (y - 1), e.getColumn(y).width = 6, e.getColumn(y).alignment = l, e.getCell(4, y).border = r;
|
|
157
157
|
e.getRow(1).height = 40, e.getRow(2).height = 30, e.getRow(3).height = 20, e.getColumn(1).width = 15, e.getColumn(u.value.length + 2).width = 5, e.getColumn(u.value.length + 3).width = 6, e.getColumn(u.value.length + 4).width = 13, e.getColumn(u.value.length + 5).width = 13, e.getColumn(1).alignment = l, e.getCell("A2").alignment = o, e.getCell("A3").alignment = o, e.getCell("B3").alignment = o, e.getCell(3, u.value.length + 2).alignment = o, e.getColumn(u.value.length + 2).alignment = l, e.getColumn(u.value.length + 3).alignment = l, e.getColumn(u.value.length + 4).alignment = o, e.getColumn(u.value.length + 5).alignment = o, e.getCell("A3").border = r, e.getCell("B3").border = r, e.getCell(3, u.value.length + 2).border = r, e.getCell(4, u.value.length + 2).border = r, e.getCell(3, u.value.length + 4).border = r, e.getCell(3, u.value.length + 5).border = r, e.getCell(4, u.value.length + 3).border = r;
|
|
158
158
|
let g = 0;
|
|
159
159
|
for (const y of n.value) {
|
|
160
|
-
let
|
|
161
|
-
for (let
|
|
162
|
-
const { ind:
|
|
163
|
-
|
|
160
|
+
let X = [y.name];
|
|
161
|
+
for (let P = 1; P <= u.value.length; P++) {
|
|
162
|
+
const { ind: ue } = Q(P, g);
|
|
163
|
+
ue !== -1 ? X[P] = `${y.days[ue].time} ${y.days[ue].tips}` : X[P] = " ";
|
|
164
164
|
}
|
|
165
|
-
|
|
166
|
-
const Ee = e.addRow(
|
|
165
|
+
X.push(((V = y.days) == null ? void 0 : V.length) || " ", y.contHour || 0);
|
|
166
|
+
const Ee = e.addRow(X);
|
|
167
167
|
Ee.border = r, g++;
|
|
168
168
|
}
|
|
169
|
-
let
|
|
169
|
+
let c = "Щербина Е. В.";
|
|
170
170
|
C.odata.personal.forEach((y) => {
|
|
171
|
-
y.roleName === "Начальник отдела правовой и кадровой работы" && (
|
|
172
|
-
}), e.mergeCells(`A${n.value.length + 6}:P${n.value.length + 6}`), e.mergeCells(`Q${n.value.length + 6}:AG${n.value.length + 6}`), e.mergeCells(`B${n.value.length + 8}:E${n.value.length + 8}`), e.mergeCells(`F${n.value.length + 8}:L${n.value.length + 8}`), e.mergeCells(`M${n.value.length + 8}:P${n.value.length + 8}`), e.mergeCells(`S${n.value.length + 8}:V${n.value.length + 8}`), e.mergeCells(`W${n.value.length + 8}:AC${n.value.length + 8}`), e.mergeCells(`AD${n.value.length + 8}:AG${n.value.length + 8}`), e.mergeCells(`Z${n.value.length + 9}:AA${n.value.length + 9}`), e.getCell(`A${n.value.length + 6}`).value = d("workSchedule.byInitials"), e.getCell(`Q${n.value.length + 6}`).value = d("workSchedule.supervisorHR"), e.getCell(`B${n.value.length + 8}`).value = d("workSchedule.compiled") + ":", e.getCell(`S${n.value.length + 8}`).value = d("workSchedule.approved") + ":", e.getCell(`M${n.value.length + 8}`).value =
|
|
173
|
-
const
|
|
174
|
-
ze(new Blob([
|
|
171
|
+
y.roleName === "Начальник отдела правовой и кадровой работы" && (c = y.employeeName);
|
|
172
|
+
}), e.mergeCells(`A${n.value.length + 6}:P${n.value.length + 6}`), e.mergeCells(`Q${n.value.length + 6}:AG${n.value.length + 6}`), e.mergeCells(`B${n.value.length + 8}:E${n.value.length + 8}`), e.mergeCells(`F${n.value.length + 8}:L${n.value.length + 8}`), e.mergeCells(`M${n.value.length + 8}:P${n.value.length + 8}`), e.mergeCells(`S${n.value.length + 8}:V${n.value.length + 8}`), e.mergeCells(`W${n.value.length + 8}:AC${n.value.length + 8}`), e.mergeCells(`AD${n.value.length + 8}:AG${n.value.length + 8}`), e.mergeCells(`Z${n.value.length + 9}:AA${n.value.length + 9}`), e.getCell(`A${n.value.length + 6}`).value = d("workSchedule.byInitials"), e.getCell(`Q${n.value.length + 6}`).value = d("workSchedule.supervisorHR"), e.getCell(`B${n.value.length + 8}`).value = d("workSchedule.compiled") + ":", e.getCell(`S${n.value.length + 8}`).value = d("workSchedule.approved") + ":", e.getCell(`M${n.value.length + 8}`).value = re(C.fullName), e.getCell(`AD${n.value.length + 8}`).value = re(c), e.getCell(`Z${n.value.length + 9}`).value = d("workSchedule.printPlace"), e.getCell(`A${n.value.length + 6}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`Q${n.value.length + 6}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`B${n.value.length + 8}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`F${n.value.length + 8}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`M${n.value.length + 8}`).alignment = { vertical: "middle", horizontal: "left" }, e.getCell(`AD${n.value.length + 8}`).alignment = { vertical: "middle", horizontal: "left" }, e.getCell(`Z${n.value.length + 9}`).alignment = o, e.getCell(`F${n.value.length + 8}`).border = { bottom: { style: "thin" } }, e.getCell(`W${n.value.length + 8}`).border = { bottom: { style: "thin" } };
|
|
173
|
+
const p = "export_" + j(Date.now(), "{dd}.{m}.{Y}") + ".xlsx", A = await t.xlsx.writeBuffer();
|
|
174
|
+
ze(new Blob([A]), p), Z.value = !1;
|
|
175
175
|
}, De = async () => {
|
|
176
|
-
|
|
176
|
+
q.value || C.workSchedule.addWorkSchedule({ data: n.value, date: j(new Date(f.value), "{Y}-{m}-{dd}"), group: S.value }).then((t) => q.value = t);
|
|
177
177
|
};
|
|
178
|
-
return C.group && (
|
|
179
|
-
|
|
178
|
+
return C.group && (S.value = C.group), Ye().then((t) => {
|
|
179
|
+
me.value = t, he();
|
|
180
180
|
}), (t, e) => {
|
|
181
181
|
const o = Ne("el-date-picker"), r = Ae("loading");
|
|
182
|
-
return w(),
|
|
182
|
+
return w(), T("div", Je, [
|
|
183
183
|
k("div", Ke, [
|
|
184
|
-
|
|
184
|
+
F.checkEdit ? (w(), B(a(He), {
|
|
185
185
|
key: 0,
|
|
186
|
-
modelValue:
|
|
187
|
-
"onUpdate:modelValue": e[0] || (e[0] = (l) =>
|
|
186
|
+
modelValue: S.value,
|
|
187
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => S.value = l),
|
|
188
188
|
placeholder: "Select",
|
|
189
189
|
style: { width: "240px" }
|
|
190
190
|
}, {
|
|
191
191
|
default: v(() => [
|
|
192
|
-
(w(!0),
|
|
193
|
-
key: l.
|
|
192
|
+
(w(!0), T(de, null, ie(ae.value, (l) => (w(), B(a(Ie), {
|
|
193
|
+
key: l.key,
|
|
194
194
|
label: l.label,
|
|
195
195
|
value: l.value
|
|
196
196
|
}, null, 8, ["label", "value"]))), 128))
|
|
197
197
|
]),
|
|
198
198
|
_: 1
|
|
199
|
-
}, 8, ["modelValue"])) :
|
|
200
|
-
|
|
199
|
+
}, 8, ["modelValue"])) : _("", !0),
|
|
200
|
+
F.checkEdit ? (w(), B(a(M), {
|
|
201
201
|
key: 1,
|
|
202
202
|
plain: "",
|
|
203
|
-
onClick: e[1] || (e[1] = (l) =>
|
|
203
|
+
onClick: e[1] || (e[1] = (l) => H.value = !0)
|
|
204
204
|
}, {
|
|
205
205
|
default: v(() => [
|
|
206
|
-
|
|
206
|
+
$(h(a(d)("workSchedule.jobTitle")), 1)
|
|
207
207
|
]),
|
|
208
208
|
_: 1
|
|
209
|
-
})) :
|
|
209
|
+
})) : _("", !0),
|
|
210
210
|
i(o, {
|
|
211
|
-
modelValue:
|
|
212
|
-
"onUpdate:modelValue": e[2] || (e[2] = (l) =>
|
|
211
|
+
modelValue: ee.value,
|
|
212
|
+
"onUpdate:modelValue": e[2] || (e[2] = (l) => ee.value = l),
|
|
213
213
|
type: "month",
|
|
214
214
|
placeholder: "Выберите месяц",
|
|
215
215
|
format: "MMM",
|
|
216
216
|
"value-format": "M"
|
|
217
217
|
}, null, 8, ["modelValue"]),
|
|
218
218
|
e[19] || (e[19] = k("div", { class: "expander" }, null, -1)),
|
|
219
|
-
i(a(
|
|
220
|
-
modelValue:
|
|
221
|
-
"onUpdate:modelValue": e[3] || (e[3] = (l) =>
|
|
219
|
+
i(a(ve), {
|
|
220
|
+
modelValue: R.value,
|
|
221
|
+
"onUpdate:modelValue": e[3] || (e[3] = (l) => R.value = l),
|
|
222
222
|
"active-text": t.$t("bids.currentHeight"),
|
|
223
223
|
"active-value": "100%",
|
|
224
224
|
"inactive-value": "calc(100vh - var(--el-component-size)*4 - var(--el-main-padding)*2 - var(--header-height))"
|
|
225
225
|
}, null, 8, ["modelValue", "active-text"]),
|
|
226
|
-
i(a(
|
|
227
|
-
modelValue:
|
|
228
|
-
"onUpdate:modelValue": e[4] || (e[4] = (l) =>
|
|
226
|
+
i(a(ve), {
|
|
227
|
+
modelValue: le.value,
|
|
228
|
+
"onUpdate:modelValue": e[4] || (e[4] = (l) => le.value = l),
|
|
229
229
|
"active-text": "Отпуска",
|
|
230
230
|
"active-value": !0,
|
|
231
231
|
"inactive-value": !1
|
|
@@ -233,27 +233,27 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
233
233
|
]),
|
|
234
234
|
i(a(Re), {
|
|
235
235
|
style: { width: "100%" },
|
|
236
|
-
loading:
|
|
236
|
+
loading: ge.value,
|
|
237
237
|
animated: ""
|
|
238
238
|
}, {
|
|
239
239
|
template: v(() => [
|
|
240
|
-
i(a(
|
|
240
|
+
i(a(L), {
|
|
241
241
|
variant: "text",
|
|
242
242
|
style: { width: "100%", height: "2rem" }
|
|
243
243
|
}),
|
|
244
|
-
i(a(
|
|
244
|
+
i(a(L), {
|
|
245
245
|
variant: "text",
|
|
246
246
|
style: { width: "180px", height: "4rem", "margin-right": "4px" }
|
|
247
247
|
}),
|
|
248
|
-
i(a(
|
|
248
|
+
i(a(L), {
|
|
249
249
|
variant: "text",
|
|
250
250
|
style: { width: "calc( 100% - 184px)", height: "4rem" }
|
|
251
251
|
}),
|
|
252
|
-
i(a(
|
|
252
|
+
i(a(L), {
|
|
253
253
|
variant: "text",
|
|
254
254
|
style: { width: "180px", height: "8rem", "margin-right": "4px" }
|
|
255
255
|
}),
|
|
256
|
-
i(a(
|
|
256
|
+
i(a(L), {
|
|
257
257
|
variant: "text",
|
|
258
258
|
style: { width: "calc( 100% - 184px)", height: "8rem" }
|
|
259
259
|
})
|
|
@@ -263,7 +263,7 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
263
263
|
id: "printTable",
|
|
264
264
|
data: n.value,
|
|
265
265
|
style: { width: "100%" },
|
|
266
|
-
"max-height":
|
|
266
|
+
"max-height": R.value,
|
|
267
267
|
size: "small",
|
|
268
268
|
align: "center",
|
|
269
269
|
onCellClick: we,
|
|
@@ -271,29 +271,29 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
271
271
|
"cell-class-name": ke
|
|
272
272
|
}, {
|
|
273
273
|
default: v(() => [
|
|
274
|
-
i(a(
|
|
275
|
-
label: a(d)("workSchedule.title", { name:
|
|
274
|
+
i(a(z), {
|
|
275
|
+
label: a(d)("workSchedule.title", { name: S.value }) + a(G)(f.value, "month") + ` ${new Date(f.value).getFullYear()}`,
|
|
276
276
|
align: "center",
|
|
277
277
|
height: "34"
|
|
278
278
|
}, {
|
|
279
279
|
default: v(() => [
|
|
280
|
-
i(a(
|
|
280
|
+
i(a(z), {
|
|
281
281
|
label: a(d)("workSchedule.month"),
|
|
282
282
|
width: "180",
|
|
283
283
|
align: "center",
|
|
284
|
-
fixed:
|
|
284
|
+
fixed: R.value !== "100%"
|
|
285
285
|
}, {
|
|
286
286
|
default: v((l) => [
|
|
287
287
|
k("div", Qe, h(n.value[l.$index].name), 1)
|
|
288
288
|
]),
|
|
289
289
|
_: 1
|
|
290
290
|
}, 8, ["label", "fixed"]),
|
|
291
|
-
i(a(
|
|
291
|
+
i(a(z), {
|
|
292
292
|
label: a(d)("workSchedule.numbersMonth"),
|
|
293
293
|
align: "center"
|
|
294
294
|
}, {
|
|
295
295
|
default: v(() => [
|
|
296
|
-
(w(!0),
|
|
296
|
+
(w(!0), T(de, null, ie(u.value, (l) => (w(), B(a(z), {
|
|
297
297
|
key: l.day,
|
|
298
298
|
width: "46",
|
|
299
299
|
"class-name": l.holidays,
|
|
@@ -305,7 +305,7 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
305
305
|
default: v((g) => [
|
|
306
306
|
k("div", {
|
|
307
307
|
style: { height: "100px", width: "100%", display: "inline-block" },
|
|
308
|
-
innerHTML:
|
|
308
|
+
innerHTML: ce(l.day, g.$index) || " "
|
|
309
309
|
}, null, 8, Xe)
|
|
310
310
|
]),
|
|
311
311
|
_: 2
|
|
@@ -313,28 +313,28 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
313
313
|
]),
|
|
314
314
|
_: 1
|
|
315
315
|
}, 8, ["label"]),
|
|
316
|
-
i(a(
|
|
316
|
+
i(a(z), {
|
|
317
317
|
label: a(d)("workSchedule.onSchedule"),
|
|
318
318
|
align: "center",
|
|
319
|
-
fixed:
|
|
319
|
+
fixed: R.value !== "100%" ? "right" : !1
|
|
320
320
|
}, {
|
|
321
321
|
default: v(() => [
|
|
322
|
-
i(a(
|
|
322
|
+
i(a(z), {
|
|
323
323
|
label: a(d)("workSchedule.days"),
|
|
324
324
|
align: "center"
|
|
325
325
|
}, {
|
|
326
326
|
default: v((l) => [
|
|
327
|
-
|
|
327
|
+
$(h(n.value[l.$index].days.length || 0), 1)
|
|
328
328
|
]),
|
|
329
329
|
_: 1
|
|
330
330
|
}, 8, ["label"]),
|
|
331
|
-
i(a(
|
|
332
|
-
label: `${a(d)("workSchedule.hours")} ( ${
|
|
331
|
+
i(a(z), {
|
|
332
|
+
label: `${a(d)("workSchedule.hours")} ( ${U.value} )`,
|
|
333
333
|
align: "center"
|
|
334
334
|
}, {
|
|
335
335
|
default: v((l) => [
|
|
336
336
|
k("div", {
|
|
337
|
-
style: Be(`color: ${
|
|
337
|
+
style: Be(`color: ${U.value === l.row.contHour ? "green" : "red"};`)
|
|
338
338
|
}, h(l.row.contHour), 5)
|
|
339
339
|
]),
|
|
340
340
|
_: 1
|
|
@@ -351,57 +351,57 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
351
351
|
]),
|
|
352
352
|
_: 1
|
|
353
353
|
}, 8, ["loading"]),
|
|
354
|
-
Ce.value &&
|
|
355
|
-
|
|
356
|
-
|
|
354
|
+
Ce.value && F.checkEdit ? (w(), T("div", _e, [
|
|
355
|
+
$(h(a(d)("workSchedule.chartsFilled")) + ": ", 1),
|
|
356
|
+
q.value ? _("", !0) : (w(), B(a(M), {
|
|
357
357
|
key: 0,
|
|
358
358
|
type: "primary",
|
|
359
359
|
onClick: De
|
|
360
360
|
}, {
|
|
361
361
|
default: v(() => [
|
|
362
|
-
|
|
362
|
+
$(h(a(d)("workSchedule.confirm")), 1)
|
|
363
363
|
]),
|
|
364
364
|
_: 1
|
|
365
365
|
})),
|
|
366
|
-
e[20] || (e[20] =
|
|
367
|
-
k("span", null, h(
|
|
368
|
-
])) :
|
|
369
|
-
Te((w(),
|
|
370
|
-
disabled:
|
|
366
|
+
e[20] || (e[20] = $()),
|
|
367
|
+
k("span", null, h(F.fullName), 1)
|
|
368
|
+
])) : _("", !0),
|
|
369
|
+
Te((w(), B(a(M), {
|
|
370
|
+
disabled: Z.value,
|
|
371
371
|
plain: "",
|
|
372
372
|
onClick: Ve,
|
|
373
373
|
style: { "margin-top": ".5rem" }
|
|
374
374
|
}, {
|
|
375
375
|
default: v(() => [
|
|
376
|
-
|
|
376
|
+
$(h(a(d)("workSchedule.exportExcel")), 1)
|
|
377
377
|
]),
|
|
378
378
|
_: 1
|
|
379
379
|
}, 8, ["disabled"])), [
|
|
380
|
-
[r,
|
|
380
|
+
[r, Z.value]
|
|
381
381
|
]),
|
|
382
382
|
i(a(Pe), {
|
|
383
383
|
title: a(d)("workSchedule.jobTitle"),
|
|
384
|
-
modelValue:
|
|
385
|
-
"onUpdate:modelValue": e[6] || (e[6] = (l) =>
|
|
384
|
+
modelValue: H.value,
|
|
385
|
+
"onUpdate:modelValue": e[6] || (e[6] = (l) => H.value = l),
|
|
386
386
|
width: "400px"
|
|
387
387
|
}, {
|
|
388
388
|
footer: v(() => [
|
|
389
389
|
i(a(M), {
|
|
390
|
-
onClick: e[5] || (e[5] = (l) =>
|
|
390
|
+
onClick: e[5] || (e[5] = (l) => H.value = !1),
|
|
391
391
|
size: "default"
|
|
392
392
|
}, {
|
|
393
393
|
default: v(() => [
|
|
394
|
-
|
|
394
|
+
$(h(t.$t("workSchedule.cancel")), 1)
|
|
395
395
|
]),
|
|
396
396
|
_: 1
|
|
397
397
|
}),
|
|
398
398
|
i(a(M), {
|
|
399
399
|
size: "default",
|
|
400
400
|
type: "primary",
|
|
401
|
-
onClick:
|
|
401
|
+
onClick: oe
|
|
402
402
|
}, {
|
|
403
403
|
default: v(() => [
|
|
404
|
-
|
|
404
|
+
$(h(t.$t("workSchedule.select")), 1)
|
|
405
405
|
]),
|
|
406
406
|
_: 1
|
|
407
407
|
})
|
|
@@ -413,9 +413,9 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
413
413
|
autocomplete: "on"
|
|
414
414
|
}, {
|
|
415
415
|
default: v(() => [
|
|
416
|
-
(w(!0),
|
|
416
|
+
(w(!0), T(de, null, ie(E.value, (l) => (w(), B(a(Le), null, {
|
|
417
417
|
default: v(() => [
|
|
418
|
-
i(a(
|
|
418
|
+
i(a(ve), {
|
|
419
419
|
modelValue: l.val,
|
|
420
420
|
"onUpdate:modelValue": (g) => l.val = g,
|
|
421
421
|
"active-text": l.activeText
|
|
@@ -430,9 +430,9 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
430
430
|
_: 1
|
|
431
431
|
}, 8, ["title", "modelValue"]),
|
|
432
432
|
i(a(Ge), {
|
|
433
|
-
show:
|
|
434
|
-
"onUpdate:show": e[18] || (e[18] = (l) =>
|
|
435
|
-
options:
|
|
433
|
+
show: K.value,
|
|
434
|
+
"onUpdate:show": e[18] || (e[18] = (l) => K.value = l),
|
|
435
|
+
options: ne.value
|
|
436
436
|
}, {
|
|
437
437
|
default: v(() => [
|
|
438
438
|
i(a(Ze), {
|
|
@@ -440,22 +440,22 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
440
440
|
disabled: ""
|
|
441
441
|
}, null, 8, ["label"]),
|
|
442
442
|
i(a(qe)),
|
|
443
|
-
m.value.level === 2 ? (w(),
|
|
443
|
+
m.value.level === 2 ? (w(), T("div", el, [
|
|
444
444
|
i(a(Oe), {
|
|
445
|
-
modelValue:
|
|
446
|
-
"onUpdate:modelValue": e[7] || (e[7] = (l) =>
|
|
445
|
+
modelValue: te.value,
|
|
446
|
+
"onUpdate:modelValue": e[7] || (e[7] = (l) => te.value = l),
|
|
447
447
|
size: "small"
|
|
448
448
|
}, {
|
|
449
449
|
default: v(() => [
|
|
450
|
-
i(a(
|
|
450
|
+
i(a(se), {
|
|
451
451
|
label: a(d)("workSchedule.Days5"),
|
|
452
452
|
value: "5"
|
|
453
453
|
}, null, 8, ["label"]),
|
|
454
|
-
i(a(
|
|
454
|
+
i(a(se), {
|
|
455
455
|
label: "2 Х 2",
|
|
456
456
|
value: "2x2"
|
|
457
457
|
}),
|
|
458
|
-
i(a(
|
|
458
|
+
i(a(se), {
|
|
459
459
|
label: "2 Х 5",
|
|
460
460
|
value: "2x5"
|
|
461
461
|
})
|
|
@@ -464,69 +464,69 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
464
464
|
}, 8, ["modelValue"]),
|
|
465
465
|
e[21] || (e[21] = k("br", null, null, -1)),
|
|
466
466
|
k("span", null, h(a(d)("workSchedule.fromDate")) + ":", 1),
|
|
467
|
-
i(a(
|
|
468
|
-
modelValue:
|
|
469
|
-
"onUpdate:modelValue": e[8] || (e[8] = (l) =>
|
|
467
|
+
i(a(O), {
|
|
468
|
+
modelValue: I.value,
|
|
469
|
+
"onUpdate:modelValue": e[8] || (e[8] = (l) => I.value = l),
|
|
470
470
|
step: 1,
|
|
471
471
|
min: 1,
|
|
472
472
|
max: u.value.length
|
|
473
473
|
}, null, 8, ["modelValue", "max"]),
|
|
474
474
|
k("span", null, h(a(d)("workSchedule.with")) + ":", 1),
|
|
475
|
-
i(a(
|
|
476
|
-
modelValue:
|
|
477
|
-
"onUpdate:modelValue": e[9] || (e[9] = (l) =>
|
|
475
|
+
i(a(O), {
|
|
476
|
+
modelValue: b.value,
|
|
477
|
+
"onUpdate:modelValue": e[9] || (e[9] = (l) => b.value = l),
|
|
478
478
|
step: 1,
|
|
479
479
|
min: 8,
|
|
480
480
|
max: 11
|
|
481
481
|
}, null, 8, ["modelValue"]),
|
|
482
482
|
k("span", null, h(a(d)("workSchedule.duration")) + ":", 1),
|
|
483
|
-
i(a(
|
|
484
|
-
modelValue:
|
|
485
|
-
"onUpdate:modelValue": e[10] || (e[10] = (l) =>
|
|
483
|
+
i(a(O), {
|
|
484
|
+
modelValue: x.value,
|
|
485
|
+
"onUpdate:modelValue": e[10] || (e[10] = (l) => x.value = l),
|
|
486
486
|
step: 1,
|
|
487
487
|
min: 4,
|
|
488
|
-
max:
|
|
489
|
-
}, null, 8, ["modelValue"]),
|
|
488
|
+
max: 24 - b.value
|
|
489
|
+
}, null, 8, ["modelValue", "max"]),
|
|
490
490
|
i(a(M), {
|
|
491
491
|
style: { "margin-top": ".5rem" },
|
|
492
492
|
size: "small",
|
|
493
493
|
onClick: e[11] || (e[11] = (l) => $e(m.value.ids))
|
|
494
494
|
}, {
|
|
495
495
|
default: v(() => [
|
|
496
|
-
|
|
496
|
+
$(h(a(d)("workSchedule.fillOut")), 1)
|
|
497
497
|
]),
|
|
498
498
|
_: 1
|
|
499
499
|
}),
|
|
500
500
|
i(a(M), {
|
|
501
501
|
style: { "margin-top": ".5rem" },
|
|
502
502
|
size: "small",
|
|
503
|
-
onClick: e[12] || (e[12] = (l) =>
|
|
503
|
+
onClick: e[12] || (e[12] = (l) => Se(m.value.ids))
|
|
504
504
|
}, {
|
|
505
505
|
default: v(() => [
|
|
506
|
-
|
|
506
|
+
$(h(a(d)("workSchedule.clearRow")), 1)
|
|
507
507
|
]),
|
|
508
508
|
_: 1
|
|
509
509
|
})
|
|
510
|
-
])) : (w(),
|
|
511
|
-
k("div", null, h(
|
|
510
|
+
])) : (w(), T("div", ll, [
|
|
511
|
+
k("div", null, h(ce(m.value.day, m.value.ids)), 1),
|
|
512
512
|
e[22] || (e[22] = k("br", null, null, -1)),
|
|
513
513
|
k("span", null, h(a(d)("workSchedule.with")) + ":", 1),
|
|
514
|
-
i(a(
|
|
515
|
-
modelValue:
|
|
516
|
-
"onUpdate:modelValue": e[13] || (e[13] = (l) =>
|
|
514
|
+
i(a(O), {
|
|
515
|
+
modelValue: b.value,
|
|
516
|
+
"onUpdate:modelValue": e[13] || (e[13] = (l) => b.value = l),
|
|
517
517
|
step: 1,
|
|
518
518
|
min: 8,
|
|
519
519
|
max: 11,
|
|
520
|
-
onChange: e[14] || (e[14] = (l) =>
|
|
520
|
+
onChange: e[14] || (e[14] = (l) => pe(m.value.day, m.value.ids))
|
|
521
521
|
}, null, 8, ["modelValue"]),
|
|
522
522
|
k("span", null, h(a(d)("workSchedule.duration")) + ":", 1),
|
|
523
|
-
i(a(
|
|
524
|
-
modelValue:
|
|
525
|
-
"onUpdate:modelValue": e[15] || (e[15] = (l) =>
|
|
523
|
+
i(a(O), {
|
|
524
|
+
modelValue: x.value,
|
|
525
|
+
"onUpdate:modelValue": e[15] || (e[15] = (l) => x.value = l),
|
|
526
526
|
step: 1,
|
|
527
527
|
min: 4,
|
|
528
528
|
max: 12,
|
|
529
|
-
onChange: e[16] || (e[16] = (l) =>
|
|
529
|
+
onChange: e[16] || (e[16] = (l) => pe(m.value.day, m.value.ids))
|
|
530
530
|
}, null, 8, ["modelValue"]),
|
|
531
531
|
i(a(M), {
|
|
532
532
|
style: { "margin-top": ".5rem" },
|
|
@@ -534,7 +534,7 @@ const Je = { class: "work" }, Ke = { class: "nav" }, Qe = { style: { height: "10
|
|
|
534
534
|
onClick: e[17] || (e[17] = (l) => be(m.value.day, m.value.ids))
|
|
535
535
|
}, {
|
|
536
536
|
default: v(() => [
|
|
537
|
-
|
|
537
|
+
$(h(a(d)("workSchedule.delete")), 1)
|
|
538
538
|
]),
|
|
539
539
|
_: 1
|
|
540
540
|
})
|