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

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

//维修导出
export function pageExport(data, name) {
  return postBlob({
    url: '/settle/norm/repair/list/export',
    data,
    name
  })
}

// 新增
export function add(data) {
  return request({
    url: `/settle/norm/repair/add`,
    method: 'post',
    data
  })
}

// 编辑
export function edit(data) {
  return request({
    url: `/settle/norm/repair/edit`,
    method: 'post',
    data
  })
}