import request from "@/utils/request"

/** 隔离巡查登记 — 分页列表 */
export function listIsolationPatrol(query) {
  return request({
    url: "/tradeMarket/isolationPatrol/list",
    method: "get",
    params: query
  })
}

/** 详情 */
export function getIsolationPatrol(id) {
  return request({
    url: "/tradeMarket/isolationPatrol/" + id,
    method: "get"
  })
}

/** 新增 */
export function addIsolationPatrol(data) {
  return request({
    url: "/tradeMarket/isolationPatrol",
    method: "post",
    data
  })
}

/** 修改 */
export function updateIsolationPatrol(data) {
  return request({
    url: "/tradeMarket/isolationPatrol",
    method: "put",
    data
  })
}

/** 删除 */
export function delIsolationPatrol(ids) {
  return request({
    url: "/tradeMarket/isolationPatrol/" + ids,
    method: "delete"
  })
}

/** 在栏圈位下拉 */
export function listPatrolPenOptions() {
  return request({
    url: "/tradeMarket/isolationPatrol/penOptions",
    method: "get"
  })
}

/** 指定圈位在栏耳标 */
export function listPatrolPenEarTags(penId) {
  return request({
    url: "/tradeMarket/isolationPatrol/penEarTags",
    method: "get",
    params: { penId }
  })
}
