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

// 初始化合同
export function initArrivalStateContact() {
  return request({
    url: '',
    method: 'post',
    data: {
      UserID: state.state.user.id,
      ModularID: router.currentRoute.path,
      type: '1',
      name: '车间管理_到货情况合同号_查询数据'
    }
  })
}
// 查询到货情况
export function searchArrivalState(check1, num1, check2, num2, num3, pageCurrent, pageSize) {
  return request({
    url: '',
    method: 'post',
    data: {
      UserID: state.state.user.id,
      ModularID: router.currentRoute.path,
      type: '1',
      name: '车间管理_到货情况_查询数据_新_成组采购',
      param: `零件名_check=${check1}&零件名=${num1}&采购时间_check=${check2}&采购开始时间=${num2}&采购结束时间=${num3}`,
      Pagination: pageCurrent + '&' + pageSize
    }
  })
}
