feat(xq0042): 推荐字段剔除出单宝/AIGC 4 列,版本升至 0.9.2

- 出单宝托管服务费/费率、平台费用抵扣、AIGC 服务费 台账不取,推荐字段(preset)不再勾选:后端 PRESET_EXCLUDE_KEYS 剔除,自定义勾选仍可选

- 前后端字段目录与界面文案同步,推荐列数 76 → 72;版本号与打包产物 0.9.2(已在测试通道发布,未转正)
This commit is contained in:
2026-11-06 15:40:54 +08:00
parent 7849b22058
commit f2b6f7ab31
10 changed files with 35 additions and 27 deletions
@@ -162,8 +162,13 @@ def _all():
LOCKED_KEYS = tuple(i["key"] for i in _all() if i["option_type"] == 1)
# 推荐字段(preset)里剔除的业务无关列:台账不取这几列,导出来只是冗余(出单宝/AIGC 费用)。
# 仅在推荐方案里排除,自定义勾选仍可手动选上。
PRESET_EXCLUDE_KEYS = ('ybq_fee', 'ybq_fee_rate', 'ybq_platform_fee',
'content_production_fee')
DEFAULT_KEYS = tuple(i["key"] for i in _all()
if i["option_type"] in (1, 2) or i["is_default"])
if (i["option_type"] in (1, 2) or i["is_default"])
and i["key"] not in PRESET_EXCLUDE_KEYS)
ALL_KEYS = tuple(i["key"] for i in _all())
NAME_BY_KEY = {i["key"]: i["name"] for i in _all()}
TYPE_BY_KEY = {i["key"]: i["option_type"] for i in _all()}