import request from '@/utils/request'

// 查询问诊订单列表
export function listinquiryOrder(query) {
  return request({
    url: '/store/inquiryOrder/list',
    method: 'get',
    params: query
  })
}
export function myList(query) {
  return request({
    url: '/store/inquiryOrder/myList',
    method: 'get',
    params: query
  })
}
// 查询问诊订单详细
export function msglist(query) {
  return request({
    url: '/store/inquiryOrder/msgList',
    method: 'get',
    params: query
  })
}
// 查询问诊订单详细
export function getinquiryOrder(orderId) {
  return request({
    url: '/store/inquiryOrder/' + orderId,
    method: 'get'
  })
}
export function getDoctor(orderId) {
  return request({
    url: '/store/inquiryOrder/doctor/' + orderId,
    method: 'get'
  })
}

// 新增问诊订单
export function addinquiryOrder(data) {
  return request({
    url: '/store/inquiryOrder',
    method: 'post',
    data: data
  })
}
export function cancelOrder(data) {
  return request({
    url: '/store/inquiryOrder/cancelOrder',
    method: 'post',
    data: data
  })
}
export function refundOrder(data) {
  return request({
    url: '/store/inquiryOrder/refundOrder',
    method: 'post',
    data: data
  })
}


// 修改问诊订单
export function updateinquiryOrder(data) {
  return request({
    url: '/store/inquiryOrder',
    method: 'put',
    data: data
  })
}
//填写备注
export function writeRemark(data) {
  return request({
    url: '/store/inquiryOrder/writeRemark',
    method: 'post',
    data: data
  })
}
// 修改问诊订单
export function editStatus(data) {
  return request({
    url: '/store/inquiryOrder/editStatus',
    method: 'put',
    data: data
  })
}
// 删除问诊订单
export function delinquiryOrder(orderId) {
  return request({
    url: '/store/inquiryOrder/' + orderId,
    method: 'delete'
  })
}
export function logList(orderId) {
  return request({
    url: '/store/inquiryOrder/logList/' + orderId,
    method: 'get'
  })
}
// 导出问诊订单
export function exportinquiryOrder(query) {
  return request({
    url: '/store/inquiryOrder/export',
    method: 'get',
    params: query
  })
}
export function myExport(query) {
  return request({
    url: '/store/inquiryOrder/myExport',
    method: 'get',
    params: query
  })
}

export function exportMessageFeedback(query) {
  return request({
    url: '/store/inquiryOrder/messageFeedbackExport',
    method: 'get',
    params: query
  })
}