diff --git a/utils/excel_converter.py b/utils/excel_converter.py index 158539c..755bd1a 100644 --- a/utils/excel_converter.py +++ b/utils/excel_converter.py @@ -159,7 +159,7 @@ class ExcelConverter: data_row = table_row + 1 while data_row < len(all_rows) and all_rows[data_row]: # 检查是否是页脚信息(制单人、打印人) - if all_rows[data_row][0] and ('制单人' in str(all_rows[data_row][0]) or '打印人' in str(all_rows[data_row][0])): + if all_rows[data_row+1][0] and '制单人' in str(all_rows[data_row+1][0]) : # 解析页脚信息 self._parse_header_row(all_rows[data_row], footer_info) # 检查下一行是否也是页脚信息