diff --git a/src/front/package-lock.json b/src/front/package-lock.json index 8cd854872..7dd5df6a3 100644 --- a/src/front/package-lock.json +++ b/src/front/package-lock.json @@ -1,12 +1,12 @@ { "name": "front", - "version": "0.0.31", + "version": "0.0.32", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "front", - "version": "0.0.31", + "version": "0.0.32", "dependencies": { "@fullcalendar/core": "^6.1.8", "@fullcalendar/daygrid": "^6.1.8", diff --git a/src/front/package.json b/src/front/package.json index ce36ee0c4..b1fe8cf1b 100644 --- a/src/front/package.json +++ b/src/front/package.json @@ -1,6 +1,6 @@ { "name": "front", - "version": "0.0.31", + "version": "0.0.32", "scripts": { "dev": "vite", "build": "vite build", diff --git a/src/front/src/components/UI/event-calendar.vue b/src/front/src/components/UI/event-calendar.vue index cbda755ce..4ae206d8c 100644 --- a/src/front/src/components/UI/event-calendar.vue +++ b/src/front/src/components/UI/event-calendar.vue @@ -57,6 +57,7 @@ События + ddd \ No newline at end of file diff --git a/src/general_vacation/excel.py b/src/general_vacation/excel.py index 61cc6258d..89fba6b0c 100644 --- a/src/general_vacation/excel.py +++ b/src/general_vacation/excel.py @@ -15,14 +15,15 @@ class roundExcel(): def __init__(self, us): self.df = pd.DataFrame.from_records(us) self.wb = Workbook() + pass def excround(self): - print(self.df, 'qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq') + self.df['tabel'] = self.df['login'].str.split('-', expand = True)[1]+self.df['login'].str.split('-', expand = True)[2] file_path = 'media/DailyRoundUp.xlsx' thins = Side(border_style="thin") - + print(len(self.df), "-------------------------------") ws = self.wb.active filters = ws.auto_filter filters.ref = "A6:L15" @@ -92,6 +93,7 @@ class roundExcel(): ws.merge_cells(start_row=k, start_column=2, end_row=k, end_column=12) l = pd.DataFrame(self.df[(self.df.department==i)][['tabel', 'familyname', 'name', 'parentname']]) + zap = [7, 9, 11] @@ -105,8 +107,9 @@ class roundExcel(): ws.cell(row = k, column = 3).value = l.iloc[x]['familyname'] ws.cell(row = k, column = 4).value = l.iloc[x]['name'] ws.cell(row = k, column = 5).value = l.iloc[x]['parentname'] - ws.cell(row = k, column = 6).value = '=If(H'+str(k)+'=1,"",1)' - print(k, '------------------------------') + ws.cell(row = k, column = 6).value = '=If(OR(H'+str(k)+'=1, J'+str(k)+'=1, L'+str(k)+'=1,),"",1)' + # '=If(H'+str(k)+'=1,IF(J'+str(k)+',IF(L'+str(k)+',"",1)))' + for h in zap: ws.cell(row = k, column = h).border = Border(top=thins, bottom=thins, left=thins, right=thins) @@ -123,7 +126,8 @@ class roundExcel(): k=k+1 - ws.cell(row = k+1, column=6).value = "=SUM(F6:F"+str(k-1)+")" + ws.cell(row = k+1, column=6).value = len(self.df) + # "=SUM(F6:F"+str(k-1)+")" ws.cell(row = k+1, column=6).fill = PatternFill(fgColor="00FFFF00", fill_type = "solid") ws.cell(row = k+1, column=6).font = Font(name='Times New Roman', size=13, bold=True) @@ -151,15 +155,15 @@ class roundExcel(): ws.cell(row = k+1, column=12).fill = PatternFill(fgColor="8EA9DB", fill_type = "solid") ws.cell(row = k+1, column=12).font = Font(name='Times New Roman', size=10, bold=True) - ws.cell(row = k+3, column=5).value = "ИТОГО" - ws.cell(row = k+3, column=5).font = Font(name='Times New Roman', size=14, bold=True) + # ws.cell(row = k+3, column=5).value = "ИТОГО" + # ws.cell(row = k+3, column=5).font = Font(name='Times New Roman', size=14, bold=True) - ws.cell(row = k+3, column=7).value = "факт работающих" - ws.cell(row = k+3, column=7).font = Font(name='Times New Roman', size=14, bold=True) + # ws.cell(row = k+3, column=7).value = "факт работающих" + # ws.cell(row = k+3, column=7).font = Font(name='Times New Roman', size=14, bold=True) - ws.cell(row = k+3, column=8).value = f"=F{k+1}-H{k+1}-J{k+1}-L{k+1}" - ws.cell(row = k+3, column=8).font = Font(name='Times New Roman', size=14, bold=True) + # ws.cell(row = k+3, column=8).value = f"=F{k+1}-H{k+1}-J{k+1}-L{k+1}" + # ws.cell(row = k+3, column=8).font = Font(name='Times New Roman', size=14, bold=True) diff --git a/src/media/DailyRoundUp.xlsx b/src/media/DailyRoundUp.xlsx index a1f9209c8..9b6c06d7c 100644 Binary files a/src/media/DailyRoundUp.xlsx and b/src/media/DailyRoundUp.xlsx differ