高股息研究:精简待核验事项,突出材料冲突(台账 081)
一、页面表达 主卡片优先显示现金流与分红冲突,合并材料滞后提示。 技术表名改为中文,完整缺口仍在详情保留。 二、边界与验证 仅调整展示,不改变筛选、研究结论及交易规则。 既有研究与计划契约回归将在禁网候选镜像执行。 开发机缺少 pandas,不将环境缺失记为用例通过。
This commit is contained in:
parent
efbd52a282
commit
7111bde675
|
|
@ -245,21 +245,40 @@ def fact_summary(facts):
|
|||
|
||||
|
||||
def next_checks(row):
|
||||
"""卡片只列优先核验事项,完整材料缺口仍保留在展开详情。"""
|
||||
if row['status'] == 'identity_unknown':
|
||||
return '先确认最新证券名称与上市状态。'
|
||||
parts = []
|
||||
special = row.get('dividend_research') or {}
|
||||
research = special.get('research') or {}
|
||||
unknowns = research.get('unknowns', []) if special.get('status') == 'ok' else []
|
||||
if research.get('cashflow_conflicts'):
|
||||
parts.append('核对不同来源的现金流金额差异')
|
||||
if any('gp_dividend' in n and '冲突' in n for n in unknowns):
|
||||
parts.append('核实有冲突的分红记录')
|
||||
if row['status'] == 'missing_review':
|
||||
parts.append('补齐个股评析与反方观点')
|
||||
if any('材料期' in n or re.search(r'需补\d{4}Q', n) or '财务指标尚未覆盖' in n for n in row['needs']):
|
||||
if any('材料期' in n or re.search(r'需补\d{4}Q', n) or '财务指标尚未覆盖' in n
|
||||
or ('仅到' in n and '未覆盖' in n) for n in row['needs'] + unknowns):
|
||||
parts.append('补齐最新财报与现金流资料')
|
||||
special = row.get('dividend_research') or {}
|
||||
if special.get('status') == 'ok':
|
||||
parts.extend((special.get('research') or {}).get('unknowns', [])[:2])
|
||||
if not parts:
|
||||
parts.append('复核专项研究的支持与反方,尚未形成配置批准')
|
||||
else:
|
||||
for item in unknowns:
|
||||
if ('仅到' in item and '未覆盖' in item) or '材料期' in item:
|
||||
continue
|
||||
if ('现金' in item and '不一致' in item) or ('gp_dividend' in item and '冲突' in item):
|
||||
continue
|
||||
if item.startswith('文档') and '节选未覆盖' in item:
|
||||
item = '补查原文未覆盖的相关段落'
|
||||
for name, label in (('gp_cashflow', '现金流报表'), ('gp_fina_indicator', '财务指标'),
|
||||
('gp_dividend', '分红记录'), ('fin_reformulated', '重构报表')):
|
||||
item = item.replace(name, label)
|
||||
item = item.rstrip('。;')
|
||||
if item not in parts:
|
||||
parts.append(item)
|
||||
if special.get('status') != 'ok':
|
||||
parts.append('核实普通分红及其支付能力')
|
||||
return ';'.join(parts) + '。'
|
||||
if not parts:
|
||||
parts.append('复核专项研究的支持与反方')
|
||||
return ';'.join(parts[:3]) + '。'
|
||||
|
||||
|
||||
def report(result):
|
||||
|
|
|
|||
Loading…
Reference in New Issue