import service from './service' const axiosConfig = { url: null, method: 'post', data: null, showLoading: null, headers: { 'Content-Type': 'application/json' } } // 业务报表api export class BusinessReportApi { /** * 获取汇总列表 * @param {*}} params * @param {*} showLoading * @returns */ summaryGetList = (params, showLoading = true) => { return service.get('awl-analysis-service/order/shopSaleGatherQuery', { params, showLoading }) } /** *获取销售明细列表 * @param {*} params * @param {*} showLoading * @returns */ saleDetailedGetList = (params, showLoading = true) => { return service.get('/awl-analysis-service/order/shopSaleDetailQuery', { params, showLoading }) } /** *获取订单对账单信息 * @param {*} params * @param {*} showLoading * @returns */ getStatementInformationList = (params, showLoading = true) => { return service.get('/awl-analysis-service/order/statementAccountByOrder', { params, showLoading }) } /** *确认账单 * @param {*} param * @returns */ billConfirmed = (params, showLoading = true) => { axiosConfig.url = '/awl-analysis-service/order/manage/statementConfirmed' axiosConfig.data = params axiosConfig.showLoading = showLoading return service(axiosConfig) } /** *发票状态变更 * @param {*} params * @param {*} showLoading * @returns */ getConfirmedBillingCompList = (params, showLoading = true) => { return service.get('/awl-analysis-service/order/shopSaleChangeDetailQuery', { params, showLoading }) } /** *汇总确认 * @param {*} param * */ summaryConfirm = (param) => { return service.post('/awl-analysis-service/eval/prod/reply', param) } /** * 获取所有店铺 * @param {*} param * @returns */ getShopArr = (param) => { return service.get('/awl-basecommon-service/comDict/findByParams?dictGroup=platform_shop_name', param) } /** * 获取店铺名称list * @param {*} param * @returns */ getShopNameArr = (param) => { return service.post('/awl-basecommon-service/comDict/comboBoxGroupDicName', param) } } export default new BusinessReportApi()