import { post, get } from '@/utils/request'

// 订单管理
// 订单退款
export const refundOrder = (params) => post('/admin/crm/refundOrder', params)

// vip资讯订单退款
export const refundVipNewsOrder = (params) => post('/admin/crm/refundVipNewsOrder', params)

// 查询订单列表
// export const queryOrderList = (params) => post('/admin/crm/queryOrderList', params)

// 查询签约协议
export const queryContractList = (params) => get('/admin/crm/queryContractList', params)

// 后台查询订单汇总
export const queryOrderSummary = (params) => post('/admin/crm/order/orderSummary', params)

// 营业部
export const getDept = (params) => get('/admin/rbac/dept/listAll', params)
// 营业部列表
export const getDeptList = (params) => get('/admin/rbac/dept/list', params)

// 查询定价策略
export const queryPricing = (params) => get('/system/queryPricingStrategyDetail', params)

// 后台查询投顾列表
export const queryTg = (params) => post('/admin/user/tg-info/list', params)

// 单品提拥订单审核
export const auditTyOrder = (params) => post('/admin/crm/auditTyOrder', params)

// 查询保证金支付订单清算状态：true已清算，订单支持部分退 false未清算，订单不支持部分退，必须全部退
export const queryMarginOrderStatus = (params) => get('/admin/crm/queryMarginOrderStatus', params)

// 查询10个交易日低于签约门槛的佣金支付订单
export const queryUnderOrderList = (params) => get('/admin/crm/queryUnderOrderList', params)

export const queryOrderList = (params) => post('/backend/order/queryOrderList', params)
export const toRefundApplyCheck = (params) => post('/backend/order/refundApplyCheck', params)
export const toRefundApply = (params) => post('/backend/order/refundApply', params)
export const toRefundForce = (params) => post('/backend/order/refundForce', params)
export const unSubscribe = (params) => get('/backend/order/unSubscribe', params)