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