import request from '@/utils/request'

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

// 商务经理审批时获取详情，下面的商品列表
export const businessManagerReviewGoodsList = (salemainId) => {
    return request({
        method: 'post',
        url: '/bussiness/businessgoods/businessManagerReviewGoodsList',
        params: {
            saleId: salemainId
        }
    })
}

// 审批时获取详情-分开获取数据。分上面订单数据和下面商品数据。此接口为上面的订单数据
export const salemainDetailSWJL = (query) => {
    return request({
        method: 'get',
        url: '/bussiness/salemain/detail',
        params: query
    })
}

// 商务审批-审核
export const managerConfirm = (query) => {
    return request({
        method: 'post',
        url: '/bussiness/salemain/managerConfirm',
        params: query
    })
}


// 商务审批-回退
export const managerRefuse = (query) => {
    return request({
        method: 'post',
        url: '/bussiness/salemain/managerRefuse',
        params: query
    })
}
