import request from '@/utils/request'

// 查询配件入库记录列表
export function listLog(query) {
  return request({
    url: '/track/storeLog/list',
    method: 'get',
    params: query
  })
}

// 查询配件入库记录详细
export function getLog(id) {
  return request({
    url: '/track/storeLog/' + id,
    method: 'get'
  })
}

// 新增配件入库记录
export function addLog(data) {
  return request({
    url: '/track/storeLog',
    method: 'post',
    data: data
  })
}

// 修改配件入库记录
export function updateLog(data) {
  return request({
    url: '/track/storeLog',
    method: 'put',
    data: data
  })
}

// 删除配件入库记录
export function delLog(id) {
  return request({
    url: '/track/storeLog/' + id,
    method: 'delete'
  })
}

// 导出配件入库记录
export function exportLog(query) {
  return request({
    url: '/track/storeLog/export',
    method: 'get',
    params: query
  })
}
