Newer
Older
ProductionSysFront / src / api / factoryManager / dataPreentry.js
dutingting on 1 Jun 2023 1 KB 接口联调
// 数据预录入接口
import request from '@/utils/request'

// 列表
export function getFactoryManagerList(data) {
  return request({
    url: `well/pre/listPage?offset=${data.offset}&limit=${data.limit}`,
    method: 'post',
    data
  })
}

// 新增
export function addFactoryManagerList(data) {
  return request({
    url: 'well/pre/add',
    method: 'post',
    data
  })
}

// 编辑
export function editFactoryManagerList(data) {
  return request({
    url: 'well/pre/update',
    method: 'post',
    data
  })
}

// 删除
export function delFactoryManagerList(data) {
  return request({
    url: `well/pre/delete?id=${data.id}`,
    method: 'get'
  })
}

// 批量导入
export function importFactoryManagerList(fileobj) {
  const param = new FormData()
  param.append('file', fileobj)
  return request({
    url: 'well/pre/batchImport',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data: param
  })
}

// 井类型
export function getWellType() {
  return request({
    url: 'dict/code/sluicewellType',
    method: 'get'
  })
}