| | |
| | | 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 }, |
| | | ); |
| | | } |