Commit 38e3546a by 周立明

北汽结果表 品牌汇总显示问题修复

1 parent c7455f50
......@@ -1901,7 +1901,7 @@ class BaicSpecialProcessor:
lbl = ws.cell(cur_month_row, 1).value
if lbl and '本月' in str(lbl):
ws.cell(cur_month_row, 1).value = re.sub(
r'本月\s*\S*', f'本月 {month_label}', str(lbl))
r'本月\s*\d+月', f'本月 {month_label}', str(lbl))
data_row = cur_month_row + 2
_set_cell(ws, data_row, 1, '北汽') # 项目
_set_cell(ws, data_row, 2, '极狐/越野') # 品牌(北汽极狐 + 北京越野 固定汇总显示)
......@@ -2000,7 +2000,7 @@ class BaicSpecialProcessor:
lbl = ws.cell(cur_prev_row, 1).value
if lbl and '上月' in str(lbl):
ws.cell(cur_prev_row, 1).value = re.sub(
r'上月\s*\S*', f'上月 {prev_month_label}', str(lbl))
r'上月\s*\d+月', f'上月 {prev_month_label}', str(lbl))
_p_row = cur_prev_row + 2
# 上月段:整列去掉 4 个环比列(表头+数据),本月段不变(用户 2026-11-04)
_p_hdr = cur_prev_row + 1
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!