oil-station/fuintAdmin/src/api/allOrder.js
2024-05-17 16:14:18 +08:00

148 lines
3.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 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 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 参数传递需要的数据
});
}