import request from '@/config/axios'

/**
 * 工序执行状态枚举
 */
export enum ExecutionStatus {
  IN_PROGRESS = 0, // 进行中
  COMPLETED = 1, // 已完成
  PAUSED = 2 // 已暂停
}

/**
 * @author:huangtianci
 * 获取工序执行记录分页
 */
export function YVHgetOperationExecutionPage(params: any) {
  return request.get({ url: '/mes/operation-execution/page', params })
}

/**
 * @author:huangtianci
 * 创建工序执行记录
 */
export function YVHcreateOperationExecution(data: any) {
  return request.post({ url: '/mes/operation-execution/create', data })
}

/**
 * @author:huangtianci
 * 更新工序执行记录
 */
export function YVHupdateOperationExecution(data: any) {
  return request.put({ url: '/mes/operation-execution/update', data })
}
