ERPTurbo_Client/packages
shenyifei d4013c986f refactor(calculator): 重构采购订单计算器模块
- 将原有的单一计算器类拆分为多个专用计算模块
- 新增 BusinessRules 类统一管理业务规则判断
- 引入 DecimalUtils 工具类标准化精度计算
- 创建 CostCalculator、SalesCalculator、ProfitCalculator 和 PackagingCalculator 模块
- 更新类型定义文件,调整 costItemIds 类型为 string[] 并使 pricingMethod 必填
- 在 CostSummarySection 中优化成本计算逻辑以正确处理运费包含情况
- 移除调试用的 console.log 语句
- 修正 MarketPriceSection 中变量命名并更新引用
- 在 CostCreate 组件中补充 orderId 字段
- 删除 PurchaseOrderCalculator 中的调试参数和相关日志输出
- 添加详细的 README 文档说明新架构和使用方法
2025-12-13 22:04:27 +08:00
..
app-client refactor(calculator): 重构采购订单计算器模块 2025-12-13 22:04:27 +08:00