import request from '@/utils/request'
import state from '@/store'
import router from '@/router'

export function searchtable(check1, dateRange0, dateRange1, check2, machineValue, check3, partsValue, check4, changeValue, pageCurrent, pageSize) {
  return request({
    url: '',
    method: 'post',
    data: {
      UserID: state.state.user.id,
      ModularID: router.currentRoute.path,
      type: '1',
      name: 'PDM_整改件合并查询_查询数据',
      param: `整改时间_check=${check1}&开始时间=${dateRange0}&结束时间=${dateRange1}&机床流水号_check=${check2}&机床流水号=${machineValue}&零件图号_check=${check3}&零件图号=${partsValue}&整改类型_check=${check4}&整改类型=${changeValue}`,
      Pagination: pageCurrent + '&' + pageSize
    }
  })
}
export function getmachine() {
  return request({
    url: '',
    method: 'post',
    data: {
      UserID: state.state.user.id,
      ModularID: router.currentRoute.path,
      type: '1',
      name: 'PDM_整改件合并查询_查询机床'
    }
  })
}
