// 列出 v29 清单中商机模块客户相关页 + 全部 A3/A4 页名(供人工核对范围) import fs from 'node:fs'; const manifest = JSON.parse(fs.readFileSync('e:/code/crm-backend-matt/.scratch/lanhu-latest/axure-v29.json', 'utf8')); const pages = manifest.pages ?? {}; const names = Object.keys(pages); // 客户依赖关键词(商机侧触点) const KW = ['客户', '商机', '跟进', '方案卡']; const customerKw = ['客户']; const hit = names.filter(n => KW.some(k => n.includes(k))); const customerOnly = names.filter(n => customerKw.every(k => n.includes(k))); console.log('=== 全部页数:', names.length, '==='); console.log('\n=== 含「客户」的页(全部)==='); for (const n of customerOnly.sort()) console.log(' ', n); console.log('\n=== 商机/跟进/方案卡相关页(排除纯客户页)==='); for (const n of hit.filter(n => !customerOnly.includes(n)).sort()) console.log(' ', n);