335 lines
7.1 KiB
JavaScript
335 lines
7.1 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 分页查询所有的订单信息
|
|
export function getOrderListApi(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/getPageList',
|
|
method: 'get',
|
|
params: query
|
|
|
|
})
|
|
}
|
|
// 分页查询所有的订单信息
|
|
export function getSumPayMoneyApi(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/sumPayMoney',
|
|
method: 'get',
|
|
params: query
|
|
|
|
})
|
|
}
|
|
|
|
// 查询订单信息
|
|
export function getOrderInfo(orderId) {
|
|
return request({
|
|
url: 'backendApi/order/info/' + orderId,
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
export function getTradingPageApi(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/trading',
|
|
method: 'get',
|
|
params: query
|
|
|
|
})
|
|
}
|
|
|
|
|
|
export function getTradingOnsPageApi(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/tradingList',
|
|
method: 'get',
|
|
params: query
|
|
|
|
})
|
|
}
|
|
// 油站端 - 财务报表 -交易对账-交易明细 表格数据
|
|
export function transactionList(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/transactionList',
|
|
method: 'get',
|
|
params: query
|
|
|
|
})
|
|
}
|
|
|
|
|
|
export function getInstituionListApi(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/runningWaterByInstituion',
|
|
method: 'get',
|
|
params: query
|
|
|
|
})
|
|
}
|
|
|
|
export function getNoneListApi(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/runningWaterByNone',
|
|
method: 'get',
|
|
params: query
|
|
|
|
})
|
|
}
|
|
|
|
export function getDayListApi(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/runningWaterByDay',
|
|
method: 'get',
|
|
params: query
|
|
|
|
})
|
|
}
|
|
export function getDayDatyListApi(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/getRunningWaterByDayData',
|
|
method: 'get',
|
|
params: query
|
|
|
|
})
|
|
}
|
|
//统计
|
|
export function getRunningWaterByDataApi(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/runningWaterByData',
|
|
method: 'get',
|
|
params: query
|
|
|
|
})
|
|
}
|
|
//统计
|
|
export function getRunningWaterByTissueApi(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/runningWaterByTissue',
|
|
method: 'get',
|
|
params: query
|
|
|
|
})
|
|
}
|
|
|
|
export function getmyDataApi(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/getmyData',
|
|
method: 'get',
|
|
params: query
|
|
|
|
})
|
|
}
|
|
|
|
//统计
|
|
export function getTissueByDataApi(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/getTradingData',
|
|
method: 'get',
|
|
params: query
|
|
|
|
})
|
|
}
|
|
// 油站端- 交易明细-统计数据
|
|
export function orderStatistics(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/orderStatistics',
|
|
method: 'get',
|
|
params: query
|
|
|
|
})
|
|
}
|
|
|
|
|
|
export function exportExcelTradingApi(data) {
|
|
return request({
|
|
url: 'business/allOrderInfo/tradingExportExcel',
|
|
method: 'post',
|
|
responseType: 'blob', // 表明响应类型为二进制流
|
|
data: data // 通过 data 参数传递需要的数据
|
|
});
|
|
}
|
|
|
|
|
|
export function exportExcelTissueApi(data) {
|
|
return request({
|
|
url: 'business/allOrderInfo/runningWaterByTissueExportExcel',
|
|
method: 'post',
|
|
responseType: 'blob', // 表明响应类型为二进制流
|
|
data: data // 通过 data 参数传递需要的数据
|
|
});
|
|
}
|
|
|
|
export function exportExcelOilDeptApi(data) {
|
|
return request({
|
|
url: 'business/allOrderInfo/runningWaterByOilDeptExportExcel',
|
|
method: 'post',
|
|
responseType: 'blob', // 表明响应类型为二进制流
|
|
data: data // 通过 data 参数传递需要的数据
|
|
});
|
|
}
|
|
|
|
export function exportExcelDayApi(data) {
|
|
return request({
|
|
url: 'business/allOrderInfo/runningWaterByDayExportExcel',
|
|
method: 'post',
|
|
responseType: 'blob', // 表明响应类型为二进制流
|
|
data: data // 通过 data 参数传递需要的数据
|
|
});
|
|
}
|
|
|
|
// 油站首页核心数据
|
|
export function getTotalAmount() {
|
|
return request({
|
|
url: 'business/allOrderInfo/getTotalAmount',
|
|
method: 'get',
|
|
});
|
|
}
|
|
|
|
// 油站首页数据展示
|
|
export function getDataBoard(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/getDataBoard',
|
|
method: 'get',
|
|
params:query
|
|
});
|
|
}
|
|
|
|
// 油站首页数据分析
|
|
export function getDataAnalysis(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/getDataAnalysis',
|
|
method: 'get',
|
|
params:query
|
|
});
|
|
}
|
|
|
|
// 油站首页 数据分析 第一个饼状图
|
|
export function getOilPercentage(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/getOilPercentage',
|
|
method: 'get',
|
|
params:query
|
|
});
|
|
}
|
|
|
|
// 油站首页 数据分析 第二个饼状图
|
|
export function getOilAndGoodsPercentage(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/getOilAndGoodsPercentage',
|
|
method: 'get',
|
|
params:query
|
|
});
|
|
}
|
|
|
|
|
|
// 油站首页 数据分析 第三个饼状图
|
|
export function getOilAndGoodsAndVipAndPoints(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/getOilAndGoodsAndVipAndPoints',
|
|
method: 'get',
|
|
params:query
|
|
});
|
|
}
|
|
|
|
// 油站首页数据展示
|
|
export function getDataShow(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/getDataShow',
|
|
method: 'get',
|
|
params:query
|
|
});
|
|
}
|
|
|
|
// 油站首页数据展示
|
|
export function getDataCount(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/getDataCount',
|
|
method: 'get',
|
|
params:query
|
|
});
|
|
}
|
|
// 根据字典类型查询字典数据信息
|
|
export function getDicts(dictType) {
|
|
return request({
|
|
url: '/system/dict/data/type/' + dictType,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 根据字典类型查询字典数据信息
|
|
export function getStaffByStorId() {
|
|
return request({
|
|
url: '/business/allOrderInfo/getStaffByStorId',
|
|
method: 'post'
|
|
})
|
|
}
|
|
|
|
//油站交易对账导出
|
|
export function exportExcelOrderMsgsApi(data) {
|
|
return request({
|
|
url: 'business/allOrderInfo/exportExcelOrderMsgApi',
|
|
method: 'post',
|
|
responseType: 'blob', // 表明响应类型为二进制流
|
|
data: data // 通过 data 参数传递需要的数据
|
|
});
|
|
}
|
|
export function exportExcelBackOrderMsgsApi(data) {
|
|
return request({
|
|
url: 'business/allOrderInfo/exportExcelBackOrderMsgsApi',
|
|
method: 'post',
|
|
responseType: 'blob', // 表明响应类型为二进制流
|
|
data: data // 通过 data 参数传递需要的数据
|
|
});
|
|
}
|
|
|
|
export function getTradingNewPageApi(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/tradingNewList',
|
|
method: 'get',
|
|
params: query
|
|
|
|
})
|
|
}
|
|
export function getTissueByDataNewsApi(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/getTradingNewData',
|
|
method: 'get',
|
|
params: query
|
|
|
|
})
|
|
}
|
|
|
|
export function getInstituionListApi2(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/getInstituionListApi2',
|
|
method: 'get',
|
|
params: query
|
|
|
|
})
|
|
}
|
|
|
|
export function getInstituionListApi6(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/getInstituionListApi3',
|
|
method: 'get',
|
|
params: query
|
|
|
|
})
|
|
}
|
|
export function getInstituionListApi7(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/getInstituionListApi7',
|
|
method: 'get',
|
|
params: query
|
|
|
|
})
|
|
}
|
|
export function getInstituionListApi9(query) {
|
|
return request({
|
|
url: 'business/allOrderInfo/getInstituionListApi9',
|
|
method: 'get',
|
|
params: query
|
|
|
|
})
|
|
}
|
|
|