修改
This commit is contained in:
56
src/api/base/energyQuantityManual.js
Normal file
56
src/api/base/energyQuantityManual.js
Normal file
@@ -0,0 +1,56 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获得分页数据
|
||||
export function energyQuantityManualPage(data) {
|
||||
return request({
|
||||
url: '/base/energy-quantity-manual/page',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 创建
|
||||
export function energyQuantityManualCreate(data) {
|
||||
return request({
|
||||
url: '/base/energy-quantity-manual/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新
|
||||
export function energyQuantityManualUpdate(data) {
|
||||
return request({
|
||||
url: '/base/energy-quantity-manual/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//获得能源抄表(手动)
|
||||
export function energyQuantityManualGet(query) {
|
||||
return request({
|
||||
url: '/base/energy-quantity-manual/get',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
//删除
|
||||
export function energyQuantityManualDelete(query) {
|
||||
return request({
|
||||
url: '/base/energy-quantity-manual/delete',
|
||||
method: 'delete',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
//导出
|
||||
export function energyQuantityManualExport(data) {
|
||||
return request({
|
||||
url: '/base/energy-quantity-manual/export-excel',
|
||||
method: 'post',
|
||||
data: data,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
78
src/api/cost/costEneryAutoReport.js
Normal file
78
src/api/cost/costEneryAutoReport.js
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* @Author: zwq
|
||||
* @Date: 2023-11-23 14:57:00
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2023-12-07 09:37:18
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建能源自动记录报
|
||||
export function createCostEneryAutoReport(data) {
|
||||
return request({
|
||||
url: '/extend/cost-enery-auto-report/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新能源自动记录报
|
||||
export function updateCostEneryAutoReport(data) {
|
||||
return request({
|
||||
url: '/extend/cost-enery-auto-report/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除能源自动记录报
|
||||
export function deleteCostEneryAutoReport(id) {
|
||||
return request({
|
||||
url: '/extend/cost-enery-auto-report/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得能源自动记录报
|
||||
export function getCostEneryAutoReport(id) {
|
||||
return request({
|
||||
url: '/extend/cost-enery-auto-report/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得能源自动记录报分页历史
|
||||
export function getCostEneryAutoReportPage(data) {
|
||||
return request({
|
||||
url: '/extend/cost-enery-auto-report/page',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 获得能源查询
|
||||
export function getCostEneryAutoPage(data) {
|
||||
return request({
|
||||
url: '/extend/cost-energy-search/getData',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 导出能源自动记录报 Excel
|
||||
export function exportCostEneryAutoReportExcel(data) {
|
||||
return request({
|
||||
url: '/extend/cost-enery-auto-report/export-excel',
|
||||
method: 'post',
|
||||
data: data,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出能源自动记录报 Excel 查询
|
||||
export function exportCostEneryExcel(data) {
|
||||
return request({
|
||||
url: '/extend/cost-energy-search/export-excel',
|
||||
method: 'post',
|
||||
data: data,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
73
src/api/cost/costMaterialAutoReport.js
Normal file
73
src/api/cost/costMaterialAutoReport.js
Normal file
@@ -0,0 +1,73 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建原料成本自动统计报
|
||||
export function createCostMaterialAutoReport(data) {
|
||||
return request({
|
||||
url: '/extend/cost-material-auto-report/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新原料成本自动统计报
|
||||
export function updateCostMaterialAutoReport(data) {
|
||||
return request({
|
||||
url: '/extend/cost-material-auto-report/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除原料成本自动统计报
|
||||
export function deleteCostMaterialAutoReport(id) {
|
||||
return request({
|
||||
url: '/extend/cost-material-auto-report/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得原料成本自动统计报
|
||||
export function getCostMaterialAutoReport(id) {
|
||||
return request({
|
||||
url: '/extend/cost-material-auto-report/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得原料成本自动统计报分页历史
|
||||
export function getCostMaterialAutoReportPage(data) {
|
||||
return request({
|
||||
url: '/extend/cost-material-auto-report/page',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 获得原料成本查询
|
||||
export function getCostMaterialSearchPage(data) {
|
||||
return request({
|
||||
url: '/extend/cost-material-search/getData',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 导出原料成本自动统计报 Excel
|
||||
export function exportCostMaterialAutoReportExcel(data) {
|
||||
return request({
|
||||
url: '/extend/cost-material-auto-report/export-excel',
|
||||
method: 'post',
|
||||
data: data,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出原料成本自动统计报 Excel查询
|
||||
export function exportCostMaterialSearch(data) {
|
||||
return request({
|
||||
url: '/extend/cost-material-search/export-excel',
|
||||
method: 'post',
|
||||
data: data,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
61
src/api/cost/costMaterialSet.js
Normal file
61
src/api/cost/costMaterialSet.js
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* @Author: zwq
|
||||
* @Date: 2023-11-15 09:24:30
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2023-12-05 14:38:48
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建原料价位配置
|
||||
export function createCostMaterialSet(data) {
|
||||
return request({
|
||||
url: '/extend/cost-material-set/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新原料价位配置
|
||||
export function updateCostMaterialSet(data) {
|
||||
return request({
|
||||
url: '/extend/cost-material-set/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除原料价位配置
|
||||
export function deleteCostMaterialSet(id) {
|
||||
return request({
|
||||
url: '/extend/cost-material-set/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得原料价位配置
|
||||
export function getCostMaterialSet(id) {
|
||||
return request({
|
||||
url: '/extend/cost-material-set/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得原料价位配置分页
|
||||
export function getCostMaterialSetPage(data) {
|
||||
return request({
|
||||
url: '/extend/cost-material-set/page',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 导出原料价位配置 Excel
|
||||
export function exportCostMaterialSetExcel(query) {
|
||||
return request({
|
||||
url: '/extend/cost-material-set/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
92
src/api/safetyEnvironmental/environmental.js
Normal file
92
src/api/safetyEnvironmental/environmental.js
Normal file
@@ -0,0 +1,92 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获得环保检测指标实时数据
|
||||
export function environmentalCheckRealtime(query) {
|
||||
return request({
|
||||
url: '/base/environmental-check/realtime',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获得环保检测指标趋势数据
|
||||
export function environmentalCheckRealtimeTrend(data) {
|
||||
return request({
|
||||
url: '/base/environmental-check-record/trend',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 获得环保检测指标分页
|
||||
export function environmentalCheckPage(query) {
|
||||
return request({
|
||||
url: '/base/environmental-check/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 创建环保检测指标
|
||||
export function environmentalCheckCreate(data) {
|
||||
return request({
|
||||
url: '/base/environmental-check/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新环保检测指标
|
||||
export function environmentalCheckUpdate(data) {
|
||||
return request({
|
||||
url: '/base/environmental-check/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 获得环保检测指标
|
||||
export function environmentalCheckGet(query) {
|
||||
return request({
|
||||
url: '/base/environmental-check/get',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 删除环保检测指标
|
||||
export function environmentalCheckDelete(query) {
|
||||
return request({
|
||||
url: '/base/environmental-check/delete',
|
||||
method: 'delete',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获得环保检测记录分页
|
||||
export function environmentalCheckRecordPage(data) {
|
||||
return request({
|
||||
url: '/base/environmental-check-record/page',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 导出环保检测记录 Excel
|
||||
export function environmentalCheckRecordExport(data) {
|
||||
return request({
|
||||
url: '/base/environmental-check-record/export-excel',
|
||||
method: 'post',
|
||||
data: data,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取环保检测指标code
|
||||
export function getEnvironmentalCheckCode(query) {
|
||||
return request({
|
||||
url: '/base/environmental-check/getCode',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user