import request, { postBlob, getBlob, handleImport } from '@/utils/request'

// 获取列表
export function listPageV2(data) {
  return request({
    url: `/engin/project/repair/list?moduleId=${data.moduleId}`,
    method: 'post',
    data
  })
}

//导出
export function pageExport(data, name) {
  return postBlob({
    url: '/engin/project/repair/list/export',
    data,
    name
  })
}

// 保存
export function save(data) {
  return request({
    url: `/engin/project/repair/save`,
    method: 'post',
    data
  })
}

// 详情
export function getDetail(params) {
  return request({
    url: `/engin/project/repair/detail`,
    method: 'post',
    params
  })
}

// 获取辅材收费标准
export function getAuxiliaryList(data) {
  return request({
    url: `/material/norm/list`,
    method: 'post',
    data
  })
}

// 获取配件资料
export function getAttachmentList(data) {
  return request({
    url: `/websit/goods/p/list`,
    method: 'post',
    data
  })
}