import request from '@/utils/request'

// 初始化合同
export function initArrivalStateContact() {
  return request({
    url: '',
    method: 'post',
    data: {
      type: '1',
      name: '采购管理_采购请款表_查询数据'
    }
  })
}
// 查询到货情况
export function searchArrivalState(pageCurrent, pageSize, check1, num, check2, name) {
  return request({
    url: '',
    method: 'post',
    data: {
      type: '1',
      name: '采购管理_到货情况_查询数据',
      param: `采购合同流水号_check=${check1}&采购合同流水号=${num}&供应商名称_check=${check2}&供应商名称=${name}`,
      Pagination: pageCurrent + '&' + pageSize
    }
  })
}
// 查询到货情况
export function searchArrivalNum(num) {
  return request({
    url: '',
    method: 'post',
    data: {
      type: '1',
      name: '采购管理_合同物料到货情况_查询数据',
      param: `采购合同流水号=${num}`
    }
  })
}
