feat: 新增 AdminCost 造价标准管理模块并调整手工导出未采纳清单口径

This commit is contained in:
lianjianwei2024
2026-10-29 15:54:38 +08:00
parent a90734963c
commit b79c0df557
25 changed files with 27360 additions and 58 deletions

View File

@@ -213,12 +213,11 @@ def test_real_roundtrip(server, fname, fmt):
so = sorted(bills_of(co, {"WorkElement"}))
se = sorted(bills_of(cs, {"WorkElement"}))
assert len(so) == len(se) and so == se, "单位 %s 清单集不一致" % uw_name
# ⑤-5 未采纳清单=克隆架子清值(231①,主人 2026-10-28 复确认):架子在、值全 0
# ⑤-5 未采纳清单(补记十五:分部/清单/定额/工料机全按自己的值——推翻克隆架子
# 清值):我方五值照出、无定额(骨架样例定额不进)
for el in cs.iter("WorkElement"):
norms = list(el.iter("Norm"))
assert norms, "清单 %s 没有定额架子" % el.get("Name")
assert all(_f(n.get("Quantity")) == 0 and _f(n.get("Price")) == 0
for n in norms), "清单 %s 定额架子没清零" % el.get("Name")
assert not norms, "清单 %s 不该带(骨架样例)定额" % el.get("Name")
# ⑤-6 措施平铺:清单集合=原件(分部层级不保留,决策 230 口径)
po = es.find("Preliminaries")
pe = eo.find("Preliminaries")