From e32530e459950ce5b294f39fd9d04676d1074ea8 Mon Sep 17 00:00:00 2001 From: zwq Date: Sat, 14 Sep 2024 09:02:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/cost/allCost.js | 54 ++++ .../cost/costStatistics/add-or-updata.vue | 98 +++--- src/views/cost/costStatistics/index.vue | 284 +++++++++++------- src/views/cost/deep/costDeepEnergy/index.vue | 5 +- .../cost/deep/costDeepOthercostHis/index.vue | 5 +- .../cost/deep/costDeepOthercostLog/index.vue | 10 +- .../cost/deep/costDeepOthercostRule/index.vue | 7 +- .../cost/deep/costDeepRatioHis/index.vue | 5 +- src/views/cost/deep/costStatistics/index.vue | 5 +- src/views/cost/raw/costEnergy/index.vue | 5 +- src/views/cost/raw/costMaterial/index.vue | 5 +- .../cost/raw/costOriginRatioHis/index.vue | 5 +- src/views/cost/raw/costOthercostHis/index.vue | 5 +- src/views/cost/raw/costOthercostLog/index.vue | 10 +- .../cost/raw/costOthercostRule/index.vue | 7 +- src/views/cost/raw/costStatistics/index.vue | 5 +- 16 files changed, 303 insertions(+), 212 deletions(-) create mode 100644 src/api/cost/allCost.js diff --git a/src/api/cost/allCost.js b/src/api/cost/allCost.js new file mode 100644 index 00000000..81500a8d --- /dev/null +++ b/src/api/cost/allCost.js @@ -0,0 +1,54 @@ +/* + * @Author: zwq + * @Date: 2024-04-18 16:53:17 + * @LastEditors: zwq + * @LastEditTime: 2024-09-06 14:35:13 + * @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' + }) +} diff --git a/src/views/cost/costStatistics/add-or-updata.vue b/src/views/cost/costStatistics/add-or-updata.vue index 598fc544..b61d383d 100644 --- a/src/views/cost/costStatistics/add-or-updata.vue +++ b/src/views/cost/costStatistics/add-or-updata.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: zwq - * @LastEditTime: 2024-04-19 16:59:45 + * @LastEditTime: 2024-09-11 15:49:14 * @Description: -->