yumoqing b837692cc4 feat(opportunity): 实现完整的商机管理模块
- 实现商机全生命周期管理功能
  - 商机创建(手动录入/线索转化)
  - 阶段管理(自定义销售漏斗,阶段变更记录原因)
- 实现商机分析功能
  - 漏斗可视化(各阶段数量/金额占比,支持区域/销售维度筛选)
  - 收入预测(基于历史转化率,偏差率≤15%)
- 完整的数据库设计(opportunities, opportunity_stage_history, sales_funnel_config)
- 前端界面基于bricks-framework实现
- 符合生产级代码标准和模块开发规范
- 包含完整的测试用例和构建脚本
2026-04-16 14:32:21 +08:00

24 lines
753 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 商机管理模块构建脚本
set -e
MODULE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo "Building opportunity_management module in: $MODULE_DIR"
# 创建必要的目录结构
mkdir -p "$MODULE_DIR/wwwroot"
mkdir -p "$MODULE_DIR/wwwroot/styles"
mkdir -p "$MODULE_DIR/wwwroot/scripts"
# 复制UI文件到wwwroot
cp "$MODULE_DIR/ui/opportunity_management.ui" "$MODULE_DIR/wwwroot/"
# 生成数据库DDL脚本如果使用sqlor-database-module
if [ -d "$MODULE_DIR/models" ]; then
echo "Database models found, generating DDL..."
# 这里会调用sqlor-database-module的工具来生成DDL
# 具体实现取决于sqlor框架的CLI工具
fi
echo "Opportunity management module build completed successfully!"