import request from '@/utils/request'

// 查询财务审批列表
export const financeList = (data, query) => {
    return request({
        url: '/bussiness/salemain/financeList',
        method: 'post',
        data: data,
        params: query,
    })
}

// 获取订单审核列表
export const getOrderApprovalList = (data, query) => {
    return request({
        method: 'post',
        url: '/bussiness/salemain/orderList',
        data: data,
        params: query,
    })
}

// 订单回退
export const financeConfirmRefuse = (saleIds) => {
    return request({
        method: 'post',
        url: '/bussiness/salemain/financeConfirmRefuse',
        params: {
            saleIds: saleIds
        }
    })
}

// 财务审批
export const financeConfirm = (saleIds) => {
    return request({
        method: 'post',
        url: '/bussiness/salemain/financeConfirm',
        params: {
            saleIds: saleIds
        }
    })
}

// 查询订单分配列表--下面部分
export const disOrderDisDetailList = (salemainId) => {
    return request({
        method: 'post',
        url: '/bussiness/salemain/disOrderDisDetailList',
        params: {
            saleId: salemainId
        }
    })
}


// 订单审核-强制推送至OA
export const orderReviewSendOaQZ = (data) => {
    return request({
        url: '/bussiness/salemain/orderReviewSendOa',
        method: 'post',
        params: data
    })
}

// 订单审核-强制推送至分配
export const orderReviewForceOaToFenPei = (data) => {
    return request({
        method: 'post',
        url: '/bussiness/salemain/orderReviewForceOa',
        params: params,
    })
}


// 订单审核-回退
export const orderReviewBack = (saleIds) => {
    return request({
        method: 'post',
        url: '/bussiness/salemain/orderReviewBack',
        params: {
            id: saleIds
        }
    })
}