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.
59 lines
1.7 KiB
59 lines
1.7 KiB
import request from '@/config/axios'
|
|
|
|
export interface HolidayCalendarVO {
|
|
id: number
|
|
holidayDate: Date
|
|
endTime: Date
|
|
textOne: string
|
|
textTwo: string
|
|
textThree: string
|
|
textFour: string
|
|
textFive: string
|
|
deleteTime: Date
|
|
status: string
|
|
concurrencyStamp: number
|
|
remark: string
|
|
deleter: string
|
|
siteId: number
|
|
}
|
|
|
|
// 查询节假日设置日历列表
|
|
export const getHolidayCalendarPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/mes/holidayCalendar/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/mes/holidayCalendar/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询节假日设置日历详情
|
|
export const getHolidayCalendar = async (id: number) => {
|
|
return await request.get({ url: `/mes/holidayCalendar/get?id=` + id })
|
|
}
|
|
|
|
// 新增节假日设置日历
|
|
export const createHolidayCalendar = async (data: HolidayCalendarVO) => {
|
|
return await request.post({ url: `/mes/holidayCalendar/create`, data })
|
|
}
|
|
|
|
// 修改节假日设置日历
|
|
export const updateHolidayCalendar = async (data: HolidayCalendarVO) => {
|
|
return await request.put({ url: `/mes/holidayCalendar/update`, data })
|
|
}
|
|
|
|
// 删除节假日设置日历
|
|
export const deleteHolidayCalendar = async (id: number) => {
|
|
return await request.delete({ url: `/mes/holidayCalendar/delete?id=` + id })
|
|
}
|
|
|
|
// 导出节假日设置日历 Excel
|
|
export const exportHolidayCalendar = async (params) => {
|
|
return await request.download({ url: `/mes/holidayCalendar/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/mes/holidayCalendar/get-import-template' })
|
|
}
|