diff --git a/README.md b/README.md index f4123a4e8..74eef9397 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## dev发布2024-05-15-003 +## dev发布2024-05-15-004 **xxxx.data.ts 文件配置说明** **form表单查询弹窗配置** form: { diff --git a/src/views/mes/abilityInfo/abilityInfo.data.ts b/src/views/mes/abilityInfo/abilityInfo.data.ts index 37f01205e..16db7dc40 100644 --- a/src/views/mes/abilityInfo/abilityInfo.data.ts +++ b/src/views/mes/abilityInfo/abilityInfo.data.ts @@ -140,7 +140,7 @@ export const AbilityInfo = useCrudSchemas(reactive([ field: 'remark', sort: 'custom', isSearch: false, - isTable: false + isTable: true }, { label: '状态', 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/hrPersonAbility/hrPersonAbility.data.ts b/src/views/mes/hrPersonAbility/hrPersonAbility.data.ts index 02febd8b6..81c779e86 100644 --- a/src/views/mes/hrPersonAbility/hrPersonAbility.data.ts +++ b/src/views/mes/hrPersonAbility/hrPersonAbility.data.ts @@ -178,7 +178,7 @@ export const HrPersonAbility = useCrudSchemas(reactive([ field: 'remark', sort: 'custom', isSearch: false, - isTable: false + isTable: true }, { label: '状态', 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/patternType/patternType.data.ts b/src/views/mes/patternType/patternType.data.ts index 3ec104df8..1095f1138 100644 --- a/src/views/mes/patternType/patternType.data.ts +++ b/src/views/mes/patternType/patternType.data.ts @@ -140,6 +140,6 @@ export const PatternType = useCrudSchemas(reactive([ field: 'remark', sort: 'custom', isSearch: false, - isTable: false + isTable: true } ])) diff --git a/src/views/mes/processroute/processroute.data.ts b/src/views/mes/processroute/processroute.data.ts index 36a782b64..077aecc88 100644 --- a/src/views/mes/processroute/processroute.data.ts +++ b/src/views/mes/processroute/processroute.data.ts @@ -4,6 +4,11 @@ import * as ItembasicApi from '@/api/wms/itembasic' import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' // 表单校验 export const ProcessrouteRules = reactive({ + processrouteCode: [required], + processName: [required], + productCode: [required], + ablityCode: [required], + ablityCode: [required], }) export const Processroute = useCrudSchemas(reactive([ @@ -26,6 +31,7 @@ export const Processroute = useCrudSchemas(reactive([ field: 'id', sort: 'custom', isForm: false, + isTable: false, }, { diff --git a/src/views/mes/workScheduling/components/reportAll.vue b/src/views/mes/workScheduling/components/reportAll.vue index 085008f86..060d02c43 100644 --- a/src/views/mes/workScheduling/components/reportAll.vue +++ b/src/views/mes/workScheduling/components/reportAll.vue @@ -9,7 +9,7 @@ 添加 - +