diff --git a/src/api/mes/cal/holiday/index.ts b/src/api/mes/cal/holiday/index.ts index 48dfdc76d..e74a2b70a 100644 --- a/src/api/mes/cal/holiday/index.ts +++ b/src/api/mes/cal/holiday/index.ts @@ -3,10 +3,8 @@ import request from '@/config/axios' // MES 假期设置 VO export interface CalHolidayVO { id: number // 编号 - theDay: string // 日期 - type: string // 日期类型 - startTime: string // 开始时间 - endTime: string // 结束时间 + day: number // 日期(时间戳) + type: number // 日期类型 remark: string // 备注 attribute1: string // 预留字段1 attribute2: string // 预留字段2 @@ -17,12 +15,7 @@ export interface CalHolidayVO { // MES 假期设置 API export const CalHolidayApi = { - // 查询假期设置分页 - getHolidayPage: async (params: any) => { - return await request.get({ url: `/mes/cal/holiday/page`, params }) - }, - - // 查询所有假期设置列表(日历组件用,不分页) + // 查询所有假期设置列表 getHolidayList: async () => { return await request.get({ url: `/mes/cal/holiday/list` }) }, diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 2a365f40f..c2d30c4fd 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -255,5 +255,7 @@ export enum DICT_TYPE { // ========== MES - 制造执行系统模块 ========== MES_CLIENT_TYPE = 'mes_client_type', // MES 客户类型 MES_VENDOR_LEVEL = 'mes_vendor_level', // MES 供应商级别 - MES_CAL_HOLIDAY_TYPE = 'mes_cal_holiday_type' // MES 假期类型 + MES_CAL_HOLIDAY_TYPE = 'mes_cal_holiday_type', // MES 假期类型 + MES_TM_TOOL_STATUS = 'mes_tm_tool_status', // MES 工具状态 + MES_TM_MAINTEN_TYPE = 'mes_tm_mainten_type' // MES 保养维护类型 } diff --git a/src/views/mes/cal/holiday/HolidayForm.vue b/src/views/mes/cal/holiday/HolidayForm.vue index efca37daa..2f537e830 100644 --- a/src/views/mes/cal/holiday/HolidayForm.vue +++ b/src/views/mes/cal/holiday/HolidayForm.vue @@ -8,13 +8,13 @@ label-width="80px" v-loading="formLoading" > - - + + @@ -22,6 +22,9 @@ + + + diff --git a/src/views/mes/cal/holiday/index.vue b/src/views/mes/cal/holiday/index.vue index a0c4aa875..51307bf4b 100644 --- a/src/views/mes/cal/holiday/index.vue +++ b/src/views/mes/cal/holiday/index.vue @@ -1,7 +1,6 @@