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