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