修改增加完整工程json
This commit is contained in:
@@ -103,7 +103,7 @@ def parse_json_content(json_file_path: str) -> Tuple[Optional[str], Optional[str
|
||||
|
||||
# 定义阶段类型映射表
|
||||
budget_types = ["概预算", "定额", "估算", "概算"]
|
||||
list_types = ["清单", "结算", "竣工", "决算"]
|
||||
list_types = ["清单", "结算", "招标控制价", "招投标工程"]
|
||||
|
||||
# 从division字段获取软件名称和阶段类型
|
||||
if "division" in data:
|
||||
@@ -240,14 +240,10 @@ def process_json_file(
|
||||
|
||||
# 执行计算
|
||||
print(" 开始计算工程量取费表...")
|
||||
calculator.calculate_quantity_fee_tables(
|
||||
json_file_path=input_file, project_name=project, adjustment_type=adjustment_type
|
||||
)
|
||||
calculator.calculate_quantity_fee_tables(json_file_path=input_file, project_name=project)
|
||||
|
||||
print(" 开始计算人材机合价...")
|
||||
calculator.calculate_resource_fee_tables(
|
||||
json_file_path=input_file, project_name=project, adjustment_type=adjustment_type
|
||||
)
|
||||
calculator.calculate_resource_fee_tables(json_file_path=input_file, project_name=project)
|
||||
|
||||
print(f" 处理完成: {input_file}")
|
||||
print(f" 结果保存在: {output_dir}")
|
||||
|
||||
Reference in New Issue
Block a user