feat(plan): 添加表单验证功能并更新货币配置
- 为计划书表单添加完整验证机制 - 更新重疾险产品货币为 USD - 各个 PlanFields 组件支持错误提示 - CriticalIllnessTemplate 和 LifeInsuranceTemplate 实现验证逻辑 - PlanFormContainer 添加提交前验证流程 技术细节: - PlanFormContainer 通过 ref 调用子组件 validate 方法 - 各个表单字段组件添加 error 状态显示 - 使用 usePlanFormValidation composable 管理验证逻辑 - 验证失败时阻止提交并显示错误信息 影响文件: - src/components/PlanFormContainer.vue - src/components/PlanFields/*.vue - src/components/PlanTemplates/CriticalIllnessTemplate.vue - src/components/PlanTemplates/LifeInsuranceTemplate.vue - src/config/plan-templates.js - docs/CHANGELOG.md Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Showing
11 changed files
with
313 additions
and
11 deletions
-
Please register or login to post a comment