import request from '@/utils/request'

// 查询淘宝订单列表
export function listOrder(query) {
  return request({
    url: '/api/oms-api/wei/order/list',
    method: 'get',
    params: query
  })
}

// 查询订单详细
export function getOrder(id) {
  return request({
    url: '/api/oms-api/wei/order/' + id,
    method: 'get'
  })
}



// 接口拉取订单
export function pullOrder(data) {
  return request({
    url: '/api/oms-api/wei/order/pull_order',
    method: 'post',
    data: data
  })
}

export function pullOrderDetail(data) {
  return request({
    url: '/api/oms-api/wei/order/pull_order_detail',
    method: 'post',
    data: data
  })
}

export function pushOms(data) {
  return request({
    url: '/api/oms-api/wei/order/push_oms',
    method: 'post',
    data: data
  })
}
// 确认订单
export function confirmOrder(data) {
  return request({
    url: '/api/oms-api/wei/order/confirmOrder',
    method: 'post',
    data: data
  })
}
