import request from '@/config/axios'

// 工序质检分页查询
export const getProcessQualityPage = (params: any) => {
  return request.get({ url: '/mes/process-quality/page', params })
}

// 获取工序质检详情
export const getProcessQuality = (id: number) => {
  return request.get({ url: '/mes/process-quality/get', params: { id } })
}

// 新增工序质检
export const createProcessQuality = (data: any) => {
  return request.post({ url: '/mes/process-quality/create', data })
}

// 修改工序质检
export const updateProcessQuality = (data: any) => {
  return request.put({ url: '/mes/process-quality/update', data })
}

// 删除工序质检
export const deleteProcessQuality = (id: number) => {
  return request.delete({ url: '/mes/process-quality/delete', params: { id } })
}

// 获取工序路线列表
export const getProcessRouteList = () => {
  return request.get({ url: '/mes/process-route/simple-list' })
}
