From f9e6eb6fc2c2e0c2a2b17238b817fcbfcb6bab56 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 10 八月 2026 16:38:45 +0800
Subject: [PATCH] feat(erp): 添加采购来票管理和付款关联功能
---
src/api/mes/pro/ai/index.ts | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/api/mes/pro/ai/index.ts b/src/api/mes/pro/ai/index.ts
index d632e91..2215dc4 100644
--- a/src/api/mes/pro/ai/index.ts
+++ b/src/api/mes/pro/ai/index.ts
@@ -65,33 +65,33 @@
const BASE = '/mes/pro/ai';
/** AI 鐗╂枡鐭己棰勬祴 */
-export function predictMaterial(workOrderId: number) {
+export function predictMaterial(workOrderId?: number, mpsId?: number) {
return requestClient.post<MesProAiApi.PredictMaterialRespVO>(
`${BASE}/predict-material`,
- { workOrderId },
+ { workOrderId, mpsId },
);
}
/** AI 鐢熶骇鏃堕暱棰勬祴 */
-export function predictDuration(workOrderId: number) {
+export function predictDuration(workOrderId?: number, mpsId?: number) {
return requestClient.post<MesProAiApi.PredictDurationRespVO>(
`${BASE}/predict-duration`,
- { workOrderId },
+ { workOrderId, mpsId },
);
}
/** AI 鐢熶骇椋庨櫓棰勬祴 */
-export function predictRisk(workOrderId: number) {
+export function predictRisk(workOrderId?: number, mpsId?: number) {
return requestClient.post<MesProAiApi.PredictRiskRespVO>(
`${BASE}/predict-risk`,
- { workOrderId },
+ { workOrderId, mpsId },
);
}
/** AI 鎸夋椂浜や粯棰勬祴 */
-export function predictDelivery(workOrderId: number) {
+export function predictDelivery(workOrderId?: number, mpsId?: number) {
return requestClient.post<MesProAiApi.PredictDeliveryRespVO>(
`${BASE}/predict-delivery`,
- { workOrderId },
+ { workOrderId, mpsId },
);
}
--
Gitblit v1.9.3