import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/bigItem',
    method: 'post',
    data
  })
}

export function queryBigItemAll(params) {
  return request({
    url: 'api/bigItem/queryBigItemAll',
    method: 'get',
    params
  })
}
export function queryBigItemAllInBomAccount() {
  return request({
    url: 'api/bigItem/queryBigItemAllInBomAccount',
    method: 'get'
  })
}



export function getBigItem(type) {
  return request({
    url: 'api/bigItem/getBigItem',
    method: 'post',
    data: type
  })
}

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

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

export default { add, edit, del, getBigItem,queryBigItemAll,queryBigItemAllInBomAccount}
