You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.2 KiB
42 lines
1.2 KiB
2 years ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface SystemcalendarVO {
|
||
|
module: string
|
||
|
startTime: Date
|
||
|
stopTime: Date
|
||
|
available: number
|
||
|
activeTime: Date
|
||
|
expireTime: Date
|
||
|
remark: string
|
||
|
}
|
||
|
|
||
|
// 查询系统日历列表
|
||
|
export const getSystemcalendarPage = async (params) => {
|
||
|
return await request.get({ url: `/wms/systemcalendar/page`, params })
|
||
|
}
|
||
|
|
||
|
// 查询系统日历详情
|
||
|
export const getSystemcalendar = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/systemcalendar/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增系统日历
|
||
|
export const createSystemcalendar = async (data: SystemcalendarVO) => {
|
||
|
return await request.post({ url: `/wms/systemcalendar/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改系统日历
|
||
|
export const updateSystemcalendar = async (data: SystemcalendarVO) => {
|
||
|
return await request.put({ url: `/wms/systemcalendar/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除系统日历
|
||
|
export const deleteSystemcalendar = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/systemcalendar/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出系统日历 Excel
|
||
|
export const exportSystemcalendar = async (params) => {
|
||
|
return await request.download({ url: `/wms/systemcalendar/export-excel`, params })
|
||
|
}
|