From 0b3d4e188096c4c6e655b8332530dd3339b8f48d Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Tue, 14 Nov 2023 13:09:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E6=97=A5=E5=8E=86=E6=90=9C?= =?UTF-8?q?=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Search/src/Search.vue | 1 + .../systemcalendar/systemcalendar.data.ts | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/components/Search/src/Search.vue b/src/components/Search/src/Search.vue index cebc50ed3..a71bb48e9 100644 --- a/src/components/Search/src/Search.vue +++ b/src/components/Search/src/Search.vue @@ -78,6 +78,7 @@ const search = async () => { if (isValid) { const { getFormData } = methods const model = await getFormData() + console.log(model) emit('search', model) } }) diff --git a/src/views/wms/basicDataManage/systemSetting/systemcalendar/systemcalendar.data.ts b/src/views/wms/basicDataManage/systemSetting/systemcalendar/systemcalendar.data.ts index 9b965d703..05dbc82b6 100644 --- a/src/views/wms/basicDataManage/systemSetting/systemcalendar/systemcalendar.data.ts +++ b/src/views/wms/basicDataManage/systemSetting/systemcalendar/systemcalendar.data.ts @@ -38,6 +38,15 @@ export const Systemcalendar = useCrudSchemas(reactive([ } }, isSearch: true, + search: { + show: true, + 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')] + } + } }, { label: '结束时间', @@ -61,6 +70,14 @@ export const Systemcalendar = useCrudSchemas(reactive([ } }, isSearch: true, + search: { + show: true, + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + } + } }, { label: '是否可用',