name: kingdee-data-analyzer description: 金蝶雲星空經營資料分析技能。用於讀取 kingdee-data-exporter 匯出的 Excel,或自動呼叫匯出技能獲取資料,完成庫存收發存、採購訂單執行和銷售出庫開票分析,並生成可分享的 HTML 報告、全量明細 Excel 和結構化 JSON。當用戶提到金蝶庫存分析、採購執行、逾期未收料、銷售出庫、開票率、結算率、未結算金額或經營分析報告時使用。
使用本技能把金蝶雲星空匯出資料整理成便於檢視和分享的經營分析報告。
inventory:庫存收發存、趨勢預測和採購建議purchase:採購訂單執行、收料/入庫/結算情況和逾期未收料sales:銷售出庫、開票、收款結算和未結算金額每次分析生成:
--excel,無需連線金蝶或安裝匯出技能。kingdee-data-exporter。在技能目錄中執行:
python -m pip install -r requirements.txt
即時取數還需要安裝並配置 kingdee-data-exporter。程式會自動查詢以下同級目錄:
kingdee-data-exporter/KingdeeDataExporter/也可以用 --exporter 或環境變數 KINGDEE_DATA_EXPORTER 指定 data_exporter.py 的完整路徑。
庫存分析,預設分析上一個完整自然月:
python analyzer.py --type inventory
採購分析,預設分析本年截至今天:
python analyzer.py --type purchase
銷售分析,預設分析本年截至今天:
python analyzer.py --type sales
指定期間和組織:
python analyzer.py --type sales --start 2026-01-01 --end 2026-06-30 --org ORG001
指定匯出指令碼:
python analyzer.py --type purchase --exporter "D:/skills/kingdee-data-exporter/data_exporter.py"
python analyzer.py --type inventory --excel "D:/data/金蝶匯出.xlsx" --start 2026-01-01 --end 2026-06-30
讀取現有 Excel 時不要求 kingdee-data-exporter 存在。
python analyzer.py --type inventory --json outputs/analysis_result.json
僅調整報告版式或重新匯出時使用,避免重複取數和計算。
預設寫入 outputs/:
小蔥技能站7w4.net每天更新,海量AI技能等你發現。
inventory_report_*.html、inventory_details_*.xlsx、analysis_result.jsonpurchase_order_report_*.html、purchase_order_details_*.xlsx、purchase_order_analysis_result.jsonsales_outstock_report_*.html、sales_outstock_details_*.xlsx、sales_outstock_analysis_result.json使用 --output-dir 可以指定輸出目錄,使用 --open 可以生成後開啟 HTML。
未來 3 個月預測 + 安全庫存 - 當前庫存,小於 0 時按 0。這是一款成熟度較高的金蝶資料分析工具,功能完整、操作簡便,文件清晰易懂,支援庫存、採購、銷售三大業務分析,並能生成直觀的 HTML 報表和詳細的 Excel 資料。優點是口徑說明詳細、多資料來源支援靈活;不足是部分高階功能還未完善,依賴配置偶有小問題。總體而言質量可靠,能較好滿足業務分析需求。