import { request } from '@/utils/request'

export function listSubOrder(query) {
  return request({
    url: '/order/subOrder/list',
    method: 'get',
    params: query
  })
}

export function getSubOrderInfo(id) {
  return request({
    url: '/order/subOrder/getInfo',
    method: 'get',
    params: { id }
  })
}

export function dispatchSubOrder(data) {
  return request({
    url: '/order/subOrder/dispatch',
    method: 'post',
    data: data
  })
}

export function cancelSubOrder(data) {
  return request({
    url: '/order/subOrder/cancel',
    method: 'post',
    data: data
  })
}

export function remarkSubOrder(data) {
  return request({
    url: '/order/subOrder/remark',
    method: 'post',
    data: data
  })
}

export function confirmSubOrder(data) {
  return request({
    url: '/order/subOrder/confirm',
    method: 'post',
    data: data
  })
}

export function nursingSummarySubOrder(data) {
  return request({
    url: '/order/subOrder/nursingSummary',
    method: 'post',
    data: data
  })
}
