chore(config): 忽略文档解析生成的临时文件
- 添加 docs/parse-audit/ 到 .gitignore - 添加 docs/parsed-backup/ 到 .gitignore - 从版本控制中移除已跟踪的临时文件 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Showing
16 changed files
with
4 additions
and
1477 deletions
| 1 | -# 产品配置审核 - 计划书模版2.docx | ||
| 2 | - | ||
| 3 | -**解析时间**: 2026/2/15 11:18:47 | ||
| 4 | -**原始文件**: 计划书模版2.docx | ||
| 5 | -**数据来源**: docs/to-parse/计划书模版2.docx | ||
| 6 | - | ||
| 7 | ---- | ||
| 8 | - | ||
| 9 | -## 📋 产品基本信息 | ||
| 10 | - | ||
| 11 | -| 字段 | 提取值 | 需要确认 | | ||
| 12 | -|------|--------|---------| | ||
| 13 | -| 产品名称 | 宏摯傳承保障計劃 - 性別, 年齡, 出生年月日 | ✅ 请核对产品名称 | | ||
| 14 | -| 产品类型 | savings | ✅ 请确认产品类型 | | ||
| 15 | -| 币种 | USD | ✅ 请确认币种 | | ||
| 16 | -| form_sn | `savings-product-ef3dd50b` | ✅ 请确认 form_sn 唯一性 | | ||
| 17 | -| 缴费年期 | ["整付","3年","5年","10年","15年"] | ✅ 请确认缴费年期选项 | | ||
| 18 | -| 年龄范围 | 0-75岁 | ✅ 请确认年龄范围 | | ||
| 19 | -| 保险期间 | 终身 | ✅ 请确认保险期间 | | ||
| 20 | - | ||
| 21 | - | ||
| 22 | -### 💰 储蓄类产品特有字段 | ||
| 23 | - | ||
| 24 | -| 字段 | 提取值 | 需要确认 | | ||
| 25 | -|------|--------|---------| | ||
| 26 | -| 提取方式 | ["最高固定提取金额"] | ✅ 请确认提取方式 | | ||
| 27 | -| 提取期 | ["1年","3年","5年","10年"] | ✅ 请确认提取期选项 | | ||
| 28 | - | ||
| 29 | - | ||
| 30 | ---- | ||
| 31 | - | ||
| 32 | -## 🤖 智能字段提取报告 | ||
| 33 | - | ||
| 34 | -### 匹配统计 | ||
| 35 | - | ||
| 36 | -- ✅ 成功匹配: 4 字段 | ||
| 37 | -- ⚠️ 使用默认值: 3 字段 | ||
| 38 | -- ❌ 未匹配(需人工补充): 0 字段 | ||
| 39 | - | ||
| 40 | -### ✅ 已成功匹配的字段 | ||
| 41 | - | ||
| 42 | -- product_name | ||
| 43 | -- product_type | ||
| 44 | -- payment_periods | ||
| 45 | -- withdrawal_modes | ||
| 46 | - | ||
| 47 | - | ||
| 48 | -### ⚠️ 使用默认值的字段 | ||
| 49 | - | ||
| 50 | -- **currency**: 未找到字段 "currency",使用默认值: "USD" | ||
| 51 | -- **age_range**: 未找到字段 "age_range",使用默认值: {"min":0,"max":75} | ||
| 52 | -- **insurance_period**: 未找到字段 "insurance_period",使用默认值: "终身" | ||
| 53 | - | ||
| 54 | - | ||
| 55 | - | ||
| 56 | - | ||
| 57 | ---- | ||
| 58 | - | ||
| 59 | -## 🧾 配置预览 | ||
| 60 | - | ||
| 61 | -```javascript | ||
| 62 | -{ | ||
| 63 | - "product_name": "宏摯傳承保障計劃 - 性別, 年齡, 出生年月日", | ||
| 64 | - "product_type": "savings", | ||
| 65 | - "currency": "USD", | ||
| 66 | - "form_sn": "savings-product-ef3dd50b", | ||
| 67 | - "payment_periods": [ | ||
| 68 | - "整付", | ||
| 69 | - "3年", | ||
| 70 | - "5年", | ||
| 71 | - "10年", | ||
| 72 | - "15年" | ||
| 73 | - ], | ||
| 74 | - "age_range": { | ||
| 75 | - "min": 0, | ||
| 76 | - "max": 75 | ||
| 77 | - }, | ||
| 78 | - "insurance_period": "终身", | ||
| 79 | - "is_savings": true, | ||
| 80 | - "withdrawal_modes": [ | ||
| 81 | - "最高固定提取金额" | ||
| 82 | - ], | ||
| 83 | - "withdrawal_periods": [ | ||
| 84 | - "1年", | ||
| 85 | - "3年", | ||
| 86 | - "5年", | ||
| 87 | - "10年" | ||
| 88 | - ] | ||
| 89 | -} | ||
| 90 | -``` | ||
| 91 | - | ||
| 92 | ---- | ||
| 93 | - | ||
| 94 | -## 📝 表单字段 (form_schema) | ||
| 95 | - | ||
| 96 | -```javascript | ||
| 97 | -{ | ||
| 98 | - "base_fields": [], | ||
| 99 | - "withdrawal_fields": [], | ||
| 100 | - "reset_map": {} | ||
| 101 | -} | ||
| 102 | -``` | ||
| 103 | - | ||
| 104 | ---- | ||
| 105 | - | ||
| 106 | -## 🔄 提交字段映射 (submit_mapping) | ||
| 107 | - | ||
| 108 | -```javascript | ||
| 109 | -{} | ||
| 110 | -``` | ||
| 111 | - | ||
| 112 | ---- | ||
| 113 | - | ||
| 114 | -## 🧩 生成配置片段 | ||
| 115 | - | ||
| 116 | -```javascript | ||
| 117 | -/** | ||
| 118 | - * 宏摯傳承保障計劃 - 性別, 年齡, 出生年月日 | ||
| 119 | - * @added 2026-02-15T03:18:47.616Z | ||
| 120 | - * @source docs/to-parse/计划书模版2.docx | ||
| 121 | - */ | ||
| 122 | - 'savings-product-ef3dd50b': { | ||
| 123 | - name: '宏摯傳承保障計劃 - 性別, 年齡, 出生年月日', | ||
| 124 | - component: 'SavingsTemplate', | ||
| 125 | - category: 'savings', | ||
| 126 | - config: { | ||
| 127 | - currency: 'USD', | ||
| 128 | - payment_periods: ["整付","3年","5年","10年","15年"], | ||
| 129 | - age_range: { min: 0, max: 75 }, | ||
| 130 | - insurance_period: '终身', | ||
| 131 | - withdrawal_plan: { | ||
| 132 | - enabled: true, | ||
| 133 | - currencies: ['HKD', 'USD', 'CNY'], | ||
| 134 | - default_currency: 'USD', | ||
| 135 | - withdrawal_modes: ["最高固定提取金额"], | ||
| 136 | - withdrawal_periods: ["1年","3年","5年","10年"] | ||
| 137 | - }, | ||
| 138 | - form_schema: savingsFormSchema, | ||
| 139 | - submit_mapping: savingsSubmitMapping | ||
| 140 | - } | ||
| 141 | - } | ||
| 142 | -``` | ||
| 143 | - | ||
| 144 | ---- | ||
| 145 | - | ||
| 146 | -## ✅ 审核检查清单 | ||
| 147 | - | ||
| 148 | -### 基础信息 | ||
| 149 | -- [ ] 产品名称正确 | ||
| 150 | -- [ ] 产品类型正确(savings/critical-illness/life-insurance) | ||
| 151 | -- [ ] 币种正确(USD/CNY/HKD/EUR) | ||
| 152 | -- [ ] form_sn 唯一且符合命名规范 | ||
| 153 | - | ||
| 154 | -### 缴费与年龄 | ||
| 155 | -- [ ] 缴费年期选项完整且正确 | ||
| 156 | -- [ ] 年龄范围合理 | ||
| 157 | -- [ ] 保险期间正确 | ||
| 158 | - | ||
| 159 | -### 储蓄类特有(如适用) | ||
| 160 | -- [ ] 提取方式正确 | ||
| 161 | -- [ ] 提取期选项完整 | ||
| 162 | -- [ ] 表单字段定义完整 | ||
| 163 | -- [ ] 提交字段映射正确 | ||
| 164 | - | ||
| 165 | ---- | ||
| 166 | - | ||
| 167 | -## 📋 审核后操作 | ||
| 168 | - | ||
| 169 | -### 确认无误 | ||
| 170 | -```bash | ||
| 171 | -# 1. 移动到 approved 目录 | ||
| 172 | -mv docs/parse-audit/pending/计划书模版2/2026-02-15-计划书模版2-宏摯傳承保障計劃-性別-年齡-出生年月日.md \ | ||
| 173 | - docs/parse-audit/approved/ | ||
| 174 | - | ||
| 175 | -# 2. 合并到正式配置 | ||
| 176 | -# 手动复制或使用工具合并到 src/config/plan-templates.js | ||
| 177 | - | ||
| 178 | -# 3. 删除待审核文件(可选) | ||
| 179 | -rm docs/parse-audit/pending/计划书模版2/2026-02-15-计划书模版2-宏摯傳承保障計劃-性別-年齡-出生年月日.md | ||
| 180 | -``` | ||
| 181 | - | ||
| 182 | -### 需要修改 | ||
| 183 | -1. 编辑本文件修正内容 | ||
| 184 | -2. 重新提交审核 | ||
| 185 | - | ||
| 186 | -### 放弃本次解析 | ||
| 187 | -```bash | ||
| 188 | -rm docs/parse-audit/pending/计划书模版2/2026-02-15-计划书模版2-宏摯傳承保障計劃-性別-年齡-出生年月日.md | ||
| 189 | -``` | ||
| 190 | - | ||
| 191 | ---- | ||
| 192 | - | ||
| 193 | -## 审核状态 | ||
| 194 | - | ||
| 195 | -- [ ] 待审核 | ||
| 196 | -- [ ] 已通过 | ||
| 197 | -- [ ] 已拒绝 | ||
| 198 | - | ||
| 199 | -## 审核意见 | ||
| 200 | - | ||
| 201 | -```text | ||
| 202 | -``` |
| 1 | -# 产品配置审核 - 计划书模版2.docx | ||
| 2 | - | ||
| 3 | -**解析时间**: 2026/2/15 11:18:47 | ||
| 4 | -**原始文件**: 计划书模版2.docx | ||
| 5 | -**数据来源**: docs/to-parse/计划书模版2.docx | ||
| 6 | - | ||
| 7 | ---- | ||
| 8 | - | ||
| 9 | -## 📋 产品基本信息 | ||
| 10 | - | ||
| 11 | -| 字段 | 提取值 | 需要确认 | | ||
| 12 | -|------|--------|---------| | ||
| 13 | -| 产品名称 | 宏摯家傳承保險計劃- 性別, 年齡, 出生年月日 | ✅ 请核对产品名称 | | ||
| 14 | -| 产品类型 | savings | ✅ 请确认产品类型 | | ||
| 15 | -| 币种 | USD | ✅ 请确认币种 | | ||
| 16 | -| form_sn | `savings-product-aaaa60f8` | ✅ 请确认 form_sn 唯一性 | | ||
| 17 | -| 缴费年期 | ["整付","3年","5年"] | ✅ 请确认缴费年期选项 | | ||
| 18 | -| 年龄范围 | 0-75岁 | ✅ 请确认年龄范围 | | ||
| 19 | -| 保险期间 | 终身 | ✅ 请确认保险期间 | | ||
| 20 | - | ||
| 21 | - | ||
| 22 | -### 💰 储蓄类产品特有字段 | ||
| 23 | - | ||
| 24 | -| 字段 | 提取值 | 需要确认 | | ||
| 25 | -|------|--------|---------| | ||
| 26 | -| 提取方式 | ["年龄指定金额","最高固定金额"] | ✅ 请确认提取方式 | | ||
| 27 | -| 提取期 | ["1年","3年","5年","10年"] | ✅ 请确认提取期选项 | | ||
| 28 | - | ||
| 29 | - | ||
| 30 | ---- | ||
| 31 | - | ||
| 32 | -## 🤖 智能字段提取报告 | ||
| 33 | - | ||
| 34 | -### 匹配统计 | ||
| 35 | - | ||
| 36 | -- ✅ 成功匹配: 2 字段 | ||
| 37 | -- ⚠️ 使用默认值: 4 字段 | ||
| 38 | -- ❌ 未匹配(需人工补充): 0 字段 | ||
| 39 | - | ||
| 40 | -### ✅ 已成功匹配的字段 | ||
| 41 | - | ||
| 42 | -- product_name | ||
| 43 | -- payment_periods | ||
| 44 | - | ||
| 45 | - | ||
| 46 | -### ⚠️ 使用默认值的字段 | ||
| 47 | - | ||
| 48 | -- **product_type**: 未找到字段 "product_type",使用默认值: "savings" | ||
| 49 | -- **currency**: 未找到字段 "currency",使用默认值: "USD" | ||
| 50 | -- **age_range**: 未找到字段 "age_range",使用默认值: {"min":0,"max":75} | ||
| 51 | -- **insurance_period**: 未找到字段 "insurance_period",使用默认值: "终身" | ||
| 52 | - | ||
| 53 | - | ||
| 54 | - | ||
| 55 | - | ||
| 56 | ---- | ||
| 57 | - | ||
| 58 | -## 🧾 配置预览 | ||
| 59 | - | ||
| 60 | -```javascript | ||
| 61 | -{ | ||
| 62 | - "product_name": "宏摯家傳承保險計劃- 性別, 年齡, 出生年月日", | ||
| 63 | - "product_type": "savings", | ||
| 64 | - "currency": "USD", | ||
| 65 | - "form_sn": "savings-product-aaaa60f8", | ||
| 66 | - "payment_periods": [ | ||
| 67 | - "整付", | ||
| 68 | - "3年", | ||
| 69 | - "5年" | ||
| 70 | - ], | ||
| 71 | - "age_range": { | ||
| 72 | - "min": 0, | ||
| 73 | - "max": 75 | ||
| 74 | - }, | ||
| 75 | - "insurance_period": "终身", | ||
| 76 | - "is_savings": true, | ||
| 77 | - "withdrawal_modes": [ | ||
| 78 | - "年龄指定金额", | ||
| 79 | - "最高固定金额" | ||
| 80 | - ], | ||
| 81 | - "withdrawal_periods": [ | ||
| 82 | - "1年", | ||
| 83 | - "3年", | ||
| 84 | - "5年", | ||
| 85 | - "10年" | ||
| 86 | - ] | ||
| 87 | -} | ||
| 88 | -``` | ||
| 89 | - | ||
| 90 | ---- | ||
| 91 | - | ||
| 92 | -## 📝 表单字段 (form_schema) | ||
| 93 | - | ||
| 94 | -```javascript | ||
| 95 | -{ | ||
| 96 | - "base_fields": [], | ||
| 97 | - "withdrawal_fields": [], | ||
| 98 | - "reset_map": {} | ||
| 99 | -} | ||
| 100 | -``` | ||
| 101 | - | ||
| 102 | ---- | ||
| 103 | - | ||
| 104 | -## 🔄 提交字段映射 (submit_mapping) | ||
| 105 | - | ||
| 106 | -```javascript | ||
| 107 | -{} | ||
| 108 | -``` | ||
| 109 | - | ||
| 110 | ---- | ||
| 111 | - | ||
| 112 | -## 🧩 生成配置片段 | ||
| 113 | - | ||
| 114 | -```javascript | ||
| 115 | -/** | ||
| 116 | - * 宏摯家傳承保險計劃- 性別, 年齡, 出生年月日 | ||
| 117 | - * @added 2026-02-15T03:18:47.644Z | ||
| 118 | - * @source docs/to-parse/计划书模版2.docx | ||
| 119 | - */ | ||
| 120 | - 'savings-product-aaaa60f8': { | ||
| 121 | - name: '宏摯家傳承保險計劃- 性別, 年齡, 出生年月日', | ||
| 122 | - component: 'SavingsTemplate', | ||
| 123 | - category: 'savings', | ||
| 124 | - config: { | ||
| 125 | - currency: 'USD', | ||
| 126 | - payment_periods: ["整付","3年","5年"], | ||
| 127 | - age_range: { min: 0, max: 75 }, | ||
| 128 | - insurance_period: '终身', | ||
| 129 | - withdrawal_plan: { | ||
| 130 | - enabled: true, | ||
| 131 | - currencies: ['HKD', 'USD', 'CNY'], | ||
| 132 | - default_currency: 'USD', | ||
| 133 | - withdrawal_modes: ["年龄指定金额","最高固定金额"], | ||
| 134 | - withdrawal_periods: ["1年","3年","5年","10年"] | ||
| 135 | - }, | ||
| 136 | - form_schema: savingsFormSchema, | ||
| 137 | - submit_mapping: savingsSubmitMapping | ||
| 138 | - } | ||
| 139 | - } | ||
| 140 | -``` | ||
| 141 | - | ||
| 142 | ---- | ||
| 143 | - | ||
| 144 | -## ✅ 审核检查清单 | ||
| 145 | - | ||
| 146 | -### 基础信息 | ||
| 147 | -- [ ] 产品名称正确 | ||
| 148 | -- [ ] 产品类型正确(savings/critical-illness/life-insurance) | ||
| 149 | -- [ ] 币种正确(USD/CNY/HKD/EUR) | ||
| 150 | -- [ ] form_sn 唯一且符合命名规范 | ||
| 151 | - | ||
| 152 | -### 缴费与年龄 | ||
| 153 | -- [ ] 缴费年期选项完整且正确 | ||
| 154 | -- [ ] 年龄范围合理 | ||
| 155 | -- [ ] 保险期间正确 | ||
| 156 | - | ||
| 157 | -### 储蓄类特有(如适用) | ||
| 158 | -- [ ] 提取方式正确 | ||
| 159 | -- [ ] 提取期选项完整 | ||
| 160 | -- [ ] 表单字段定义完整 | ||
| 161 | -- [ ] 提交字段映射正确 | ||
| 162 | - | ||
| 163 | ---- | ||
| 164 | - | ||
| 165 | -## 📋 审核后操作 | ||
| 166 | - | ||
| 167 | -### 确认无误 | ||
| 168 | -```bash | ||
| 169 | -# 1. 移动到 approved 目录 | ||
| 170 | -mv docs/parse-audit/pending/计划书模版2/2026-02-15-计划书模版2-宏摯家傳承保險計劃-性別-年齡-出生年月日.md \ | ||
| 171 | - docs/parse-audit/approved/ | ||
| 172 | - | ||
| 173 | -# 2. 合并到正式配置 | ||
| 174 | -# 手动复制或使用工具合并到 src/config/plan-templates.js | ||
| 175 | - | ||
| 176 | -# 3. 删除待审核文件(可选) | ||
| 177 | -rm docs/parse-audit/pending/计划书模版2/2026-02-15-计划书模版2-宏摯家傳承保險計劃-性別-年齡-出生年月日.md | ||
| 178 | -``` | ||
| 179 | - | ||
| 180 | -### 需要修改 | ||
| 181 | -1. 编辑本文件修正内容 | ||
| 182 | -2. 重新提交审核 | ||
| 183 | - | ||
| 184 | -### 放弃本次解析 | ||
| 185 | -```bash | ||
| 186 | -rm docs/parse-audit/pending/计划书模版2/2026-02-15-计划书模版2-宏摯家傳承保險計劃-性別-年齡-出生年月日.md | ||
| 187 | -``` | ||
| 188 | - | ||
| 189 | ---- | ||
| 190 | - | ||
| 191 | -## 审核状态 | ||
| 192 | - | ||
| 193 | -- [ ] 待审核 | ||
| 194 | -- [ ] 已通过 | ||
| 195 | -- [ ] 已拒绝 | ||
| 196 | - | ||
| 197 | -## 审核意见 | ||
| 198 | - | ||
| 199 | -```text | ||
| 200 | -``` |
| 1 | -# 产品配置审核 - 计划书模版2.docx | ||
| 2 | - | ||
| 3 | -**解析时间**: 2026/2/15 11:18:47 | ||
| 4 | -**原始文件**: 计划书模版2.docx | ||
| 5 | -**数据来源**: docs/to-parse/计划书模版2.docx | ||
| 6 | - | ||
| 7 | ---- | ||
| 8 | - | ||
| 9 | -## 📋 产品基本信息 | ||
| 10 | - | ||
| 11 | -| 字段 | 提取值 | 需要确认 | | ||
| 12 | -|------|--------|---------| | ||
| 13 | -| 产品名称 | 宏浚傳承保障計劃 | ✅ 请核对产品名称 | | ||
| 14 | -| 产品类型 | savings | ✅ 请确认产品类型 | | ||
| 15 | -| 币种 | USD | ✅ 请确认币种 | | ||
| 16 | -| form_sn | `savings-product-d1581522` | ✅ 请确认 form_sn 唯一性 | | ||
| 17 | -| 缴费年期 | ["整付","2年","5年"] | ✅ 请确认缴费年期选项 | | ||
| 18 | -| 年龄范围 | 0-75岁 | ✅ 请确认年龄范围 | | ||
| 19 | -| 保险期间 | 终身 | ✅ 请确认保险期间 | | ||
| 20 | - | ||
| 21 | - | ||
| 22 | -### 💰 储蓄类产品特有字段 | ||
| 23 | - | ||
| 24 | -| 字段 | 提取值 | 需要确认 | | ||
| 25 | -|------|--------|---------| | ||
| 26 | -| 提取方式 | ["年龄指定金额","最高固定金额"] | ✅ 请确认提取方式 | | ||
| 27 | -| 提取期 | ["1年","3年","5年","10年"] | ✅ 请确认提取期选项 | | ||
| 28 | - | ||
| 29 | - | ||
| 30 | ---- | ||
| 31 | - | ||
| 32 | -## 🤖 智能字段提取报告 | ||
| 33 | - | ||
| 34 | -### 匹配统计 | ||
| 35 | - | ||
| 36 | -- ✅ 成功匹配: 2 字段 | ||
| 37 | -- ⚠️ 使用默认值: 4 字段 | ||
| 38 | -- ❌ 未匹配(需人工补充): 0 字段 | ||
| 39 | - | ||
| 40 | -### ✅ 已成功匹配的字段 | ||
| 41 | - | ||
| 42 | -- product_name | ||
| 43 | -- payment_periods | ||
| 44 | - | ||
| 45 | - | ||
| 46 | -### ⚠️ 使用默认值的字段 | ||
| 47 | - | ||
| 48 | -- **product_type**: 未找到字段 "product_type",使用默认值: "savings" | ||
| 49 | -- **currency**: 未找到字段 "currency",使用默认值: "USD" | ||
| 50 | -- **age_range**: 未找到字段 "age_range",使用默认值: {"min":0,"max":75} | ||
| 51 | -- **insurance_period**: 未找到字段 "insurance_period",使用默认值: "终身" | ||
| 52 | - | ||
| 53 | - | ||
| 54 | - | ||
| 55 | - | ||
| 56 | ---- | ||
| 57 | - | ||
| 58 | -## 🧾 配置预览 | ||
| 59 | - | ||
| 60 | -```javascript | ||
| 61 | -{ | ||
| 62 | - "product_name": "宏浚傳承保障計劃", | ||
| 63 | - "product_type": "savings", | ||
| 64 | - "currency": "USD", | ||
| 65 | - "form_sn": "savings-product-d1581522", | ||
| 66 | - "payment_periods": [ | ||
| 67 | - "整付", | ||
| 68 | - "2年", | ||
| 69 | - "5年" | ||
| 70 | - ], | ||
| 71 | - "age_range": { | ||
| 72 | - "min": 0, | ||
| 73 | - "max": 75 | ||
| 74 | - }, | ||
| 75 | - "insurance_period": "终身", | ||
| 76 | - "is_savings": true, | ||
| 77 | - "withdrawal_modes": [ | ||
| 78 | - "年龄指定金额", | ||
| 79 | - "最高固定金额" | ||
| 80 | - ], | ||
| 81 | - "withdrawal_periods": [ | ||
| 82 | - "1年", | ||
| 83 | - "3年", | ||
| 84 | - "5年", | ||
| 85 | - "10年" | ||
| 86 | - ] | ||
| 87 | -} | ||
| 88 | -``` | ||
| 89 | - | ||
| 90 | ---- | ||
| 91 | - | ||
| 92 | -## 📝 表单字段 (form_schema) | ||
| 93 | - | ||
| 94 | -```javascript | ||
| 95 | -{ | ||
| 96 | - "base_fields": [], | ||
| 97 | - "withdrawal_fields": [], | ||
| 98 | - "reset_map": {} | ||
| 99 | -} | ||
| 100 | -``` | ||
| 101 | - | ||
| 102 | ---- | ||
| 103 | - | ||
| 104 | -## 🔄 提交字段映射 (submit_mapping) | ||
| 105 | - | ||
| 106 | -```javascript | ||
| 107 | -{} | ||
| 108 | -``` | ||
| 109 | - | ||
| 110 | ---- | ||
| 111 | - | ||
| 112 | -## 🧩 生成配置片段 | ||
| 113 | - | ||
| 114 | -```javascript | ||
| 115 | -/** | ||
| 116 | - * 宏浚傳承保障計劃 | ||
| 117 | - * @added 2026-02-15T03:18:47.644Z | ||
| 118 | - * @source docs/to-parse/计划书模版2.docx | ||
| 119 | - */ | ||
| 120 | - 'savings-product-d1581522': { | ||
| 121 | - name: '宏浚傳承保障計劃', | ||
| 122 | - component: 'SavingsTemplate', | ||
| 123 | - category: 'savings', | ||
| 124 | - config: { | ||
| 125 | - currency: 'USD', | ||
| 126 | - payment_periods: ["整付","2年","5年"], | ||
| 127 | - age_range: { min: 0, max: 75 }, | ||
| 128 | - insurance_period: '终身', | ||
| 129 | - withdrawal_plan: { | ||
| 130 | - enabled: true, | ||
| 131 | - currencies: ['HKD', 'USD', 'CNY'], | ||
| 132 | - default_currency: 'USD', | ||
| 133 | - withdrawal_modes: ["年龄指定金额","最高固定金额"], | ||
| 134 | - withdrawal_periods: ["1年","3年","5年","10年"] | ||
| 135 | - }, | ||
| 136 | - form_schema: savingsFormSchema, | ||
| 137 | - submit_mapping: savingsSubmitMapping | ||
| 138 | - } | ||
| 139 | - } | ||
| 140 | -``` | ||
| 141 | - | ||
| 142 | ---- | ||
| 143 | - | ||
| 144 | -## ✅ 审核检查清单 | ||
| 145 | - | ||
| 146 | -### 基础信息 | ||
| 147 | -- [ ] 产品名称正确 | ||
| 148 | -- [ ] 产品类型正确(savings/critical-illness/life-insurance) | ||
| 149 | -- [ ] 币种正确(USD/CNY/HKD/EUR) | ||
| 150 | -- [ ] form_sn 唯一且符合命名规范 | ||
| 151 | - | ||
| 152 | -### 缴费与年龄 | ||
| 153 | -- [ ] 缴费年期选项完整且正确 | ||
| 154 | -- [ ] 年龄范围合理 | ||
| 155 | -- [ ] 保险期间正确 | ||
| 156 | - | ||
| 157 | -### 储蓄类特有(如适用) | ||
| 158 | -- [ ] 提取方式正确 | ||
| 159 | -- [ ] 提取期选项完整 | ||
| 160 | -- [ ] 表单字段定义完整 | ||
| 161 | -- [ ] 提交字段映射正确 | ||
| 162 | - | ||
| 163 | ---- | ||
| 164 | - | ||
| 165 | -## 📋 审核后操作 | ||
| 166 | - | ||
| 167 | -### 确认无误 | ||
| 168 | -```bash | ||
| 169 | -# 1. 移动到 approved 目录 | ||
| 170 | -mv docs/parse-audit/pending/计划书模版2/2026-02-15-计划书模版2-宏浚傳承保障計劃.md \ | ||
| 171 | - docs/parse-audit/approved/ | ||
| 172 | - | ||
| 173 | -# 2. 合并到正式配置 | ||
| 174 | -# 手动复制或使用工具合并到 src/config/plan-templates.js | ||
| 175 | - | ||
| 176 | -# 3. 删除待审核文件(可选) | ||
| 177 | -rm docs/parse-audit/pending/计划书模版2/2026-02-15-计划书模版2-宏浚傳承保障計劃.md | ||
| 178 | -``` | ||
| 179 | - | ||
| 180 | -### 需要修改 | ||
| 181 | -1. 编辑本文件修正内容 | ||
| 182 | -2. 重新提交审核 | ||
| 183 | - | ||
| 184 | -### 放弃本次解析 | ||
| 185 | -```bash | ||
| 186 | -rm docs/parse-audit/pending/计划书模版2/2026-02-15-计划书模版2-宏浚傳承保障計劃.md | ||
| 187 | -``` | ||
| 188 | - | ||
| 189 | ---- | ||
| 190 | - | ||
| 191 | -## 审核状态 | ||
| 192 | - | ||
| 193 | -- [ ] 待审核 | ||
| 194 | -- [ ] 已通过 | ||
| 195 | -- [ ] 已拒绝 | ||
| 196 | - | ||
| 197 | -## 审核意见 | ||
| 198 | - | ||
| 199 | -```text | ||
| 200 | -``` |
| 1 | -# 产品配置审核 - 计划书模版2.docx | ||
| 2 | - | ||
| 3 | -**解析时间**: 2026/2/15 11:18:47 | ||
| 4 | -**原始文件**: 计划书模版2.docx | ||
| 5 | -**数据来源**: docs/to-parse/计划书模版2.docx | ||
| 6 | - | ||
| 7 | ---- | ||
| 8 | - | ||
| 9 | -## 📋 产品基本信息 | ||
| 10 | - | ||
| 11 | -| 字段 | 提取值 | 需要确认 | | ||
| 12 | -|------|--------|---------| | ||
| 13 | -| 产品名称 | 赤霞珠終身壽險計劃2基本人壽保障選項 | ✅ 请核对产品名称 | | ||
| 14 | -| 产品类型 | savings | ✅ 请确认产品类型 | | ||
| 15 | -| 币种 | USD | ✅ 请确认币种 | | ||
| 16 | -| form_sn | `savings-2-031c1237` | ✅ 请确认 form_sn 唯一性 | | ||
| 17 | -| 缴费年期 | ["5年","8年","12年","15年"] | ✅ 请确认缴费年期选项 | | ||
| 18 | -| 年龄范围 | 0-75岁 | ✅ 请确认年龄范围 | | ||
| 19 | -| 保险期间 | 终身 | ✅ 请确认保险期间 | | ||
| 20 | - | ||
| 21 | - | ||
| 22 | -### 💰 储蓄类产品特有字段 | ||
| 23 | - | ||
| 24 | -| 字段 | 提取值 | 需要确认 | | ||
| 25 | -|------|--------|---------| | ||
| 26 | -| 提取方式 | ["年龄指定金额","最高固定金额"] | ✅ 请确认提取方式 | | ||
| 27 | -| 提取期 | ["1年","3年","5年","10年"] | ✅ 请确认提取期选项 | | ||
| 28 | - | ||
| 29 | - | ||
| 30 | ---- | ||
| 31 | - | ||
| 32 | -## 🤖 智能字段提取报告 | ||
| 33 | - | ||
| 34 | -### 匹配统计 | ||
| 35 | - | ||
| 36 | -- ✅ 成功匹配: 2 字段 | ||
| 37 | -- ⚠️ 使用默认值: 4 字段 | ||
| 38 | -- ❌ 未匹配(需人工补充): 0 字段 | ||
| 39 | - | ||
| 40 | -### ✅ 已成功匹配的字段 | ||
| 41 | - | ||
| 42 | -- product_name | ||
| 43 | -- payment_periods | ||
| 44 | - | ||
| 45 | - | ||
| 46 | -### ⚠️ 使用默认值的字段 | ||
| 47 | - | ||
| 48 | -- **product_type**: 未找到字段 "product_type",使用默认值: "savings" | ||
| 49 | -- **currency**: 未找到字段 "currency",使用默认值: "USD" | ||
| 50 | -- **age_range**: 未找到字段 "age_range",使用默认值: {"min":0,"max":75} | ||
| 51 | -- **insurance_period**: 未找到字段 "insurance_period",使用默认值: "终身" | ||
| 52 | - | ||
| 53 | - | ||
| 54 | - | ||
| 55 | - | ||
| 56 | ---- | ||
| 57 | - | ||
| 58 | -## 🧾 配置预览 | ||
| 59 | - | ||
| 60 | -```javascript | ||
| 61 | -{ | ||
| 62 | - "product_name": "赤霞珠終身壽險計劃2基本人壽保障選項", | ||
| 63 | - "product_type": "savings", | ||
| 64 | - "currency": "USD", | ||
| 65 | - "form_sn": "savings-2-031c1237", | ||
| 66 | - "payment_periods": [ | ||
| 67 | - "5年", | ||
| 68 | - "8年", | ||
| 69 | - "12年", | ||
| 70 | - "15年" | ||
| 71 | - ], | ||
| 72 | - "age_range": { | ||
| 73 | - "min": 0, | ||
| 74 | - "max": 75 | ||
| 75 | - }, | ||
| 76 | - "insurance_period": "终身", | ||
| 77 | - "is_savings": true, | ||
| 78 | - "withdrawal_modes": [ | ||
| 79 | - "年龄指定金额", | ||
| 80 | - "最高固定金额" | ||
| 81 | - ], | ||
| 82 | - "withdrawal_periods": [ | ||
| 83 | - "1年", | ||
| 84 | - "3年", | ||
| 85 | - "5年", | ||
| 86 | - "10年" | ||
| 87 | - ] | ||
| 88 | -} | ||
| 89 | -``` | ||
| 90 | - | ||
| 91 | ---- | ||
| 92 | - | ||
| 93 | -## 📝 表单字段 (form_schema) | ||
| 94 | - | ||
| 95 | -```javascript | ||
| 96 | -{ | ||
| 97 | - "base_fields": [], | ||
| 98 | - "withdrawal_fields": [], | ||
| 99 | - "reset_map": {} | ||
| 100 | -} | ||
| 101 | -``` | ||
| 102 | - | ||
| 103 | ---- | ||
| 104 | - | ||
| 105 | -## 🔄 提交字段映射 (submit_mapping) | ||
| 106 | - | ||
| 107 | -```javascript | ||
| 108 | -{} | ||
| 109 | -``` | ||
| 110 | - | ||
| 111 | ---- | ||
| 112 | - | ||
| 113 | -## 🧩 生成配置片段 | ||
| 114 | - | ||
| 115 | -```javascript | ||
| 116 | -/** | ||
| 117 | - * 赤霞珠終身壽險計劃2基本人壽保障選項 | ||
| 118 | - * @added 2026-02-15T03:18:47.645Z | ||
| 119 | - * @source docs/to-parse/计划书模版2.docx | ||
| 120 | - */ | ||
| 121 | - 'savings-2-031c1237': { | ||
| 122 | - name: '赤霞珠終身壽險計劃2基本人壽保障選項', | ||
| 123 | - component: 'SavingsTemplate', | ||
| 124 | - category: 'savings', | ||
| 125 | - config: { | ||
| 126 | - currency: 'USD', | ||
| 127 | - payment_periods: ["5年","8年","12年","15年"], | ||
| 128 | - age_range: { min: 0, max: 75 }, | ||
| 129 | - insurance_period: '终身', | ||
| 130 | - withdrawal_plan: { | ||
| 131 | - enabled: true, | ||
| 132 | - currencies: ['HKD', 'USD', 'CNY'], | ||
| 133 | - default_currency: 'USD', | ||
| 134 | - withdrawal_modes: ["年龄指定金额","最高固定金额"], | ||
| 135 | - withdrawal_periods: ["1年","3年","5年","10年"] | ||
| 136 | - }, | ||
| 137 | - form_schema: savingsFormSchema, | ||
| 138 | - submit_mapping: savingsSubmitMapping | ||
| 139 | - } | ||
| 140 | - } | ||
| 141 | -``` | ||
| 142 | - | ||
| 143 | ---- | ||
| 144 | - | ||
| 145 | -## ✅ 审核检查清单 | ||
| 146 | - | ||
| 147 | -### 基础信息 | ||
| 148 | -- [ ] 产品名称正确 | ||
| 149 | -- [ ] 产品类型正确(savings/critical-illness/life-insurance) | ||
| 150 | -- [ ] 币种正确(USD/CNY/HKD/EUR) | ||
| 151 | -- [ ] form_sn 唯一且符合命名规范 | ||
| 152 | - | ||
| 153 | -### 缴费与年龄 | ||
| 154 | -- [ ] 缴费年期选项完整且正确 | ||
| 155 | -- [ ] 年龄范围合理 | ||
| 156 | -- [ ] 保险期间正确 | ||
| 157 | - | ||
| 158 | -### 储蓄类特有(如适用) | ||
| 159 | -- [ ] 提取方式正确 | ||
| 160 | -- [ ] 提取期选项完整 | ||
| 161 | -- [ ] 表单字段定义完整 | ||
| 162 | -- [ ] 提交字段映射正确 | ||
| 163 | - | ||
| 164 | ---- | ||
| 165 | - | ||
| 166 | -## 📋 审核后操作 | ||
| 167 | - | ||
| 168 | -### 确认无误 | ||
| 169 | -```bash | ||
| 170 | -# 1. 移动到 approved 目录 | ||
| 171 | -mv docs/parse-audit/pending/计划书模版2/2026-02-15-计划书模版2-赤霞珠終身壽險計劃2基本人壽保障選項.md \ | ||
| 172 | - docs/parse-audit/approved/ | ||
| 173 | - | ||
| 174 | -# 2. 合并到正式配置 | ||
| 175 | -# 手动复制或使用工具合并到 src/config/plan-templates.js | ||
| 176 | - | ||
| 177 | -# 3. 删除待审核文件(可选) | ||
| 178 | -rm docs/parse-audit/pending/计划书模版2/2026-02-15-计划书模版2-赤霞珠終身壽險計劃2基本人壽保障選項.md | ||
| 179 | -``` | ||
| 180 | - | ||
| 181 | -### 需要修改 | ||
| 182 | -1. 编辑本文件修正内容 | ||
| 183 | -2. 重新提交审核 | ||
| 184 | - | ||
| 185 | -### 放弃本次解析 | ||
| 186 | -```bash | ||
| 187 | -rm docs/parse-audit/pending/计划书模版2/2026-02-15-计划书模版2-赤霞珠終身壽險計劃2基本人壽保障選項.md | ||
| 188 | -``` | ||
| 189 | - | ||
| 190 | ---- | ||
| 191 | - | ||
| 192 | -## 审核状态 | ||
| 193 | - | ||
| 194 | -- [ ] 待审核 | ||
| 195 | -- [ ] 已通过 | ||
| 196 | -- [ ] 已拒绝 | ||
| 197 | - | ||
| 198 | -## 审核意见 | ||
| 199 | - | ||
| 200 | -```text | ||
| 201 | -``` |
docs/parsed-backup/backup-log.jsonl
deleted
100644 → 0
| 1 | -{"action":"update","backup_file":"/Users/huyirui/program/itomix/git/manulife-weapp/docs/parsed-backup/plan-templates.backup.1771074633927.js","target_file":"/Users/huyirui/program/itomix/git/manulife-weapp/src/config/plan-templates.js","form_sn_list":["savings-product-30b41aae"],"at":"2026-02-14T13:10:33.928Z"} | ||
| 2 | -{"action":"update","backup_file":"/Users/huyirui/program/itomix/git/manulife-weapp/docs/parsed-backup/plan-templates.backup.1771077530778.js","target_file":"/Users/huyirui/program/itomix/git/manulife-weapp/src/config/plan-templates.js","form_sn_list":["savings-2-148b3acd"],"at":"2026-02-14T13:58:50.779Z"} | ||
| 3 | -{"action":"update","backup_file":"/Users/huyirui/program/itomix/git/manulife-weapp/docs/parsed-backup/plan-templates.backup.1771077569110.js","target_file":"/Users/huyirui/program/itomix/git/manulife-weapp/src/config/plan-templates.js","form_sn_list":["savings-readme-a4296d1f"],"at":"2026-02-14T13:59:29.110Z"} | ||
| 4 | -{"action":"update","backup_file":"/Users/huyirui/program/itomix/git/manulife-weapp/docs/parsed-backup/plan-templates.backup.1771077989896.js","target_file":"/Users/huyirui/program/itomix/git/manulife-weapp/src/config/plan-templates.js","form_sn_list":["savings-readme-a4296d1f"],"at":"2026-02-14T14:06:29.896Z"} | ||
| 5 | -{"action":"update","backup_file":"/Users/huyirui/program/itomix/git/manulife-weapp/docs/parsed-backup/plan-templates.backup.1771078080604.js","target_file":"/Users/huyirui/program/itomix/git/manulife-weapp/src/config/plan-templates.js","form_sn_list":["savings-readme-a4296d1f"],"at":"2026-02-14T14:08:00.605Z"} | ||
| 6 | -{"action":"update","backup_file":"/Users/huyirui/program/itomix/git/manulife-weapp/docs/parsed-backup/plan-templates.backup.1771078351660.js","target_file":"/Users/huyirui/program/itomix/git/manulife-weapp/src/config/plan-templates.js","form_sn_list":["savings-2-148b3acd"],"at":"2026-02-14T14:12:31.660Z"} | ||
| 7 | -{"action":"update","backup_file":"/Users/huyirui/program/itomix/git/manulife-weapp/docs/parsed-backup/plan-templates.backup.1771080130974.js","target_file":"/Users/huyirui/program/itomix/git/manulife-weapp/src/config/plan-templates.js","form_sn_list":["savings-2-55bcffc2"],"at":"2026-02-14T14:42:10.974Z"} | ||
| 8 | -{"action":"update","backup_file":"/Users/huyirui/program/itomix/git/manulife-weapp/docs/parsed-backup/plan-templates.backup.1771137003708.js","target_file":"/Users/huyirui/program/itomix/git/manulife-weapp/src/config/plan-templates.js","form_sn_list":["life-insurance-3-d8fde07d"],"at":"2026-02-15T06:30:03.709Z"} |
docs/parsed-backup/parse-audit.jsonl
deleted
100644 → 0
This diff is collapsed. Click to expand it.
| 1 | -/** | ||
| 2 | - * 计划书模版配置 | ||
| 3 | - * | ||
| 4 | - * @description 定义产品 form_sn 到模版组件和配置的映射关系 | ||
| 5 | - * @module config/plan-templates | ||
| 6 | - * @author Claude Code | ||
| 7 | - * @created 2026-02-06 | ||
| 8 | - * @updated 2026-02-13 - 新增文档解析工具入口 | ||
| 9 | - * | ||
| 10 | - * --- 快速添加新产品(开发工具) --- | ||
| 11 | - * 开发环境可使用以下工具快速添加新产品配置: | ||
| 12 | - * 1. 文档解析工具:/admin/document-parser/index (上传 PDF/Word,AI 自动解析) | ||
| 13 | - * 2. API 配置工具:/admin/document-parser/config (配置 AI 服务) | ||
| 14 | - * | ||
| 15 | - * 使用方式: | ||
| 16 | - * - 上传产品文档 → AI 自动提取配置 → 生成配置代码 → 复制到此文件 | ||
| 17 | - * | ||
| 18 | - * --- 手动添加步骤 --- | ||
| 19 | - * 1. 找到对应的产品分类(人寿/重疾/储蓄) | ||
| 20 | - * 2. 复制现有配置作为模板 | ||
| 21 | - * 3. 修改 name, currency, payment_periods, age_range 等字段 | ||
| 22 | - * 4. 确保 form_sn 唯一(建议使用产品英文标识 + 版本号) | ||
| 23 | - */ | ||
| 24 | - | ||
| 25 | -/** | ||
| 26 | - * 计划书模版配置映射 | ||
| 27 | - * @description form_sn 为产品 API 返回的字段,用于标识该产品使用的计划书模版 | ||
| 28 | - * | ||
| 29 | - * @example | ||
| 30 | - * // 产品 API 返回 | ||
| 31 | - * { | ||
| 32 | - * id: 1, | ||
| 33 | - * product_name: "WIOP3E 盈传创富保障计划 3 - 优选版", | ||
| 34 | - * form_sn: "life-insurance-wiop3e" // 对应下面的配置 key | ||
| 35 | - * } | ||
| 36 | - */ | ||
| 37 | -export const PLAN_TEMPLATES = { | ||
| 38 | - // 人寿保险产品 - WIOP3E | ||
| 39 | - 'life-insurance-wiop3e': { | ||
| 40 | - name: 'WIOP3E 盈传创富保障计划 3 - 优选版', | ||
| 41 | - component: 'LifeInsuranceTemplate', | ||
| 42 | - config: { | ||
| 43 | - currency: 'USD', // 币种:USD/CNY/HKD/EUR | ||
| 44 | - payment_periods: [ | ||
| 45 | - // 缴费年期选项 | ||
| 46 | - '整付(0-75 岁)', | ||
| 47 | - '5 年(0-70 岁)', | ||
| 48 | - '10 年(0-70 岁)' | ||
| 49 | - ], | ||
| 50 | - age_range: { min: 0, max: 75 }, // 年龄范围 | ||
| 51 | - insurance_period: '终身' // 保险期间 | ||
| 52 | - } | ||
| 53 | - }, | ||
| 54 | - | ||
| 55 | - // 人寿保险产品 - WIOP3 | ||
| 56 | - 'life-insurance-wiop3': { | ||
| 57 | - name: 'WIOP3 - 盈传创富保障计划 3', | ||
| 58 | - component: 'LifeInsuranceTemplate', | ||
| 59 | - config: { | ||
| 60 | - currency: 'USD', | ||
| 61 | - payment_periods: [ | ||
| 62 | - '整付(0-75 岁)', | ||
| 63 | - '5 年(0-70 岁)', | ||
| 64 | - '10 年(0-70 岁)' | ||
| 65 | - ], | ||
| 66 | - age_range: { min: 0, max: 75 }, | ||
| 67 | - insurance_period: '终身' | ||
| 68 | - } | ||
| 69 | - }, | ||
| 70 | - | ||
| 71 | - // 重疾保险产品 - MPC | ||
| 72 | - 'critical-illness-mpc': { | ||
| 73 | - name: 'MPC 守护无间重疾', | ||
| 74 | - component: 'CriticalIllnessTemplate', | ||
| 75 | - config: { | ||
| 76 | - currency: 'USD', | ||
| 77 | - payment_periods: [ | ||
| 78 | - '10 年(15 日 - 65 岁)', | ||
| 79 | - '20 年(15 日 - 65 岁)', | ||
| 80 | - '25 年(15 日 - 60 岁)' | ||
| 81 | - ], | ||
| 82 | - age_range: { min: 0, max: 65 }, | ||
| 83 | - insurance_period: '终身' | ||
| 84 | - } | ||
| 85 | - }, | ||
| 86 | - | ||
| 87 | - // 重疾保险产品 - MBC PRO | ||
| 88 | - 'critical-illness-mbc-pro': { | ||
| 89 | - name: 'MBC PRO 活跃人生重疾保 PRO', | ||
| 90 | - component: 'CriticalIllnessTemplate', | ||
| 91 | - config: { | ||
| 92 | - currency: 'USD', | ||
| 93 | - payment_periods: [ | ||
| 94 | - '10 年(15 日 - 65 岁)', | ||
| 95 | - '20 年(15 日 - 65 岁)', | ||
| 96 | - '25 年(15 日 - 60 岁)' | ||
| 97 | - ], | ||
| 98 | - age_range: { min: 0, max: 65 }, | ||
| 99 | - insurance_period: '终身' | ||
| 100 | - } | ||
| 101 | - }, | ||
| 102 | - | ||
| 103 | - // 重疾保险产品 - MBC2 | ||
| 104 | - 'critical-illness-mbc2': { | ||
| 105 | - name: 'MBC2 活跃人生重疾保 2', | ||
| 106 | - component: 'CriticalIllnessTemplate', | ||
| 107 | - config: { | ||
| 108 | - currency: 'USD', | ||
| 109 | - payment_periods: [ | ||
| 110 | - '10 年(15 日 - 65 岁)', | ||
| 111 | - '20 年(15 日 - 65 岁)', | ||
| 112 | - '25 年(15 日 - 60 岁)' | ||
| 113 | - ], | ||
| 114 | - age_range: { min: 0, max: 65 }, | ||
| 115 | - insurance_period: '终身' | ||
| 116 | - } | ||
| 117 | - }, | ||
| 118 | - | ||
| 119 | - // ====== 储蓄型产品(统一逻辑) ====== | ||
| 120 | - | ||
| 121 | - // GS - 宏挚传承保障计划 | ||
| 122 | - 'savings-gs': { | ||
| 123 | - name: '宏挚传承保障计划', | ||
| 124 | - component: 'SavingsTemplate', | ||
| 125 | - category: 'savings', // 储蓄型产品 | ||
| 126 | - config: { | ||
| 127 | - currency: 'USD', // 默认美元 | ||
| 128 | - payment_periods: [ | ||
| 129 | - '整付', | ||
| 130 | - '3 年', | ||
| 131 | - '5 年', | ||
| 132 | - '10 年', | ||
| 133 | - '15 年', | ||
| 134 | - ], | ||
| 135 | - age_range: { min: 0, max: 100 }, | ||
| 136 | - insurance_period: '终身', | ||
| 137 | - // 提取计划配置 | ||
| 138 | - withdrawal_plan: { | ||
| 139 | - enabled: true, | ||
| 140 | - currencies: ['HKD', 'USD', 'CNY'], // 支持的币种 | ||
| 141 | - default_currency: 'USD', // 统一为美元 | ||
| 142 | - withdrawal_modes: [ | ||
| 143 | - '年龄指定金额', // 方式1 | ||
| 144 | - '最高固定金额' // 方式2 | ||
| 145 | - ], | ||
| 146 | - withdrawal_periods: [ | ||
| 147 | - '1年', | ||
| 148 | - '2年', | ||
| 149 | - '3年', | ||
| 150 | - '5年', | ||
| 151 | - '10年', | ||
| 152 | - '15年', | ||
| 153 | - '20年', | ||
| 154 | - '终身' | ||
| 155 | - ] | ||
| 156 | - } | ||
| 157 | - } | ||
| 158 | - }, | ||
| 159 | - | ||
| 160 | - // GC - 宏挚家传保险计划 | ||
| 161 | - 'savings-gc': { | ||
| 162 | - name: '宏挚家传保险计划', | ||
| 163 | - component: 'SavingsTemplate', | ||
| 164 | - category: 'savings', | ||
| 165 | - config: { | ||
| 166 | - currency: 'USD', | ||
| 167 | - payment_periods: [ | ||
| 168 | - '整付', | ||
| 169 | - '3 年', | ||
| 170 | - '5 年', | ||
| 171 | - ], | ||
| 172 | - age_range: { min: 0, max: 100 }, | ||
| 173 | - insurance_period: '终身', | ||
| 174 | - withdrawal_plan: { | ||
| 175 | - enabled: true, | ||
| 176 | - currencies: ['HKD', 'USD', 'CNY'], | ||
| 177 | - default_currency: 'USD', // 统一为美元 | ||
| 178 | - withdrawal_modes: ['年龄指定金额', '最高固定金额'], | ||
| 179 | - withdrawal_periods: [ | ||
| 180 | - '1年', | ||
| 181 | - '2年', | ||
| 182 | - '3年', | ||
| 183 | - '5年', | ||
| 184 | - '10年', | ||
| 185 | - '15年', | ||
| 186 | - '20年', | ||
| 187 | - '终身' | ||
| 188 | - ] | ||
| 189 | - } | ||
| 190 | - } | ||
| 191 | - }, | ||
| 192 | - | ||
| 193 | - // FA - 宏浚传承保障计划 | ||
| 194 | - 'savings-fa': { | ||
| 195 | - name: '宏浚传承保障计划', | ||
| 196 | - component: 'SavingsTemplate', | ||
| 197 | - category: 'savings', | ||
| 198 | - config: { | ||
| 199 | - currency: 'USD', | ||
| 200 | - payment_periods: [ | ||
| 201 | - '整付', | ||
| 202 | - '2 年', | ||
| 203 | - '5 年', | ||
| 204 | - ], | ||
| 205 | - age_range: { min: 0, max: 100 }, | ||
| 206 | - insurance_period: '终身', | ||
| 207 | - withdrawal_plan: { | ||
| 208 | - enabled: true, | ||
| 209 | - currencies: ['HKD', 'USD', 'CNY'], | ||
| 210 | - default_currency: 'USD', // 统一为美元 | ||
| 211 | - withdrawal_modes: ['年龄指定金额', '最高固定金额'], | ||
| 212 | - withdrawal_periods: [ | ||
| 213 | - '1年', | ||
| 214 | - '2年', | ||
| 215 | - '3年', | ||
| 216 | - '5年', | ||
| 217 | - '10年', | ||
| 218 | - '15年', | ||
| 219 | - '20年', | ||
| 220 | - '终身' | ||
| 221 | - ] | ||
| 222 | - } | ||
| 223 | - } | ||
| 224 | - }, | ||
| 225 | - | ||
| 226 | - // LV2 - 赤霞珠终身寿险计划2(储蓄型终身寿险) | ||
| 227 | - 'savings-lv2': { | ||
| 228 | - name: '赤霞珠终身寿险计划2', | ||
| 229 | - component: 'SavingsTemplate', | ||
| 230 | - category: 'savings', | ||
| 231 | - config: { | ||
| 232 | - currency: 'USD', | ||
| 233 | - payment_periods: [ | ||
| 234 | - '5 年', | ||
| 235 | - '8 年', | ||
| 236 | - '12 年', | ||
| 237 | - '15 年', | ||
| 238 | - ], | ||
| 239 | - age_range: { min: 0, max: 100 }, | ||
| 240 | - insurance_period: '终身', | ||
| 241 | - withdrawal_plan: { | ||
| 242 | - enabled: true, | ||
| 243 | - currencies: ['HKD', 'USD', 'CNY'], | ||
| 244 | - default_currency: 'USD', // 统一为美元 | ||
| 245 | - withdrawal_modes: ['年龄指定金额', '最高固定金额'], | ||
| 246 | - withdrawal_periods: [ | ||
| 247 | - '1年', | ||
| 248 | - '2年', | ||
| 249 | - '3年', | ||
| 250 | - '5年', | ||
| 251 | - '10年', | ||
| 252 | - '15年', | ||
| 253 | - '20年', | ||
| 254 | - '终身' | ||
| 255 | - ] | ||
| 256 | - } | ||
| 257 | - } | ||
| 258 | - } | ||
| 259 | -} | ||
| 260 | - | ||
| 261 | -/** | ||
| 262 | - * 全局功能开关 | ||
| 263 | - * @description 用于控制实验性功能或未来扩展功能的开关 | ||
| 264 | - * | ||
| 265 | - * @example 开启多币种功能:设置 MULTI_CURRENCY_ENABLED = true | ||
| 266 | - */ | ||
| 267 | -export const FEATURE_FLAGS = { | ||
| 268 | - /** | ||
| 269 | - * 多币种切换功能 | ||
| 270 | - * @description false: 方案 1 - 固定币种(当前实现) | ||
| 271 | - * true: 方案 2 - 支持多币种切换(未来扩展) | ||
| 272 | - * @type {boolean} | ||
| 273 | - */ | ||
| 274 | - MULTI_CURRENCY_ENABLED: false | ||
| 275 | -} | ||
| 276 | - | ||
| 277 | -/** | ||
| 278 | - * 币种符号映射 | ||
| 279 | - * @description 币种代码到符号的映射关系 | ||
| 280 | - */ | ||
| 281 | -export const CURRENCY_SYMBOLS = { | ||
| 282 | - CNY: '¥', // 人民币 | ||
| 283 | - USD: '$', // 美元 | ||
| 284 | - HKD: 'HK$', // 港币 | ||
| 285 | - EUR: '€' // 欧元 | ||
| 286 | -} | ||
| 287 | - | ||
| 288 | -/** | ||
| 289 | - * 币种完整信息映射 | ||
| 290 | - * @description 币种代码到完整信息的映射(用于多币种模式) | ||
| 291 | - */ | ||
| 292 | -export const CURRENCY_MAP = { | ||
| 293 | - CNY: { label: '人民币', symbol: '¥', value: 'CNY' }, | ||
| 294 | - USD: { label: '美元', symbol: '$', value: 'USD' }, | ||
| 295 | - HKD: { label: '港币', symbol: 'HK$', value: 'HKD' }, | ||
| 296 | - EUR: { label: '欧元', symbol: '€', value: 'EUR' } | ||
| 297 | -} | ||
| 298 | - | ||
| 299 | -/** | ||
| 300 | - * 根据 form_sn 获取模版配置 | ||
| 301 | - * @param {string} formSn - 产品 API 返回的 form_sn 字段 | ||
| 302 | - * @returns {Object|null} 模版配置对象,未找到返回 null | ||
| 303 | - * | ||
| 304 | - * @example | ||
| 305 | - * const config = getTemplateConfig('life-insurance-wiop3e') | ||
| 306 | - * // 返回: { name: 'WIOP3E...', component: 'LifeInsuranceTemplate', config: {...} } | ||
| 307 | - */ | ||
| 308 | -export function getTemplateConfig(formSn) { | ||
| 309 | - if (!formSn) { | ||
| 310 | - console.warn('[plan-templates] form_sn 为空') | ||
| 311 | - return null | ||
| 312 | - } | ||
| 313 | - | ||
| 314 | - const config = PLAN_TEMPLATES[formSn] | ||
| 315 | - if (!config) { | ||
| 316 | - console.error(`[plan-templates] 未找到模版配置: ${formSn}`) | ||
| 317 | - return null | ||
| 318 | - } | ||
| 319 | - | ||
| 320 | - return config | ||
| 321 | -} | ||
| 322 | - | ||
| 323 | -/** | ||
| 324 | - * 获取币种符号 | ||
| 325 | - * @param {string} currencyCode - 币种代码(CNY/USD/HKD/EUR) | ||
| 326 | - * @returns {string} 币种符号 | ||
| 327 | - * | ||
| 328 | - * @example | ||
| 329 | - * const symbol = getCurrencySymbol('USD') // 返回: '$' | ||
| 330 | - */ | ||
| 331 | -export function getCurrencySymbol(currencyCode) { | ||
| 332 | - return CURRENCY_SYMBOLS[currencyCode] || '¥' | ||
| 333 | -} |
| 1 | -/** | ||
| 2 | - * 计划书模版配置 | ||
| 3 | - * | ||
| 4 | - * @description 定义产品 form_sn 到模版组件和配置的映射关系 | ||
| 5 | - * @module config/plan-templates | ||
| 6 | - * @author Claude Code | ||
| 7 | - * @created 2026-02-06 | ||
| 8 | - * @updated 2026-02-13 - 新增文档解析工具入口 | ||
| 9 | - * | ||
| 10 | - * --- 快速添加新产品(开发工具) --- | ||
| 11 | - * 开发环境可使用以下工具快速添加新产品配置: | ||
| 12 | - * 1. 文档解析工具:/admin/document-parser/index (上传 PDF/Word,AI 自动解析) | ||
| 13 | - * 2. API 配置工具:/admin/document-parser/config (配置 AI 服务) | ||
| 14 | - * | ||
| 15 | - * 使用方式: | ||
| 16 | - * - 上传产品文档 → AI 自动提取配置 → 生成配置代码 → 复制到此文件 | ||
| 17 | - * | ||
| 18 | - * --- 手动添加步骤 --- | ||
| 19 | - * 1. 找到对应的产品分类(人寿/重疾/储蓄) | ||
| 20 | - * 2. 复制现有配置作为模板 | ||
| 21 | - * 3. 修改 name, currency, payment_periods, age_range 等字段 | ||
| 22 | - * 4. 确保 form_sn 唯一(建议使用产品英文标识 + 版本号) | ||
| 23 | - */ | ||
| 24 | - | ||
| 25 | -/** | ||
| 26 | - * 计划书模版配置映射 | ||
| 27 | - * @description form_sn 为产品 API 返回的字段,用于标识该产品使用的计划书模版 | ||
| 28 | - * | ||
| 29 | - * @example | ||
| 30 | - * // 产品 API 返回 | ||
| 31 | - * { | ||
| 32 | - * id: 1, | ||
| 33 | - * product_name: "WIOP3E 盈传创富保障计划 3 - 优选版", | ||
| 34 | - * form_sn: "life-insurance-wiop3e" // 对应下面的配置 key | ||
| 35 | - * } | ||
| 36 | - */ | ||
| 37 | -export const PLAN_TEMPLATES = { | ||
| 38 | - // 人寿保险产品 - WIOP3E | ||
| 39 | - 'life-insurance-wiop3e': { | ||
| 40 | - name: 'WIOP3E 盈传创富保障计划 3 - 优选版', | ||
| 41 | - component: 'LifeInsuranceTemplate', | ||
| 42 | - config: { | ||
| 43 | - currency: 'USD', // 币种:USD/CNY/HKD/EUR | ||
| 44 | - payment_periods: [ | ||
| 45 | - // 缴费年期选项 | ||
| 46 | - '整付(0-75 岁)', | ||
| 47 | - '5 年(0-70 岁)', | ||
| 48 | - '10 年(0-70 岁)' | ||
| 49 | - ], | ||
| 50 | - age_range: { min: 0, max: 75 }, // 年龄范围 | ||
| 51 | - insurance_period: '终身' // 保险期间 | ||
| 52 | - } | ||
| 53 | - }, | ||
| 54 | - | ||
| 55 | - // 人寿保险产品 - WIOP3 | ||
| 56 | - 'life-insurance-wiop3': { | ||
| 57 | - name: 'WIOP3 - 盈传创富保障计划 3', | ||
| 58 | - component: 'LifeInsuranceTemplate', | ||
| 59 | - config: { | ||
| 60 | - currency: 'USD', | ||
| 61 | - payment_periods: [ | ||
| 62 | - '整付(0-75 岁)', | ||
| 63 | - '5 年(0-70 岁)', | ||
| 64 | - '10 年(0-70 岁)' | ||
| 65 | - ], | ||
| 66 | - age_range: { min: 0, max: 75 }, | ||
| 67 | - insurance_period: '终身' | ||
| 68 | - } | ||
| 69 | - }, | ||
| 70 | - | ||
| 71 | - // 重疾保险产品 - MPC | ||
| 72 | - 'critical-illness-mpc': { | ||
| 73 | - name: 'MPC 守护无间重疾', | ||
| 74 | - component: 'CriticalIllnessTemplate', | ||
| 75 | - config: { | ||
| 76 | - currency: 'USD', | ||
| 77 | - payment_periods: [ | ||
| 78 | - '10 年(15 日 - 65 岁)', | ||
| 79 | - '20 年(15 日 - 65 岁)', | ||
| 80 | - '25 年(15 日 - 60 岁)' | ||
| 81 | - ], | ||
| 82 | - age_range: { min: 0, max: 65 }, | ||
| 83 | - insurance_period: '终身' | ||
| 84 | - } | ||
| 85 | - }, | ||
| 86 | - | ||
| 87 | - // 重疾保险产品 - MBC PRO | ||
| 88 | - 'critical-illness-mbc-pro': { | ||
| 89 | - name: 'MBC PRO 活跃人生重疾保 PRO', | ||
| 90 | - component: 'CriticalIllnessTemplate', | ||
| 91 | - config: { | ||
| 92 | - currency: 'USD', | ||
| 93 | - payment_periods: [ | ||
| 94 | - '10 年(15 日 - 65 岁)', | ||
| 95 | - '20 年(15 日 - 65 岁)', | ||
| 96 | - '25 年(15 日 - 60 岁)' | ||
| 97 | - ], | ||
| 98 | - age_range: { min: 0, max: 65 }, | ||
| 99 | - insurance_period: '终身' | ||
| 100 | - } | ||
| 101 | - }, | ||
| 102 | - | ||
| 103 | - // 重疾保险产品 - MBC2 | ||
| 104 | - 'critical-illness-mbc2': { | ||
| 105 | - name: 'MBC2 活跃人生重疾保 2', | ||
| 106 | - component: 'CriticalIllnessTemplate', | ||
| 107 | - config: { | ||
| 108 | - currency: 'USD', | ||
| 109 | - payment_periods: [ | ||
| 110 | - '10 年(15 日 - 65 岁)', | ||
| 111 | - '20 年(15 日 - 65 岁)', | ||
| 112 | - '25 年(15 日 - 60 岁)' | ||
| 113 | - ], | ||
| 114 | - age_range: { min: 0, max: 65 }, | ||
| 115 | - insurance_period: '终身' | ||
| 116 | - } | ||
| 117 | - }, | ||
| 118 | - | ||
| 119 | - // ====== 储蓄型产品(统一逻辑) ====== | ||
| 120 | - | ||
| 121 | - // GS - 宏挚传承保障计划 | ||
| 122 | - 'savings-gs': { | ||
| 123 | - name: '宏挚传承保障计划', | ||
| 124 | - component: 'SavingsTemplate', | ||
| 125 | - category: 'savings', // 储蓄型产品 | ||
| 126 | - config: { | ||
| 127 | - currency: 'USD', // 默认美元 | ||
| 128 | - payment_periods: [ | ||
| 129 | - '整付', | ||
| 130 | - '3 年', | ||
| 131 | - '5 年', | ||
| 132 | - '10 年', | ||
| 133 | - '15 年', | ||
| 134 | - ], | ||
| 135 | - age_range: { min: 0, max: 100 }, | ||
| 136 | - insurance_period: '终身', | ||
| 137 | - // 提取计划配置 | ||
| 138 | - withdrawal_plan: { | ||
| 139 | - enabled: true, | ||
| 140 | - currencies: ['HKD', 'USD', 'CNY'], // 支持的币种 | ||
| 141 | - default_currency: 'USD', // 统一为美元 | ||
| 142 | - withdrawal_modes: [ | ||
| 143 | - '年龄指定金额', // 方式1 | ||
| 144 | - '最高固定金额' // 方式2 | ||
| 145 | - ], | ||
| 146 | - withdrawal_periods: [ | ||
| 147 | - '1年', | ||
| 148 | - '2年', | ||
| 149 | - '3年', | ||
| 150 | - '5年', | ||
| 151 | - '10年', | ||
| 152 | - '15年', | ||
| 153 | - '20年', | ||
| 154 | - '终身' | ||
| 155 | - ] | ||
| 156 | - } | ||
| 157 | - } | ||
| 158 | - }, | ||
| 159 | - | ||
| 160 | - // GC - 宏挚家传保险计划 | ||
| 161 | - 'savings-gc': { | ||
| 162 | - name: '宏挚家传保险计划', | ||
| 163 | - component: 'SavingsTemplate', | ||
| 164 | - category: 'savings', | ||
| 165 | - config: { | ||
| 166 | - currency: 'USD', | ||
| 167 | - payment_periods: [ | ||
| 168 | - '整付', | ||
| 169 | - '3 年', | ||
| 170 | - '5 年', | ||
| 171 | - ], | ||
| 172 | - age_range: { min: 0, max: 100 }, | ||
| 173 | - insurance_period: '终身', | ||
| 174 | - withdrawal_plan: { | ||
| 175 | - enabled: true, | ||
| 176 | - currencies: ['HKD', 'USD', 'CNY'], | ||
| 177 | - default_currency: 'USD', // 统一为美元 | ||
| 178 | - withdrawal_modes: ['年龄指定金额', '最高固定金额'], | ||
| 179 | - withdrawal_periods: [ | ||
| 180 | - '1年', | ||
| 181 | - '2年', | ||
| 182 | - '3年', | ||
| 183 | - '5年', | ||
| 184 | - '10年', | ||
| 185 | - '15年', | ||
| 186 | - '20年', | ||
| 187 | - '终身' | ||
| 188 | - ] | ||
| 189 | - } | ||
| 190 | - } | ||
| 191 | - }, | ||
| 192 | - | ||
| 193 | - // FA - 宏浚传承保障计划 | ||
| 194 | - 'savings-fa': { | ||
| 195 | - name: '宏浚传承保障计划', | ||
| 196 | - component: 'SavingsTemplate', | ||
| 197 | - category: 'savings', | ||
| 198 | - config: { | ||
| 199 | - currency: 'USD', | ||
| 200 | - payment_periods: [ | ||
| 201 | - '整付', | ||
| 202 | - '2 年', | ||
| 203 | - '5 年', | ||
| 204 | - ], | ||
| 205 | - age_range: { min: 0, max: 100 }, | ||
| 206 | - insurance_period: '终身', | ||
| 207 | - withdrawal_plan: { | ||
| 208 | - enabled: true, | ||
| 209 | - currencies: ['HKD', 'USD', 'CNY'], | ||
| 210 | - default_currency: 'USD', // 统一为美元 | ||
| 211 | - withdrawal_modes: ['年龄指定金额', '最高固定金额'], | ||
| 212 | - withdrawal_periods: [ | ||
| 213 | - '1年', | ||
| 214 | - '2年', | ||
| 215 | - '3年', | ||
| 216 | - '5年', | ||
| 217 | - '10年', | ||
| 218 | - '15年', | ||
| 219 | - '20年', | ||
| 220 | - '终身' | ||
| 221 | - ] | ||
| 222 | - } | ||
| 223 | - } | ||
| 224 | - }, | ||
| 225 | - | ||
| 226 | - // LV2 - 赤霞珠终身寿险计划2(储蓄型终身寿险) | ||
| 227 | - 'savings-lv2': { | ||
| 228 | - name: '赤霞珠终身寿险计划2', | ||
| 229 | - component: 'SavingsTemplate', | ||
| 230 | - category: 'savings', | ||
| 231 | - config: { | ||
| 232 | - currency: 'USD', | ||
| 233 | - payment_periods: [ | ||
| 234 | - '5 年', | ||
| 235 | - '8 年', | ||
| 236 | - '12 年', | ||
| 237 | - '15 年', | ||
| 238 | - ], | ||
| 239 | - age_range: { min: 0, max: 100 }, | ||
| 240 | - insurance_period: '终身', | ||
| 241 | - withdrawal_plan: { | ||
| 242 | - enabled: true, | ||
| 243 | - currencies: ['HKD', 'USD', 'CNY'], | ||
| 244 | - default_currency: 'USD', // 统一为美元 | ||
| 245 | - withdrawal_modes: ['年龄指定金额', '最高固定金额'], | ||
| 246 | - withdrawal_periods: [ | ||
| 247 | - '1年', | ||
| 248 | - '2年', | ||
| 249 | - '3年', | ||
| 250 | - '5年', | ||
| 251 | - '10年', | ||
| 252 | - '15年', | ||
| 253 | - '20年', | ||
| 254 | - '终身' | ||
| 255 | - ] | ||
| 256 | - } | ||
| 257 | - } | ||
| 258 | - } | ||
| 259 | -} | ||
| 260 | - | ||
| 261 | -/** | ||
| 262 | - * 全局功能开关 | ||
| 263 | - * @description 用于控制实验性功能或未来扩展功能的开关 | ||
| 264 | - * | ||
| 265 | - * @example 开启多币种功能:设置 MULTI_CURRENCY_ENABLED = true | ||
| 266 | - */ | ||
| 267 | -export const FEATURE_FLAGS = { | ||
| 268 | - /** | ||
| 269 | - * 多币种切换功能 | ||
| 270 | - * @description false: 方案 1 - 固定币种(当前实现) | ||
| 271 | - * true: 方案 2 - 支持多币种切换(未来扩展) | ||
| 272 | - * @type {boolean} | ||
| 273 | - */ | ||
| 274 | - MULTI_CURRENCY_ENABLED: false | ||
| 275 | -} | ||
| 276 | - | ||
| 277 | -/** | ||
| 278 | - * 币种符号映射 | ||
| 279 | - * @description 币种代码到符号的映射关系 | ||
| 280 | - */ | ||
| 281 | -export const CURRENCY_SYMBOLS = { | ||
| 282 | - CNY: '¥', // 人民币 | ||
| 283 | - USD: '$', // 美元 | ||
| 284 | - HKD: 'HK$', // 港币 | ||
| 285 | - EUR: '€' // 欧元 | ||
| 286 | -} | ||
| 287 | - | ||
| 288 | -/** | ||
| 289 | - * 币种完整信息映射 | ||
| 290 | - * @description 币种代码到完整信息的映射(用于多币种模式) | ||
| 291 | - */ | ||
| 292 | -export const CURRENCY_MAP = { | ||
| 293 | - CNY: { label: '人民币', symbol: '¥', value: 'CNY' }, | ||
| 294 | - USD: { label: '美元', symbol: '$', value: 'USD' }, | ||
| 295 | - HKD: { label: '港币', symbol: 'HK$', value: 'HKD' }, | ||
| 296 | - EUR: { label: '欧元', symbol: '€', value: 'EUR' } | ||
| 297 | -} | ||
| 298 | - | ||
| 299 | -/** | ||
| 300 | - * 根据 form_sn 获取模版配置 | ||
| 301 | - * @param {string} formSn - 产品 API 返回的 form_sn 字段 | ||
| 302 | - * @returns {Object|null} 模版配置对象,未找到返回 null | ||
| 303 | - * | ||
| 304 | - * @example | ||
| 305 | - * const config = getTemplateConfig('life-insurance-wiop3e') | ||
| 306 | - * // 返回: { name: 'WIOP3E...', component: 'LifeInsuranceTemplate', config: {...} } | ||
| 307 | - */ | ||
| 308 | -export function getTemplateConfig(formSn) { | ||
| 309 | - if (!formSn) { | ||
| 310 | - console.warn('[plan-templates] form_sn 为空') | ||
| 311 | - return null | ||
| 312 | - } | ||
| 313 | - | ||
| 314 | - const config = PLAN_TEMPLATES[formSn] | ||
| 315 | - if (!config) { | ||
| 316 | - console.error(`[plan-templates] 未找到模版配置: ${formSn}`) | ||
| 317 | - return null | ||
| 318 | - } | ||
| 319 | - | ||
| 320 | - return config | ||
| 321 | -} | ||
| 322 | - | ||
| 323 | -/** | ||
| 324 | - * 获取币种符号 | ||
| 325 | - * @param {string} currencyCode - 币种代码(CNY/USD/HKD/EUR) | ||
| 326 | - * @returns {string} 币种符号 | ||
| 327 | - * | ||
| 328 | - * @example | ||
| 329 | - * const symbol = getCurrencySymbol('USD') // 返回: '$' | ||
| 330 | - */ | ||
| 331 | -export function getCurrencySymbol(currencyCode) { | ||
| 332 | - return CURRENCY_SYMBOLS[currencyCode] || '¥' | ||
| 333 | -} |
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment