|
@@ -346,3 +346,21 @@ export const getSalesForecastForecastDetail = async (id) => {
|
|
|
params: { id }
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 销售预测汇总审批
|
|
|
+ * 对应后端:POST /api/blade-factory/api/factory/salesForecastSummary/approve
|
|
|
+ * @param {{ id: string|number, approvalStatus: number, remark?: string, approvalComment?: string }} data - 审批参数
|
|
|
+ * @returns {Promise<SalesForecastSummaryBatchSaveResponse>} 操作响应(data: null,msg 提示信息)
|
|
|
+ * @description 入参支持 remark 或 approvalComment,内部统一映射为 remark
|
|
|
+ * @example
|
|
|
+ * await approveSalesForecastSummary({ id: 1965692513192693762, approvalStatus: 1, remark: '' })
|
|
|
+ */
|
|
|
+export const approveSalesForecastSummary = async (data) => {
|
|
|
+ const { id, approvalStatus, remark, approvalComment } = data || {}
|
|
|
+ return request({
|
|
|
+ url: '/api/blade-factory/api/factory/salesForecastSummary/approve',
|
|
|
+ method: 'post',
|
|
|
+ data: { id, approvalStatus, remark: remark ?? approvalComment ?? '' }
|
|
|
+ })
|
|
|
+}
|