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

export function searchTable(num, time, time1, order, orderName, check, name, check1, partNumber, pageCurrent, pageSize) {
  return request({
    url: '',
    method: 'post',
    data: {
      UserID: state.state.user.id,
      ModularID: router.currentRoute.path,
      type: '1',
      name: '工艺月底工时核算_查询数据_最新',
      param: '筛选=' + num + '&开始时间=' + time + '&结束时间=' + time1 + '&排序名称=' + order + '&排序方式=' + orderName + '&操作工_check=' + check + '&操作工=' + name + '&零件图号_check=' + check1 + '&零件图号=' + partNumber,
      Pagination: pageCurrent + '&' + pageSize
    }
  })
}
export function searchCount(num, time, time1, check, name, check1, partNumber) {
  return request({
    url: '',
    method: 'post',
    data: {
      UserID: state.state.user.id,
      ModularID: router.currentRoute.path,
      type: '1',
      name: '工艺月底工时核算_查询数据_统计数据',
      param: '筛选=' + num + '&开始时间=' + time + '&结束时间=' + time1 + '&操作工_check=' + check + '&操作工=' + name + '&零件图号_check=' + check1 + '&零件图号=' + partNumber
    }
  })
}
export function searchHour(num, order, orderName) {
  return request({
    url: '',
    method: 'post',
    data: {
      UserID: state.state.user.id,
      ModularID: router.currentRoute.path,
      type: '1',
      name: '工艺月底工时核算_查询数据_最新_三表查询',
      param: '工艺计划流水号=' + num + '&排序名称=' + order + '&排序方式=' + orderName
    }
  })
}
export function searchHourCount(num) {
  return request({
    url: '',
    method: 'post',
    data: {
      UserID: state.state.user.id,
      ModularID: router.currentRoute.path,
      type: '1',
      name: '工艺月底工时核算_查询数据_统计数据_三表查询',
      param: '工艺计划流水号=' + num
    }
  })
}
