将销售 SubType 添加到铅 Market 界面并用到编辑格式
- 添加销售 SubType 字段到铅市场接口,以匹配 DTO - 更新手柄EditClick,在设定父/子类型时使用DTO的销售SubType - 这可以修正编辑市场时未覆盖的子类型字段
使用传入的系统 Fields 进行外地绘图接口分组
- FieldMapping Interface: 固定获取System FieldsByCategory 用于通过系统 Fields 道具而不是默认的 BASE SYSTEM FIELDS - 外地绘图界面:系统字段变化时自动扩展新类别后添加使用效果 - 领导手册进口经理:对错误处理进行小清理 这可以使导入向导在基...
重置市场数据负载的状态以阻止数据陈旧
- 当响应时, 添加状态重置到其它块中 。ok 是虚假的 - 确保选定MarketConfig和自定义字段在市场负载失败时被清除 - 与捕获区块错误处理保持一致 - 防止在后续负载失败时使用陈旧的市场配置
Fix syntax error and add debug logging for market field loading
- Fixed syntax error in complex type assertion by breaking into proper interfaces - Added debug logging to track market data, salesSubType, and custom form load...
在手动导入中使用销售 SubType 进行按揭字段检测
- 更新了铅市场接口以匹配 DTO 结构( CustomForms 最初只有基本信息) - 澄清销售的固定评论SubType用于抵押贷款检测(不是销售Type) - 已获取每个表格的自定义表格,并附有详细信息(数据库和字段)
Add missing Next.js API routes for leads endpoints
- Added /api/security/leads route for GET (all leads) and POST (create lead) - Added /api/security/leads/[id] route for GET, PUT, DELETE operations - Added ****...
Remove 'name' property reference in updateLead function
- Lead interface only has 'primaryContact', not 'name' - Removed fallback to patch.name in updateLead - Completes the fix for type safety
Remove non-existent 'name' property references in leadsApi
- Lead interface only has 'primaryContact', not 'name' - Removed fallback to leadData.name in createLead and updateLead - Ensures type safety and correct API be...
Replace remaining Grid closing tags with GridLegacy in CreateLeadClient
- Fixed all remaining </Grid> tags that should be </GridLegacy> - Ensures proper closing of GridLegacy item components - Resolves JSX syntax error
Replace Grid with GridLegacy for item prop in CreateLeadClient
- MUI v7 moved 'item' prop to GridLegacy component - Updated all Grid item instances to GridLegacy - Required for compatibility with MUI v7
Add missing 'email' property to Lead interface
- leadsApi.createLead expects email as a separate property - Email is also available in primaryContact.email but API needs it at Lead level - Required for lead ...
Cast customFormData to correct type in CreateLeadClient
- TypeScript was complaining about type mismatch between Record<string, Record<string, unknown>> and Record<string, CustomFormData> - Added type assertion to ma...
Add missing 'vendorLeadID' property to Lead interface
- Property exists in Java Lead bean but was missing from TypeScript interface - Required for lead creation and import functionality
Add missing 'languages' property to primaryContact in CreateLeadClient
- Contact interface requires 'languages' property - Initialize with empty array to satisfy type requirements
Use GridLegacy for Grid component with item prop in MortgageFieldsComponent
- MUI v7 moved Grid with item prop to GridLegacy - Update import to use GridLegacy to fix TypeScript error
Use GridLegacy for Grid component with item prop in CustomFormFieldsComponent
- MUI v7 moved Grid with item prop to GridLegacy - Update import to use GridLegacy to fix TypeScript error
Replace all 'any' types with proper TypeScript types
- Replace Record<string, any> with Record<string, unknown> - Replace any parameter types with unknown or specific types - Remove unused imports (authenticatedFe...
Resolve compilation errors in CustomFormFieldsComponent and LeadManager
- Remove stray fragment closing tag (</>) in CustomFormFieldsComponent.tsx - Remove duplicate leadId declaration in LeadManager.tsx IdRenderer
Add validation for required fields in lead imports
- Mark email, firstName, and lastName as required fields in leadFields.ts - Add validation in handleStartImport to check all required fields are mapped - Add va...
Add dynamic field mapping for lead imports based on market configuration
- Update leadFields.ts to include mortgage fields and getAllSystemFields function - Add MORTGAGE_FIELDS array with all LeadClaimMortgage fields - Update LeadMan...
Remove all mock data and make leads system production-ready
- Remove all mock data generation from leadsApi.ts (mockStore, ensureMock, faker.js) - Remove withMock wrapper function and all fallback logic - Remove generate...
Add hierarchical SaleType selection to markets-fields
- Add parent/child type dropdown system for SaleType selection - Default to 'Custom' child type when SERVICE or PRODUCT is selected - Prevent creation with NOT_...