/*
 * @Author: Fly
 * @Date: 2025-12-10 10:06:13
 * @LastEditTime: 2025-12-25 16:58:40
 * @Description: 
 */
import request from '@/utils/request';
/**
 * 连锁店分页查询在线订单列表
 * @param {*} params 
 * @returns 
 */
export const getChainStoreOnlineorderPageApi = (params) => {
    return request({
        url: '/onlineorder/chain-business-page',
        method: 'get',
        params
    });
};

/**
 * 连锁店查询在线订单统计
 * @param {*} params 
 * @returns 
 */
export const getChainStoreOnlineorderStatisticsApi = (params) => {
    return request({
        url: `/onlineorder/chain-business-statistics`,
        method: 'get',
        params
    });
};

/**
 * 连锁店查询在线订单详情
 * @param {*} dayBillId 日账单ID
 * @returns 
 */
export const getBusinessDayBillInfoApi = (dayBillId) => {
    return request({
        url: `/businessDayBill/businessDayBill/info/${dayBillId}`,
        method: 'get'
    });
};

/**
 * 导出连锁店提现列表
 */
export const exportChainStoreOnlineorderApi = "/onlineorder/chain-business-export";




// ------------------ ----------------------

/**
 * 连锁店分页查询
 * @param {*} params 
 * @returns 
 */
export const getChainStorePageApi = (params) => {
    return request({
        url: '/business/business/partnerPage',
        method: 'get',
        params
    });
};



/**
 * 导出连锁店经营统计
 */
export const exportChainStoreBusinessStatisticsApi = "/businessDayBill/businessDayBill/chain-business-export"

/**
 * 连锁店查询经营统计
 * @param {*} params 
 * @returns 
 */
export const getChainStoreBusinessStatisticsApi = (params) => {
    return request({
        url: '/businessDayBill/businessDayBill/chain-business-getStatistics',
        method: 'get',
        params
    });
};


/**
 * 分页查询连锁店日账单列表
 * @param {*} params 
 * @returns 
 */
export const getChainStoreBillPageApi = (params) => {
    return request({
        url: '/businessDayBill/businessDayBill/chainBusinessPage',
        method: 'get',
        params
    });
};



// 连锁店排队订单
export const getChainSubsidyQueuePageApi = (params) => {
    return request({
        url: '/subsidy/subsidyQueue/chainPage',
        method: 'get',
        params
    });
};

// 连锁店排队订单统计
export const getChainSubsidyQueueStatisticsApi = (params) => {
    return request({
        url: '/subsidy/subsidyQueue/chainStatistics',
        method: 'get',
        params
    });
};


/**
 * 导出连锁店排队订单
 */
export const exportChainSubsidyQueueApi = "/subsidy/subsidyQueue/chainExport";





// 连锁获取日账单近N日统计信息
export const getChainBusinessSevenDayApi = (params) => {
    return request({
        url: '/businessDayBill/businessDayBill/chain-business-onSevenDay',
        method: 'get',
        params
    });
};

// 查看连锁商家日账单统计信息
export const getChainBusinessStatisticsApi = (params) => {
    return request({
        url: '/businessDayBill/businessDayBill/chain-business-getStatistics',
        method: 'get',
        params
    });
};


// 连锁店获取日账单今日和昨日统计信息
export const getChainBusinessDayApi = (params) => {
    return request({
        url: '/businessDayBill/businessDayBill/chain-business-onDay',
        method: 'get',
        params
    });
};









/**
 * 连锁店商城订单
 * @param {*} params 
 * @returns 
 */
export const getShopOrderpageApi = (params) => {
    return request({
        url: '/order/shopOrder/chain-page',
        method: 'get',
        params
    });
};




