72 lines
1.5 KiB
JavaScript
72 lines
1.5 KiB
JavaScript
/*
|
|
* @Author: zwq
|
|
* @Date: 2024-04-18 16:53:17
|
|
* @LastEditors: zwq
|
|
* @LastEditTime: 2025-02-17 15:47:58
|
|
* @Description:
|
|
*/
|
|
|
|
import request from '@/utils/request'
|
|
|
|
// 获得总成本统计-按日期分页
|
|
export function getCostSumPage(query) {
|
|
return request({
|
|
url: '/monitoring/cost-sum/page',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
// 更新总成本统计-按日期
|
|
export function updateCostSum(data) {
|
|
return request({
|
|
url: '/monitoring/cost-sum/update',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
// 获得原片成本统计成本查询分页
|
|
export function getRawCostStatisticsRealtimePage(query) {
|
|
return request({
|
|
url: '/monitoring/cost-sum/page',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 导出总成本统计-按日期 Excel
|
|
export function exportCostSumExcel(query) {
|
|
return request({
|
|
url: '/monitoring/cost-sum/export-excel',
|
|
method: 'get',
|
|
params: query,
|
|
responseType: 'blob'
|
|
})
|
|
}
|
|
|
|
// 导出原片成本统计-历史成本 Excel
|
|
export function exportRawCostStatisticsHisExcel(query) {
|
|
return request({
|
|
url: '/monitoring/cost-sum/export-excel',
|
|
method: 'get',
|
|
params: query,
|
|
responseType: 'blob'
|
|
})
|
|
}
|
|
|
|
// 获得成本首页 -获取首页数据
|
|
export function getData(query) {
|
|
return request({
|
|
url: '/monitoring/cost-homepage/getData',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 获得成本首页 -详细首页数据
|
|
export function getDetailData(query) {
|
|
return request({
|
|
url: '/monitoring/cost-homepage/getDetailData',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
} |