diff --git a/company/routes.py b/company/routes.py index 2a42d3c..158e7a2 100644 --- a/company/routes.py +++ b/company/routes.py @@ -21,7 +21,7 @@ def company_page(**kwargs): company_index.table = request.json['table'] if company_index.table != '指标明细': info, result = company_index.get_company_data_obj() - elif company_index.table == '指标明细': + elif company_index.table == '综合评价分析': info, result = company_index.get_index_detail_obj() result.pop('企业名称') result.pop('综合信用等级') diff --git a/input/scripts.py b/input/scripts.py index 064f6cb..ac83368 100644 --- a/input/scripts.py +++ b/input/scripts.py @@ -227,9 +227,7 @@ def exec_general_rating_scripts(cid): update_data = { "评价结果": json.loads(res.text)['result'], "评价时间": time.strftime("%Y-%m-%d", time.localtime()), - "进行状态": "完成", - "报告fid": None, - "证书fid": None + "进行状态": "完成" } update_rating_records({"评价ID": rid}, update_data) return True @@ -239,3 +237,11 @@ def exec_general_rating_scripts(cid): # 生成报告 def gen_report(): pass + + # 生成证书 + def gen_certified(): + pass + + # 生成企业主页数据 + def company_index(): + pass