From cdc4cec2ff1d5c6f1235e1e94234ce8bfa806bf8 Mon Sep 17 00:00:00 2001 From: kkfluous Date: Thu, 2 Apr 2026 16:53:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=9A=E5=8A=A1=E5=91=98sheet?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E5=8A=A0=E9=83=A8=E9=97=A8=E5=89=8D=E7=BC=80?= =?UTF-8?q?=EF=BC=88=E5=A6=82"=E4=BA=8C=E9=83=A8-=E5=88=98=E5=BF=B5?= =?UTF-8?q?=E5=BF=B5"=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- excel_writer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/excel_writer.py b/excel_writer.py index fd57ef7..e84807c 100644 --- a/excel_writer.py +++ b/excel_writer.py @@ -186,7 +186,8 @@ def write_summary_month(wb, month, month_data, section_names): # ============================================================ def write_salesperson_sheet(wb, person, dept, settle_month, D, G, month_data, vehicle_payments): - ws = wb.create_sheet(f'业务员_{person}') + short_dept = dept.replace('业务','') if '业务' in dept else dept + ws = wb.create_sheet(f'{short_dept}-{person}') ws.cell(row=1,column=1,value=f'{person} | {dept} | {settle_month}月绩效对账单').font=Font(bold=True,size=14) plates = set()