import request from '@/utils/request'

export function xppLyOut(data) {
  return request({
    url: 'api/xppRecord/xppLyOut',
    method: 'post',
    data
  })
}
export function xpphybf(data) {
  return request({
    url: 'api/xppRecord/xpphybf',
    method: 'post',
    data
  })
}
export function xppHyIn(data) {
  return request({
    url: 'api/xppRecord/xppHyIn',
    method: 'post',
    data
  })
}
export function changeFz(data) {
  return request({
    url: 'api/xppRecord/changeFz',
    method: 'post',
    data
  })
}
export function collectFromPass(data) {
  return request({
    url: 'api/xppRecord/collectFromPass',
    method: 'post',
    data
  })
}
export function addAsnDetail(ids) {
  return request({
    url: 'api/xppRecord/addAsnDetail',
    method: 'post',
    data:ids
  })
}
export function cancelReceiv(data) {
  return request({
    url: 'api/xppRecord/cancelReceiv',
    method: 'post',
    data
  })
}
export function xppBd(data) {
  return request({
    url: 'api/xppRecord/xppBd',
    method: 'post',
    data
  })
}
export function add(data) {
  return request({
    url: 'api/xppRecord',
    method: 'post',
    data
  })
}

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

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

export default { add, edit, del, collectFromPass, addAsnDetail,xppLyOut,xppHyIn,changeFz,cancelReceiv,xppBd }
