|
@@ -18,6 +18,7 @@ import request from '@/router/axios'
|
|
|
* @typedef {import('./types').SalesForecastMainListQueryParams} SalesForecastMainListQueryParams
|
|
|
* @typedef {import('./types').SalesForecastMainListResponse} SalesForecastMainListResponse
|
|
|
* @typedef {import('./types').SalesForecastTemplateResponse} SalesForecastTemplateResponse
|
|
|
+ * @typedef {import('./types').SalesForecastMainDetailResponse} SalesForecastMainDetailResponse
|
|
|
*/
|
|
|
|
|
|
/**
|
|
@@ -324,3 +325,24 @@ export const exportSalesForecastTemplate = async (current = 1, size = 10, params
|
|
|
params: { current, size, ...params }
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 获取销售预测主表详情
|
|
|
+ * 对应后端:GET /api/blade-factory/api/factory/salesForecastSummary/forecast/detail
|
|
|
+ * @param {string|number} id - 主表ID
|
|
|
+ * @returns {Promise<SalesForecastMainDetailResponse>} 详情响应(data: SalesForecastMainRecord)
|
|
|
+ * @description 根据 ID 查询销售预测主表详情,包含 pcBladeSalesForecastSummaryList 子项
|
|
|
+ * @example
|
|
|
+ * const { data } = await getSalesForecastForecastDetail('1966138542639833089')
|
|
|
+ * if (data.success && data.code === 200) {
|
|
|
+ * const detail = data.data
|
|
|
+ * console.log('主表详情', detail)
|
|
|
+ * }
|
|
|
+ */
|
|
|
+export const getSalesForecastForecastDetail = async (id) => {
|
|
|
+ return request({
|
|
|
+ url: '/api/blade-factory/api/factory/salesForecastSummary/forecast/detail',
|
|
|
+ method: 'get',
|
|
|
+ params: { id }
|
|
|
+ })
|
|
|
+}
|