import request from "@/http/request";

// 查询工作
export const queryKateWorks = (params) => {
  return request({
    url: '/kate/queryKateWorks',
    method: 'post',
    data: params,
    timeout: 5000
  })
}
// 下发工作
export const initWorks = (params) => {
  return request({
    url: '/kate/initWorks',
    method: 'post',
    data: params,
    timeout: 5000
  })
}
// 查询当前工作
export const getCurrentWorks = (params) => {
  return request({
    url: '/kate/getCurrentWorks',
    method: 'post',
    data: params,
    timeout: 5000
  })
}
// 确认当前工作
export const confirmCurrentWork = (params) => {
  return request({
    url: '/kate/confirmCurrentWork',
    method: 'post',
    data: params,
    timeout: 5000
  })
}
// 获取图纸---定时显示
export const getImageOfWork = (params) => {
  return request({
    url: '/kate/getImageOfWork',
    method: 'post',
    data: params,
    timeout: 5000
  })
}
// 获取料盒及缺料
export const getBoxesAndLacks = (params) => {
  return request({
    url: '/kate/getBoxesAndLacks',
    method: 'post',
    data: params,
    timeout: 5000
  })
}
// 分页查询看板
export const queryKanbanByPage = (params) => {
  return request({
    url: '/kate/queryKanbanByPage',
    method: 'post',
    data: params,
    timeout: 5000
  })
}
// 生成看板需求
export const genClcKanbanRequirement = (params) => {
  return request({
    url: '/kate/genClcKanbanRequirement',
    method: 'post',
    data: params,
    timeout: 5000
  })
}
// 请求图纸---产线扫码
export const requestImageDetail = (params) => {
  return request({
    url: '/kate/requestImageDetail',
    method: 'post',
    data: params,
    timeout: 10000
  })
}
// 分页查询DBS
export const queryDbsByPage = (params) => {
  return request({
    url: '/kate/queryDbsByPage',
    method: 'post',
    data: params,
    timeout: 5000
  })
}
// 分页查询配料单
export const queryKittingBomByPage = (params) => {
  return request({
    url: '/kate/queryKittingBomByPage',
    method: 'post',
    data: params,
    timeout: 5000
  })
}
// 分页查询对应关系
export const queryRelationByPage = (params) => {
  return request({
    url: '/kate/queryRelationByPage',
    method: 'post',
    data: params,
    timeout: 5000
  })
}