import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/api/pick/list',
    method: 'get',
    params: query
  })
}

export function OffLineOrOnLine(data) {
  console.log(data)
  return request({
    url: '/api/pick/list/update',
    method: 'post',
    data
  })
}

export function CreatePick(data) {
  return request({
    url: '/api/pick/create',
    method: 'post',
    data
  })
}

export function fetchPickDetail(id) {
  return request({
    url: '/api/pick/detail',
    method: 'get',
    params: { id }
  })
}
