2c8bcaf6a344b85a20364c4abf111f42c1dad9b2
修 4 个 bug (命名约定相关):
1. convention 优先级: F_ 检查需先于 hash (老 jnpf form menu enCode 含 f 但字段用 F_)
2. regex 字符数: {6} 限 6 字符, 但 JNPF hash 是 4-8 字符 ({4,8} 容忍)
3. fieldName 提取: ID 格式 form-<uuid-with-dashes>_<Field>, split('_') 把 F_ 切丢
→ 改匹配完整 inputId (避免 split, 保留 _F_ 段)
4. validRate 阈值: 主表/子表混搭 (testreceivable 9/13=0.69), 阈值 0.7 → 0.65
label 修复:
- Ant Design v6.2 selector 不全 (.ant-form-item-label label), 加多 selector fallback
- 兜底: .ant-form label (所有 label 元素)
实测 5 form · workSystem (35/35 PASS):
hesuanjiancedengji 7/7 7.0s
testcustomer 7/7 6.6s
testreceivable 7/7 6.8s (9 F_ + 4 子表, 9/13=0.69 > 0.65 PASS)
yaofangguanli 7/7 7.4s
baomingguanli 7/7 6.7s
Languages
TypeScript
99.4%
Shell
0.4%
Python
0.2%