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.
89 lines
1.8 KiB
89 lines
1.8 KiB
7 months ago
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
|
||
|
import { dateFormatter } from '@/utils/formatTime'
|
||
|
|
||
|
// 表单校验
|
||
|
export const CellDeviceRules = reactive({
|
||
|
})
|
||
|
|
||
|
export const CellDevice = useCrudSchemas(reactive<CrudSchema[]>([
|
||
|
// {
|
||
|
// label: 'id',
|
||
|
// field: 'id',
|
||
|
// sort: 'custom',
|
||
|
// isForm: false,
|
||
|
// },
|
||
|
{
|
||
|
label: '一次注液前重CPK允许值',
|
||
|
field: 'oneInjectPreCpk',
|
||
|
sort: 'custom',
|
||
|
isSearch: true,
|
||
|
},
|
||
|
{
|
||
|
label: '二次注液前重CPK允许值',
|
||
|
field: 'twoInjectPreCpk',
|
||
|
sort: 'custom',
|
||
|
isSearch: true,
|
||
|
},
|
||
|
{
|
||
|
label: '正极涂布面密度CPK允许值',
|
||
|
field: 'posCoatDenCpk',
|
||
|
sort: 'custom',
|
||
|
isSearch: true,
|
||
|
},
|
||
|
{
|
||
|
label: '负极涂布面密度CPK允许值',
|
||
|
field: 'negCoatDenCpk',
|
||
|
sort: 'custom',
|
||
|
isSearch: true,
|
||
|
},
|
||
|
{
|
||
|
label: '正极辊压厚度CPK允许值',
|
||
|
field: 'posRollThickCpk',
|
||
|
sort: 'custom',
|
||
|
isSearch: true,
|
||
|
},
|
||
|
{
|
||
|
label: '负极辊压厚度CPK允许值',
|
||
|
field: 'negRollThickCpk',
|
||
|
sort: 'custom',
|
||
|
isSearch: true,
|
||
|
},
|
||
|
{
|
||
|
label: '第一次注液量CPK允许值',
|
||
|
field: 'oneInjectCpk',
|
||
|
sort: 'custom',
|
||
|
isSearch: true,
|
||
|
},
|
||
|
{
|
||
|
label: '最终注液保有量CPK允许值',
|
||
|
field: 'finalInjectRetenCpk',
|
||
|
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: 'action',
|
||
|
isForm: false,
|
||
|
table: {
|
||
|
width: 150,
|
||
|
fixed: 'right'
|
||
|
}
|
||
|
}
|
||
|
]))
|