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