import request from '@/utils/request'

export function getData(data) {
  return request({
    url: '/bxg/api/yxStoreAfterSales/sales/List',
    method: 'get',
    data
  })
}

export function salesCheck(data) {
  return request({
    url: '/bxg/api/yxStoreAfterSales/salesCheck',
    method: 'post',
    data
  })
}

export function rebackMoney(params) {
  return request({
    url: '/bxg/api/yxStoreAfterSales/makeMoney',
    method: 'post',
    params
  })
}
export function add(data) {
  return request({
    url: '/bxg/api/yxStoreAfterSales',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: '/bxg/api/yxStoreAfterSales/',
    method: 'delete',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: '/bxg/api/yxStoreAfterSales',
    method: 'put',
    data
  })
}
