diff --git a/src/views/mes/holidayCalendar/holidayCalendar.data.ts b/src/views/mes/holidayCalendar/holidayCalendar.data.ts deleted file mode 100644 index 6094de858..000000000 --- a/src/views/mes/holidayCalendar/holidayCalendar.data.ts +++ /dev/null @@ -1,179 +0,0 @@ -import type { CrudSchema } from '@/hooks/web/useCrudSchemas' -import { dateFormatter } from '@/utils/formatTime' - -// 表单校验 -export const HolidayCalendarRules = reactive({ - endTime: [required], - concurrencyStamp: [required], -}) - -export const HolidayCalendar = useCrudSchemas(reactive([ - { - label: 'ID', - field: 'id', - sort: 'custom', - isForm: false, - }, - { - label: '日期', - field: 'holidayDate', - sort: 'custom', - formatter: dateFormatter, - isSearch: true, - search: { - component: 'DatePicker', - componentProps: { - valueFormat: 'YYYY-MM-DD HH:mm:ss', - type: 'daterange', - defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x' - } - }, - }, - { - label: '结束时间', - field: 'endTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: true, - search: { - component: 'DatePicker', - componentProps: { - valueFormat: 'YYYY-MM-DD HH:mm:ss', - type: 'daterange', - defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x' - } - }, - }, - { - label: '备用字段一', - field: 'textOne', - sort: 'custom', - isSearch: true, - }, - { - label: '备用字段二', - field: 'textTwo', - sort: 'custom', - isSearch: true, - }, - { - label: '备用字段三', - field: 'textThree', - sort: 'custom', - isSearch: true, - }, - { - label: '备用字段四', - field: 'textFour', - sort: 'custom', - isSearch: true, - }, - { - label: '备用字段五', - field: 'textFive', - sort: 'custom', - isSearch: true, - }, - { - label: '删除时间', - field: 'deleteTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: true, - search: { - component: 'DatePicker', - componentProps: { - valueFormat: 'YYYY-MM-DD HH:mm:ss', - type: 'daterange', - defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x' - } - }, - }, - { - label: '状态', - field: 'status', - sort: 'custom', - isSearch: true, - form: { - component: 'Radio' - }, - }, - { - label: '并发乐观锁', - field: 'concurrencyStamp', - sort: 'custom', - isSearch: true, - form: { - component: 'InputNumber', - value: 0 - }, - }, - { - label: '备注', - field: 'remark', - sort: 'custom', - isSearch: true, - }, - { - label: '创建时间', - field: 'createTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: true, - search: { - component: 'DatePicker', - componentProps: { - valueFormat: 'YYYY-MM-DD HH:mm:ss', - type: 'daterange', - defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] - } - }, - isForm: false, - }, - { - label: '删除用户名', - field: 'deleter', - sort: 'custom', - isSearch: true, - }, - { - label: '位置ID', - field: 'siteId', - sort: 'custom', - isSearch: true, - form: { - component: 'InputNumber', - value: 0 - }, - }, - { - label: '操作', - field: 'action', - isForm: false, - table: { - width: 150, - fixed: 'right' - } - } -])) diff --git a/src/views/mes/holidayCalendar/index.vue b/src/views/mes/holidayCalendar/index.vue deleted file mode 100644 index 21eeb6ee8..000000000 --- a/src/views/mes/holidayCalendar/index.vue +++ /dev/null @@ -1,75 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/mes/jobcalendar/index.vue b/src/views/mes/jobcalendar/index.vue deleted file mode 100644 index acd7a2a6c..000000000 --- a/src/views/mes/jobcalendar/index.vue +++ /dev/null @@ -1,8 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/mes/workcalendar/index.vue b/src/views/mes/workcalendar/index.vue index 4876ec101..16c054af5 100644 --- a/src/views/mes/workcalendar/index.vue +++ b/src/views/mes/workcalendar/index.vue @@ -238,7 +238,7 @@ @@ -661,6 +661,10 @@ const batchAddWork = () => { const handleBatchClose = () => { batchAddDrawer.value = false } +const handleAddClose = () => { + drawer.value = false +} + const savePlan = async (workList) => { await workCalendarApi.createBatch(workList) //await workCalendarApi.createObj(workList);