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

// 质检管理_质量情况_查询数据
export function selecttable(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, check9, value9, pageCurrent, pageSize) {
  return request({
    url: '',
    method: 'post',
    data: {
      UserID: state.state.user.id,
      ModularID: router.currentRoute.path,
      type: '1',
      name: '质检管理_质量情况_金工_查询数据',
      param: '机床流水号_check=0&机床流水号=' + value1 + '&组件流水号_check=0&组件流水号=' + value2 + '&零件名称_check=' + check3 + '&零件名称=' + value3 +
        '&质检类型代码_check=1&质检类型代码=10&开始时间_check=' + check5 + '&开始时间=' + value5 + '&结束时间_check=' + check6 + '&结束时间=' + value6 + '&质检情况_check=' + check7 + '&质检情况=' + value7 + '&人员编号_check=0&人员编号=' + value8 + '&处理结果_check=' + check9 + '&处理结果=' + value9 + `&PageCurrent=${pageCurrent}&PageSize=${pageSize}&PageCount=1111=int=output&ItemCount=1111=int=output`
    }
  })
}

// 质检管理_质量情况_查询数据
export function getprocessingresult() {
  return request({
    url: '',
    method: 'post',
    data: {
      UserID: state.state.user.id,
      ModularID: router.currentRoute.path,
      type: '1',
      name: '质检管理_不合格处理_查询数据'
    }
  })
}
