import request from '@/utils/request'

// 查询店铺订单列表
export function listOrder(query) {
  return request({
    url: '/api/erp-api/offline_order/list',
    method: 'get',
    params: query
  })
}

// 查询店铺订单详细
export function getOrder(id) {
  return request({
    url: '/api/erp-api/offline_order/' + id,
    method: 'get'
  })
}

// 新增店铺订单
export function addOrder(data) {
  return request({
    url: '/api/erp-api/offline_order/create',
    method: 'post',
    data: data
  })
}

export function pushOms(data) {
  return request({
    url: '/api/erp-api/offline_order/push_oms',
    method: 'post',
    data: data
  })
}
