// 提取 a3-1-1-2-4 添加关联客户弹窗全部 select 选项 + 快速创建客户区结构 import fs from 'node:fs'; const OSS = 'https://lanhu-axure-file.oss-cn-beijing.aliyuncs.com/'; const manifest = JSON.parse(fs.readFileSync('e:/code/crm-backend-matt/.scratch/lanhu-latest/axure-v29.json', 'utf8')); const page = 'a3-1-1-2-4________.html'; const html = await (await fetch(OSS + manifest.pages[page].html.sign_md5, { headers: { 'User-Agent': 'Mozilla/5.0' } })).text(); fs.writeFileSync('e:/code/crm-backend-matt/.scratch/lanhu-latest/v29-customer-pages/a3-1-1-2-4_raw.html', html, 'utf8'); const decode = (s) => s .replace(/&#x([0-9A-Fa-f]+);/g, (_, h) => String.fromCodePoint(parseInt(h, 16))) .replace(/&#(\d+);/g, (_, d) => String.fromCodePoint(parseInt(d, 10))) .replace(/ /g, ' '); // 1) 全部 select 及其选项 const sels = html.match(/