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.
72 lines
1.4 KiB
72 lines
1.4 KiB
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
|
|
// 表单校验
|
|
export const CellCoreRules = reactive({
|
|
})
|
|
|
|
export const CellCore = useCrudSchemas(reactive<CrudSchema[]>([
|
|
// {
|
|
// label: 'id',
|
|
// field: 'id',
|
|
// sort: 'custom',
|
|
// isForm: false,
|
|
// },
|
|
{
|
|
label: 'A卷芯或叠芯厚度允许偏差',
|
|
field: 'acoreThi',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: 'A卷芯或叠芯宽度允许偏差',
|
|
field: 'acoreWid',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
form: {
|
|
component: 'InputNumber',
|
|
value: 0
|
|
},
|
|
},
|
|
{
|
|
label: 'B卷芯或叠芯厚度允许偏差',
|
|
field: 'bcoreThi',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: 'B卷芯或叠芯宽度允许偏差',
|
|
field: 'bcoreWid',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
form: {
|
|
component: 'InputNumber',
|
|
value: 0
|
|
},
|
|
},
|
|
{
|
|
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: 'action',
|
|
isForm: false,
|
|
table: {
|
|
width: 150,
|
|
fixed: 'right'
|
|
}
|
|
}
|
|
]))
|
|
|