暂降治理评估

This commit is contained in:
2024-04-19 14:35:12 +08:00
parent 997e8a9252
commit 444d06ee1a
29 changed files with 2594 additions and 722 deletions

View File

@@ -20,7 +20,7 @@ export const downloadTemplate = () => {
export const exportEventData = (data: any) => {
return createAxios({
url: ADVANCE_BOOT + '/sgEvent/exportEventData',
method: 'GET',
method: 'POST',
data: data,
responseType: 'blob'
})
@@ -28,7 +28,7 @@ export const exportEventData = (data: any) => {
/**
* 新增业务用户
* 导入暂降数据
*/
export const importEventData = (data: any) => {
return createAxios({
@@ -38,13 +38,23 @@ export const importEventData = (data: any) => {
})
}
/**
* 新增业务用户
*/
export const calcEventLoss = (data: any) => {
return createAxios({
url: ADVANCE_BOOT + '/sgEvent/calcLoss?id=' + data,
method: 'GET'
})
}
/**
* 更新业务用户
* 查询生产线下所有暂降事件
*/
export const updateSgEvent = (data: any) => {
export const getEventDataByProductLineId = (data: any) => {
return createAxios({
url: ADVANCE_BOOT + '/sgEvent/update',
url: ADVANCE_BOOT + '/sgEvent/getEventDataByProductLineId',
method: 'POST',
data: data
})