|  | @@ -19,6 +19,8 @@ import request from '@/router/axios'
 | 
	
		
			
				|  |  |   * @typedef {import('./types').SalesForecastMainListResponse} SalesForecastMainListResponse
 | 
	
		
			
				|  |  |   * @typedef {import('./types').SalesForecastTemplateResponse} SalesForecastTemplateResponse
 | 
	
		
			
				|  |  |   * @typedef {import('./types').SalesForecastMainDetailResponse} SalesForecastMainDetailResponse
 | 
	
		
			
				|  |  | + * @typedef {import('./types').SalesForecastMainUpdateRequest} SalesForecastMainUpdateRequest
 | 
	
		
			
				|  |  | + * @typedef {import('./types').SalesForecastMainUpdateResponse} SalesForecastMainUpdateResponse
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  /**
 | 
	
	
		
			
				|  | @@ -174,7 +176,34 @@ export const addSalesForecastMain = async (data) => {
 | 
	
		
			
				|  |  |      data
 | 
	
		
			
				|  |  |    })
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +/**
 | 
	
		
			
				|  |  | + * 更新销售预测主表(main-update)
 | 
	
		
			
				|  |  | + * 对应后端:PUT /api/blade-factory/api/factory/salesForecastSummary/main-update
 | 
	
		
			
				|  |  | + * @param {SalesForecastMainUpdateRequest} data - 更新请求体(包含主表 id、年月、审批状态及明细列表)
 | 
	
		
			
				|  |  | + * @returns {Promise<SalesForecastMainUpdateResponse>} 更新响应(data 通常为 null,msg 为提示文本)
 | 
	
		
			
				|  |  | + * @example
 | 
	
		
			
				|  |  | + * const payload = {
 | 
	
		
			
				|  |  | + *   id: 1965692513192693762,
 | 
	
		
			
				|  |  | + *   year: 2025,
 | 
	
		
			
				|  |  | + *   month: 9,
 | 
	
		
			
				|  |  | + *   approvalStatus: 1,
 | 
	
		
			
				|  |  | + *   pcBladeSalesForecastSummaryList: [
 | 
	
		
			
				|  |  | + *     { id: 1965692513603735554, brandId: 101, brandCode: 'BD-001', brandName: '品牌A1111111111', itemId: 2001, itemCode: 'IT-2001', itemName: '刀片型号A1', specs: '100x200mm', pattern: '标准花纹', forecastQuantity: 500.00, approvalStatus: 0 },
 | 
	
		
			
				|  |  | + *     { id: 1965692513633095681, brandId: 101, brandCode: 'BD-001', brandName: '品牌A11111111111', itemId: 2002, itemCode: 'IT-2002', itemName: '刀片型号A2', specs: '150x250mm', pattern: '加强花纹', forecastQuantity: 300.00, approvalStatus: 0 },
 | 
	
		
			
				|  |  | + *     { id: 1965692513641484290, brandId: 102, brandCode: 'BD-002', brandName: '品牌B11111111111', itemId: 3001, itemCode: 'IT-3001', itemName: '刀片型号B1', specs: '200x300mm', pattern: '特殊花纹', forecastQuantity: 200.00, approvalStatus: 0 }
 | 
	
		
			
				|  |  | + *   ]
 | 
	
		
			
				|  |  | + * }
 | 
	
		
			
				|  |  | + * const res = await updateSalesForecastMain(payload)
 | 
	
		
			
				|  |  | + * // 可能返回:{ code: 400, success: false, data: null, msg: '修改失败,请稍后重试' }
 | 
	
		
			
				|  |  | + */
 | 
	
		
			
				|  |  | +export const updateSalesForecastMain = async (data) => {
 | 
	
		
			
				|  |  | +  return request({
 | 
	
		
			
				|  |  | +    url: '/api/blade-factory/api/factory/salesForecastSummary/main-update',
 | 
	
		
			
				|  |  | +    method: 'put',
 | 
	
		
			
				|  |  | +    data
 | 
	
		
			
				|  |  | +  })
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | + 
 | 
	
		
			
				|  |  |  /**
 | 
	
		
			
				|  |  |   * 获取预测汇总详情
 | 
	
		
			
				|  |  |   * @param {string|number} forecastSummaryId - 预测汇总ID
 |