|
@@ -11,6 +11,8 @@ import request from '@/router/axios'
|
|
|
* @typedef {import('./types').ForecastSummaryItem} ForecastSummaryItem
|
|
|
* @typedef {import('./types').ForecastSummaryPageResponse} ForecastSummaryPageResponse
|
|
|
* @typedef {import('./types').ApprovalData} ApprovalData
|
|
|
+ * @typedef {import('./types').SalesForecastSummaryBatchSaveRequest} SalesForecastSummaryBatchSaveRequest
|
|
|
+ * @typedef {import('./types').SalesForecastSummaryBatchSaveResponse} SalesForecastSummaryBatchSaveResponse
|
|
|
*/
|
|
|
|
|
|
/**
|
|
@@ -179,3 +181,35 @@ export const approveForecastSummary = async (data) => {
|
|
|
data
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 销售预测汇总批量保存
|
|
|
+ * @param {SalesForecastSummaryBatchSaveRequest} data - 批量保存的数据列表
|
|
|
+ * @returns {Promise<SalesForecastSummaryBatchSaveResponse>} 批量保存结果响应(data 为 null,msg 为提示)
|
|
|
+ * @description 批量保存销售预测汇总数据,按后端约定返回通用响应结构
|
|
|
+ * @example
|
|
|
+ * const payload = [
|
|
|
+ * {
|
|
|
+ * year: 2025,
|
|
|
+ * month: 12,
|
|
|
+ * brandId: 2001,
|
|
|
+ * brandCode: 'BRAND-A001',
|
|
|
+ * brandName: '朝阳轮胎11111',
|
|
|
+ * itemId: 30001,
|
|
|
+ * itemCode: 'ITEM-8001',
|
|
|
+ * itemName: '高性能轿车轮胎',
|
|
|
+ * specs: '225/50R17',
|
|
|
+ * pattern: 'AS01',
|
|
|
+ * forecastQuantity: 1200.00,
|
|
|
+ * approvalStatus: 0
|
|
|
+ * }
|
|
|
+ * ]
|
|
|
+ * const res = await batchSaveSalesForecastSummary(payload)
|
|
|
+ */
|
|
|
+export const batchSaveSalesForecastSummary = async (data) => {
|
|
|
+ return request({
|
|
|
+ url: '/api/blade-factory/api/factory/salesForecastSummary/batchSave',
|
|
|
+ method: 'post',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|