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

export function searchTable(check, partsName, check1, supplierNameValue, check2, start, end, pageCurrent, pageSize) {
  return request({
    url: '',
    method: 'post',
    data: {
      UserID: state.state.user.id,
      ModularID: router.currentRoute.path,
      type: '1',
      name: '采购管理_离线合同_采购件_查询数据',
      param: '名称_check=' + check + '&名称=' + partsName + '&合同及供应商_check=' + check1 + '&合同及供应商=' + supplierNameValue + '&时间段_check=' + check2 + '&开始时间=' + start + '&结束时间=' + end,
      Pagination: pageCurrent + '&' + pageSize
    }
  })
}
