88286839 by 周伟奇

fix hil e-contract

1 parent 02d77901
......@@ -857,6 +857,30 @@ class Finder:
total = get_table_info(ocr_results[key_total][0], ocr_results[key_sjrzje][0], ocr_results)
lines.append(['总计', '', total])
# 所购 BMW悦然焕
# 新服务
# 所购 BMW5年10
# 万公里长悦保养套餐
# 所购 事故维修补偿
# 方案
# 所购 BMW5年10万公里
# 长悦保养套餐
filtered_lines = []
for line in lines:
if line[0][:2] not in ['所购', '项目', '总计']:
continue
if 'BMW悦然' in line[0]:
line[0] = '所购 BMW悦然焕新服务'
if 'BMW5年10' in line[0]:
line[0] = '所购 BMW5年10万公里长悦保养套餐'
if '事故维修补' in line[0]:
line[0] = '所购 事故维修补偿方案'
filtered_lines.append(line)
table_add_product['words'] = lines
table_add_product['page'] = add_product_page_num
table_add_product['position'] = None
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!