You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

83 lines
1.5 KiB

import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
// 表单校验
export const AccountPeriodRules = reactive({
year: [required,],
month: [required,],
day: [required,],
hour: [required,],
minute: [required,],
})
export const AccountPeriod = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '账期年',
field: 'year',
sort: 'custom',
isSearch: true,
table: {
width: 180,
fixed: 'left'
},
},
{
label: '账期月',
field: 'month',
sort: 'custom',
isSearch: true,
},
{
label: '账期日',
field: 'day',
sort: 'custom',
isSearch: true,
},
{
label: '账期时',
field: 'hour',
sort: 'custom',
isSearch: true,
},
{
label: '账期分',
field: 'minute',
sort: 'custom',
isSearch: true,
},
{
label: '备注',
field: 'notes',
sort: 'custom',
isSearch: true,
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {
width: 170
}
},
{
label: '操作',
field: 'action',
isForm: false,
table: {
width: 150,
fixed: 'right'
}
}
]))