import request from '@/utils/request'

// 查询报价列表
export function listInfo(query) {
  return request({
    url: '/price/info/list',
    method: 'get',
    params: query
  })
}

// 查询报价详细
export function getInfo(id) {
  return request({
    url: '/price/info/' + id,
    method: 'get'
  })
}

// 新增报价
export function addInfo(data) {
  return request({
    url: '/price/info',
    method: 'post',
    data: data
  })
}

// 修改报价
export function updateInfo(data) {
  return request({
    url: '/price/info',
    method: 'put',
    data: data
  })
}

// 删除报价
export function delInfo(id) {
  return request({
    url: '/price/info/' + id,
    method: 'delete'
  })
}

// 导出报价
export function exportInfo(query) {
  return request({
    url: '/price/info/export',
    method: 'get',
    params: query
  })
}
//查询字段所有枚举值
export function getFieldName(name){
  return request({
    url: `/price/info/field/${name}`,
    method: 'get'
  })
}