diff --git a/src/views/wms/basicDataManage/systemSetting/accountcalendar/accountcalendar.data.ts b/src/views/wms/basicDataManage/systemSetting/accountcalendar/accountcalendar.data.ts index e879ad2db..4c809839f 100644 --- a/src/views/wms/basicDataManage/systemSetting/accountcalendar/accountcalendar.data.ts +++ b/src/views/wms/basicDataManage/systemSetting/accountcalendar/accountcalendar.data.ts @@ -1,7 +1,7 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter } from '@/utils/formatTime' const { t } = useI18n() // 国际化 - +const monthList = [{ label:'01', value:'01' },{ label:'02', value:'02' },{ label:'03', value:'03' },{ label:'04', value:'04' },{ label:'05', value:'05' },{ label:'06', value:'06' },{ label:'07', value:'07' },{ label:'08', value:'08' },{ label:'09', value:'09' },{ label:'10', value:'10' },{ label:'11', value:'11' },{ label:'12', value:'12' }] /** * @returns {Array} 账期日历 */ @@ -14,6 +14,16 @@ export const Accountcalendar = useCrudSchemas(reactive([ width: 150, fixed: 'left' }, + formatter: dateFormatter, + form: { + component: 'DatePicker', + componentProps: { + style: {width:'100%'}, + type: 'year', + dateFormat: 'YYYY', + valueFormat: 'x', + } + }, }, { label: '月', @@ -22,6 +32,18 @@ export const Accountcalendar = useCrudSchemas(reactive([ table: { width: 150 }, + form: { + component: 'Select', + api: () => monthList, + componentProps: { + style: {width:'100%'}, + optionsAlias: { + labelField: 'label', + valueField: 'value' + } + }, + + }, }, { label: '描述', @@ -53,6 +75,14 @@ export const Accountcalendar = useCrudSchemas(reactive([ } }, isSearch: true, + search: { + show: true, + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + } + } }, { label: '结束时间', @@ -76,6 +106,14 @@ export const Accountcalendar = useCrudSchemas(reactive([ } }, isSearch: true, + search: { + show: true, + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + } + } }, { label: '转换生效时间', @@ -99,6 +137,14 @@ export const Accountcalendar = useCrudSchemas(reactive([ } }, isSearch: true, + search: { + show: true, + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + } + } }, { label: '是否可用', diff --git a/src/views/wms/basicDataManage/systemSetting/currencyexchange/currencyexchange.data.ts b/src/views/wms/basicDataManage/systemSetting/currencyexchange/currencyexchange.data.ts index 17be69c2c..1783cdc0c 100644 --- a/src/views/wms/basicDataManage/systemSetting/currencyexchange/currencyexchange.data.ts +++ b/src/views/wms/basicDataManage/systemSetting/currencyexchange/currencyexchange.data.ts @@ -86,7 +86,15 @@ export const Currencyexchange = useCrudSchemas(reactive([ valueFormat: 'x', } }, - isSearch: true + isSearch: true, + search: { + show: true, + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + } + } }, { label: '失效时间', diff --git a/src/views/wms/basicDataManage/systemSetting/currencyexchange/index.vue b/src/views/wms/basicDataManage/systemSetting/currencyexchange/index.vue index 6ff792ae2..a230e9238 100644 --- a/src/views/wms/basicDataManage/systemSetting/currencyexchange/index.vue +++ b/src/views/wms/basicDataManage/systemSetting/currencyexchange/index.vue @@ -29,7 +29,7 @@ >