更新自贡
This commit is contained in:
34
src/api/cost/costEnergy.js
Normal file
34
src/api/cost/costEnergy.js
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* @Author: zwq
|
||||
* @Date: 2024-04-18 16:53:17
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2024-04-19 16:11:19
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
import request from '@/utils/request'
|
||||
// 更新原片能源历史
|
||||
export function updateEnergyHis(data) {
|
||||
return request({
|
||||
url: '/monitoring/cost-energy-his/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 获得原片能源历史分页
|
||||
export function getEnergyHisPage(query) {
|
||||
return request({
|
||||
url: '/monitoring/cost-energy-his/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获得原片能源-成本查询分页
|
||||
export function getEnergyRealtimePage(query) {
|
||||
return request({
|
||||
url: '/monitoring/cost-energy-realtime/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
34
src/api/cost/costEnergyDeep.js
Normal file
34
src/api/cost/costEnergyDeep.js
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* @Author: zwq
|
||||
* @Date: 2024-04-18 16:53:17
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2024-04-22 14:51:14
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
import request from '@/utils/request'
|
||||
// 更新深加工能源历史
|
||||
export function updateEnergyHis(data) {
|
||||
return request({
|
||||
url: '/monitoring/cost-deep-energy-his/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 获得深加工能源历史分页
|
||||
export function getEnergyHisPage(query) {
|
||||
return request({
|
||||
url: '/monitoring/cost-deep-energy-his/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获得深加工能源-成本查询分页
|
||||
export function getEnergyRealtimePage(query) {
|
||||
return request({
|
||||
url: '/monitoring/cost-deep-energy-realtime/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
34
src/api/cost/costMaterial.js
Normal file
34
src/api/cost/costMaterial.js
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* @Author: zwq
|
||||
* @Date: 2024-04-18 16:53:17
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2024-04-19 16:12:14
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
import request from '@/utils/request'
|
||||
// 更新原料成本-历史
|
||||
export function updateMaterialHis(data) {
|
||||
return request({
|
||||
url: '/monitoring/cost-material-his/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 获得原料成本-历史分页
|
||||
export function getMaterialHisPage(query) {
|
||||
return request({
|
||||
url: '/monitoring/cost-material-his/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获得原料成本-成本查询分页
|
||||
export function getMaterialRealtimePage(query) {
|
||||
return request({
|
||||
url: '/monitoring/cost-material-realtime/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
26
src/api/cost/costOriginRatioHis.js
Normal file
26
src/api/cost/costOriginRatioHis.js
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* @Author: zwq
|
||||
* @Date: 2024-04-18 16:53:17
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2024-04-22 10:53:55
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
import request from '@/utils/request'
|
||||
// 更新原片良品率
|
||||
export function updatecostOriginRatioHis(data) {
|
||||
return request({
|
||||
url: '/monitoring/cost-origin-ratio-his/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 获得原片良品率
|
||||
export function getcostOriginRatioHisPage(query) {
|
||||
return request({
|
||||
url: '/monitoring/cost-origin-ratio-his/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
34
src/api/cost/costOthercostHis.js
Normal file
34
src/api/cost/costOthercostHis.js
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* @Author: zwq
|
||||
* @Date: 2024-04-18 16:53:17
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2024-04-19 14:24:17
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
import request from '@/utils/request'
|
||||
// 更新原片其他成本-历史
|
||||
export function updateRawOthercostHis(data) {
|
||||
return request({
|
||||
url: '/monitoring/cost-othercost-his/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 获得原片其他成本-历史分页
|
||||
export function getRawOthercostHisPage(query) {
|
||||
return request({
|
||||
url: '/monitoring/cost-othercost-his/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获得原片其他成本-成本查询分页
|
||||
export function getRawOthercostSunPage(query) {
|
||||
return request({
|
||||
url: '/monitoring/cost-othercost-log/page-sum',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
34
src/api/cost/costOthercostHisDeep.js
Normal file
34
src/api/cost/costOthercostHisDeep.js
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* @Author: zwq
|
||||
* @Date: 2024-04-18 16:53:17
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2024-04-22 15:15:18
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
import request from '@/utils/request'
|
||||
// 更新深加工其他成本-历史
|
||||
export function updateRawOthercostHis(data) {
|
||||
return request({
|
||||
url: '/monitoring/cost-deep-othercost-his/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 获得深加工其他成本-历史分页
|
||||
export function getRawOthercostHisPage(query) {
|
||||
return request({
|
||||
url: '/monitoring/cost-deep-othercost-his/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获得深加工其他成本-成本查询分页
|
||||
export function getRawOthercostSunPage(query) {
|
||||
return request({
|
||||
url: '/monitoring/cost-deep-othercost-log/page-sum',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
68
src/api/cost/costOthercostLog.js
Normal file
68
src/api/cost/costOthercostLog.js
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* @Author: zwq
|
||||
* @Date: 2024-04-15 17:01:20
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2024-04-18 15:40:27
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建原片其他成本-记录
|
||||
export function createRawOthercostLog(data) {
|
||||
return request({
|
||||
url: '/monitoring/cost-othercost-log/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新原片其他成本-记录
|
||||
export function updateRawOthercostLog(data) {
|
||||
return request({
|
||||
url: '/monitoring/cost-othercost-log/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除原片其他成本-记录
|
||||
export function deleteRawOthercostLog(id) {
|
||||
return request({
|
||||
url: '/monitoring/cost-othercost-log/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得原片其他成本-记录
|
||||
export function getRawOthercostLog(id) {
|
||||
return request({
|
||||
url: '/monitoring/cost-othercost-log/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得原片其他成本-记录分页
|
||||
export function getRawOthercostLogPage(query) {
|
||||
return request({
|
||||
url: '/monitoring/cost-othercost-log/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导出原片其他成本-记录 Excel
|
||||
export function exportRawOthercostLogExcel(query) {
|
||||
return request({
|
||||
url: '/monitoring/cost-othercost-log/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
// 获得所有原片其他成本-记录列表
|
||||
export function getRawOthercostLogAll() {
|
||||
return request({
|
||||
url: '/monitoring/cost-othercost-log/listAll',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
68
src/api/cost/costOthercostLogDeep.js
Normal file
68
src/api/cost/costOthercostLogDeep.js
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* @Author: zwq
|
||||
* @Date: 2024-04-15 17:01:20
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2024-04-22 14:59:35
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建深加工其他成本-记录
|
||||
export function createRawOthercostLog(data) {
|
||||
return request({
|
||||
url: '/monitoring/cost-deep-othercost-log/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新深加工其他成本-记录
|
||||
export function updateRawOthercostLog(data) {
|
||||
return request({
|
||||
url: '/monitoring/cost-deep-othercost-log/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除深加工其他成本-记录
|
||||
export function deleteRawOthercostLog(id) {
|
||||
return request({
|
||||
url: '/monitoring/cost-deep-othercost-log/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得深加工其他成本-记录
|
||||
export function getRawOthercostLog(id) {
|
||||
return request({
|
||||
url: '/monitoring/cost-deep-othercost-log/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得深加工其他成本-记录分页
|
||||
export function getRawOthercostLogPage(query) {
|
||||
return request({
|
||||
url: '/monitoring/cost-deep-othercost-log/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导出深加工其他成本-记录 Excel
|
||||
export function exportRawOthercostLogExcel(query) {
|
||||
return request({
|
||||
url: '/monitoring/cost-deep-othercost-log/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
// 获得所有深加工其他成本-记录列表
|
||||
export function getRawOthercostLogAll() {
|
||||
return request({
|
||||
url: '/monitoring/cost-deep-othercost-log/listAll',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
68
src/api/cost/deepOthercostRule.js
Normal file
68
src/api/cost/deepOthercostRule.js
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* @Author: zwq
|
||||
* @Date: 2024-04-15 17:01:20
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2024-04-22 14:55:00
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建深加工其他成本-配置
|
||||
export function createRawOthercostRule(data) {
|
||||
return request({
|
||||
url: '/monitoring/cost-deep-othercost-rule/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新深加工其他成本-配置
|
||||
export function updateRawOthercostRule(data) {
|
||||
return request({
|
||||
url: '/monitoring/cost-deep-othercost-rule/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除深加工其他成本-配置
|
||||
export function deleteRawOthercostRule(id) {
|
||||
return request({
|
||||
url: '/monitoring/cost-deep-othercost-rule/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得深加工其他成本-配置
|
||||
export function getRawOthercostRule(id) {
|
||||
return request({
|
||||
url: '/monitoring/cost-deep-othercost-rule/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得深加工其他成本-配置分页
|
||||
export function getRawOthercostRulePage(query) {
|
||||
return request({
|
||||
url: '/monitoring/cost-deep-othercost-rule/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导出深加工其他成本-配置 Excel
|
||||
export function exportRawOthercostRuleExcel(query) {
|
||||
return request({
|
||||
url: '/monitoring/cost-deep-othercost-rule/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
// 获得所有深加工其他成本-配置列表
|
||||
export function getRawOthercostRuleAll() {
|
||||
return request({
|
||||
url: '/monitoring/cost-deep-othercost-rule/listAll',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
@@ -2,12 +2,12 @@
|
||||
* @Author: zwq
|
||||
* @Date: 2024-04-15 17:01:20
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2024-04-15 17:05:47
|
||||
* @LastEditTime: 2024-04-18 15:39:12
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建设备
|
||||
// 创建原片其他成本-配置
|
||||
export function createRawOthercostRule(data) {
|
||||
return request({
|
||||
url: '/monitoring/cost-othercost-rule/create',
|
||||
@@ -16,7 +16,7 @@ export function createRawOthercostRule(data) {
|
||||
})
|
||||
}
|
||||
|
||||
// 更新设备
|
||||
// 更新原片其他成本-配置
|
||||
export function updateRawOthercostRule(data) {
|
||||
return request({
|
||||
url: '/monitoring/cost-othercost-rule/update',
|
||||
@@ -25,7 +25,7 @@ export function updateRawOthercostRule(data) {
|
||||
})
|
||||
}
|
||||
|
||||
// 删除设备
|
||||
// 删除原片其他成本-配置
|
||||
export function deleteRawOthercostRule(id) {
|
||||
return request({
|
||||
url: '/monitoring/cost-othercost-rule/delete?id=' + id,
|
||||
@@ -33,7 +33,7 @@ export function deleteRawOthercostRule(id) {
|
||||
})
|
||||
}
|
||||
|
||||
// 获得设备
|
||||
// 获得原片其他成本-配置
|
||||
export function getRawOthercostRule(id) {
|
||||
return request({
|
||||
url: '/monitoring/cost-othercost-rule/get?id=' + id,
|
||||
@@ -41,7 +41,7 @@ export function getRawOthercostRule(id) {
|
||||
})
|
||||
}
|
||||
|
||||
// 获得设备分页
|
||||
// 获得原片其他成本-配置分页
|
||||
export function getRawOthercostRulePage(query) {
|
||||
return request({
|
||||
url: '/monitoring/cost-othercost-rule/page',
|
||||
@@ -50,7 +50,7 @@ export function getRawOthercostRulePage(query) {
|
||||
})
|
||||
}
|
||||
|
||||
// 导出设备 Excel
|
||||
// 导出原片其他成本-配置 Excel
|
||||
export function exportRawOthercostRuleExcel(query) {
|
||||
return request({
|
||||
url: '/monitoring/cost-othercost-rule/export-excel',
|
||||
@@ -59,7 +59,7 @@ export function exportRawOthercostRuleExcel(query) {
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
// 获得所有设备列表
|
||||
// 获得所有原片其他成本-配置列表
|
||||
export function getRawOthercostRuleAll() {
|
||||
return request({
|
||||
url: '/monitoring/cost-othercost-rule/listAll',
|
||||
|
||||
Reference in New Issue
Block a user