fix hil e-contract
Showing
1 changed file
with
24 additions
and
0 deletions
| ... | @@ -857,6 +857,30 @@ class Finder: | ... | @@ -857,6 +857,30 @@ class Finder: |
| 857 | total = get_table_info(ocr_results[key_total][0], ocr_results[key_sjrzje][0], ocr_results) | 857 | total = get_table_info(ocr_results[key_total][0], ocr_results[key_sjrzje][0], ocr_results) |
| 858 | lines.append(['总计', '', total]) | 858 | lines.append(['总计', '', total]) |
| 859 | 859 | ||
| 860 | # 所购 BMW悦然焕 | ||
| 861 | # 新服务 | ||
| 862 | |||
| 863 | # 所购 BMW5年10 | ||
| 864 | # 万公里长悦保养套餐 | ||
| 865 | |||
| 866 | # 所购 事故维修补偿 | ||
| 867 | # 方案 | ||
| 868 | |||
| 869 | # 所购 BMW5年10万公里 | ||
| 870 | # 长悦保养套餐 | ||
| 871 | |||
| 872 | filtered_lines = [] | ||
| 873 | for line in lines: | ||
| 874 | if line[0][:2] not in ['所购', '项目', '总计']: | ||
| 875 | continue | ||
| 876 | if 'BMW悦然' in line[0]: | ||
| 877 | line[0] = '所购 BMW悦然焕新服务' | ||
| 878 | if 'BMW5年10' in line[0]: | ||
| 879 | line[0] = '所购 BMW5年10万公里长悦保养套餐' | ||
| 880 | if '事故维修补' in line[0]: | ||
| 881 | line[0] = '所购 事故维修补偿方案' | ||
| 882 | filtered_lines.append(line) | ||
| 883 | |||
| 860 | table_add_product['words'] = lines | 884 | table_add_product['words'] = lines |
| 861 | table_add_product['page'] = add_product_page_num | 885 | table_add_product['page'] = add_product_page_num |
| 862 | table_add_product['position'] = None | 886 | table_add_product['position'] = None | ... | ... |
-
Please register or sign in to post a comment