feat(costreview): 落实决策292工料机引用完整性闸门并升级YHY v2完整会话包

This commit is contained in:
lianjianwei2024
2026-11-10 10:14:00 +08:00
parent 87f9afa611
commit 3029310f41
9 changed files with 482 additions and 6810 deletions

View File

@@ -4826,6 +4826,10 @@ def _export_meta(sc, sid, fmt=""):
return {"ok": False, "msg": "会话不存在"}
proj_name = srow["Name"] if "Name" in srow.keys() else srow["name"]
f = (fmt or "").lower()
# 2026-11-10 主人报「选导出yhy,另存为还是 .xml」:meta 缺 yhy 分支,原生另存为
# 预填了源后缀,YHY 数据包被写成 .xml,收方按 .yhy 识别就收不到。先判 yhy。
if f == "yhy":
return {"ok": True, "name": (proj_name or "工程") + "-审核版.yhy"}
if f == "html":
return {"ok": True, "name": (proj_name or "工程") + "-审核版.yhy"}
if f == "xlsx":
@@ -5356,7 +5360,8 @@ def _export_session(sc, sid, fmt="", progress=None):
recode_ident=recode_ident,
unit_mig=_unit_code_mig(sc, sid, uwmap, recode_ident),
progress=progress,
price_updates=price_updates)
price_updates=price_updates,
added_children=added_children)
except Exception as e:
return None, None, "导出失败:%s" % e
return raw, out_name, None