Files
admin-sjzx/src/api/advance-boot/sgGroven/sgEvent.ts

75 lines
1.4 KiB
TypeScript
Raw Normal View History

2024-03-28 13:25:41 +08:00
import createAxios from '@/utils/request'
2024-04-25 14:30:50 +08:00
import {ADVANCE_BOOT} from '@/utils/constantRequest'
2024-03-28 13:25:41 +08:00
/**
*
*/
export const downloadTemplate = () => {
return createAxios({
url: ADVANCE_BOOT + '/sgEvent/downloadTemplate',
method: 'GET',
responseType: 'blob'
})
}
/**
*
*/
export const exportEventData = (data: any) => {
return createAxios({
url: ADVANCE_BOOT + '/sgEvent/exportEventData',
2024-04-19 14:35:12 +08:00
method: 'POST',
2024-03-28 13:25:41 +08:00
data: data,
responseType: 'blob'
})
}
/**
2024-04-19 14:35:12 +08:00
*
2024-03-28 13:25:41 +08:00
*/
export const importEventData = (data: any) => {
return createAxios({
url: ADVANCE_BOOT + '/sgEvent/importEventData',
method: 'POST',
data: data
})
}
2024-04-19 14:35:12 +08:00
/**
*
*/
export const calcEventLoss = (data: any) => {
return createAxios({
url: ADVANCE_BOOT + '/sgEvent/calcLoss?id=' + data,
method: 'GET'
})
}
2024-03-28 13:25:41 +08:00
/**
2024-04-19 14:35:12 +08:00
* 线
2024-03-28 13:25:41 +08:00
*/
2024-04-19 14:35:12 +08:00
export const getEventDataByProductLineId = (data: any) => {
2024-03-28 13:25:41 +08:00
return createAxios({
2024-04-19 14:35:12 +08:00
url: ADVANCE_BOOT + '/sgEvent/getEventDataByProductLineId',
2024-03-28 13:25:41 +08:00
method: 'POST',
data: data
})
}
/**
*
*/
export const deleteSgEvent = (data: any) => {
let ids = [data]
return createAxios({
url: ADVANCE_BOOT + '/sgEvent/delete',
method: 'POST',
data: ids
})
}