|
@@ -393,6 +393,25 @@ export const exportSalesForecastByMonth = async (year, month) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
|
+ * 销售预测汇总导出(按年月参数)
|
|
|
|
|
+ * 对应后端:GET /api/blade-factory/api/factory/salesForecastSummary/exportByYearMonth
|
|
|
|
|
+ * @param {number|string} year - 年份,如 2025
|
|
|
|
|
+ * @param {number|string} month - 月份,1-12 或 '01'-'12'
|
|
|
|
|
+ * @returns {Promise<SalesForecastTemplateResponse>} 导出响应(Blob 数据 + 响应头)
|
|
|
|
|
+ * @example
|
|
|
|
|
+ * const res = await exportSalesForecastSummaryByYearMonth(2025, 10)
|
|
|
|
|
+ * // 文件名可从 res.headers['content-disposition'] 中解析
|
|
|
|
|
+ */
|
|
|
|
|
+export const exportSalesForecastSummaryByYearMonth = async (year, month) => {
|
|
|
|
|
+ return request({
|
|
|
|
|
+ url: '/api/blade-factory/api/factory/salesForecastSummary/exportByYearMonth',
|
|
|
|
|
+ method: 'get',
|
|
|
|
|
+ responseType: 'blob',
|
|
|
|
|
+ params: { year, month }
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
* 销售预测数据导出(用户维度,按年月)
|
|
* 销售预测数据导出(用户维度,按年月)
|
|
|
* 对应后端:GET /api/blade-factory/api/factory/salesForecastSummary/user/export/{year}/{month}
|
|
* 对应后端:GET /api/blade-factory/api/factory/salesForecastSummary/user/export/{year}/{month}
|
|
|
* @param {number|string} year - 年份,如 2025
|
|
* @param {number|string} year - 年份,如 2025
|