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.
333 lines
4.9 KiB
333 lines
4.9 KiB
1 year ago
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
|
||
|
import { dateFormatter } from '@/utils/formatTime'
|
||
|
|
||
|
// 表单校验
|
||
|
export const AqlRules = reactive({
|
||
|
sampleProgCode: [required],
|
||
|
inspectionQualification: [required],
|
||
|
sampleCharacterCode: [required],
|
||
|
sampleSize: [required],
|
||
|
available: [required],
|
||
|
})
|
||
|
|
||
|
export const Aql = useCrudSchemas(reactive<CrudSchema[]>([
|
||
|
{
|
||
|
label: 'id',
|
||
|
field: 'id',
|
||
|
sort: 'custom',
|
||
|
isTable: false,
|
||
|
isForm: false,
|
||
|
},
|
||
|
{
|
||
|
label: '编码',
|
||
|
field: 'sampleProgCode',
|
||
|
sort: 'custom',
|
||
|
isSearch: true,
|
||
|
},
|
||
|
{
|
||
|
label: '检验严格性',
|
||
|
field: 'inspectionQualification',
|
||
|
sort: 'custom',
|
||
|
dictType: DICT_TYPE.INSPECTION_SEVERITY,
|
||
|
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
|
||
|
isSearch: true,
|
||
|
form: {
|
||
|
component: 'SelectV2'
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
label: '样本字码',
|
||
|
field: 'sampleCharacterCode',
|
||
|
sort: 'custom',
|
||
|
isSearch: true,
|
||
|
},
|
||
|
{
|
||
|
label: '样本量',
|
||
|
field: 'sampleSize',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A0_010',
|
||
|
field: 'a0010',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R0_010',
|
||
|
field: 'r0010',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A0_015',
|
||
|
field: 'a0015',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R0_015',
|
||
|
field: 'r0015',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A0_025',
|
||
|
field: 'a0025',
|
||
|
sort: 'custom',
|
||
|
isSearch: true,
|
||
|
},
|
||
|
{
|
||
|
label: 'R0_025',
|
||
|
field: 'r0025',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A0_040',
|
||
|
field: 'a0040',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R0_040',
|
||
|
field: 'r0040',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A0_065',
|
||
|
field: 'a0065',
|
||
|
sort: 'custom',
|
||
|
isSearch: true,
|
||
|
},
|
||
|
{
|
||
|
label: 'R0_065',
|
||
|
field: 'r0065',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A0_10',
|
||
|
field: 'a010',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R0_10',
|
||
|
field: 'r010',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A0_15',
|
||
|
field: 'a015',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R0_15',
|
||
|
field: 'r015',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A0_25',
|
||
|
field: 'a025',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R0_25',
|
||
|
field: 'r025',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A0_40',
|
||
|
field: 'a040',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R0_40',
|
||
|
field: 'r040',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A0_65',
|
||
|
field: 'a065',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R0_65',
|
||
|
field: 'r065',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A1_0',
|
||
|
field: 'a10',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R1_0',
|
||
|
field: 'r10',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A1_5',
|
||
|
field: 'a15',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R1_5',
|
||
|
field: 'r15',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A2_5',
|
||
|
field: 'a25',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R2_5',
|
||
|
field: 'r25',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A4_0',
|
||
|
field: 'a40',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R4_0',
|
||
|
field: 'r40',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A6_5',
|
||
|
field: 'a65',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R6_5',
|
||
|
field: 'r65',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A10',
|
||
|
field: 'a10',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R10',
|
||
|
field: 'r10',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A15',
|
||
|
field: 'a15',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R15',
|
||
|
field: 'r15',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A25',
|
||
|
field: 'a25',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R25',
|
||
|
field: 'r25',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A40',
|
||
|
field: 'a40',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R40',
|
||
|
field: 'r40',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A65',
|
||
|
field: 'a65',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R65',
|
||
|
field: 'r65',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A100',
|
||
|
field: 'a100',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R100',
|
||
|
field: 'r100',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A150',
|
||
|
field: 'a150',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R150',
|
||
|
field: 'r150',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A250',
|
||
|
field: 'a250',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R250',
|
||
|
field: 'r250',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A400',
|
||
|
field: 'a400',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R400',
|
||
|
field: 'r400',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A650',
|
||
|
field: 'a650',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R650',
|
||
|
field: 'r650',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'A1000',
|
||
|
field: 'a1000',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: 'R1000',
|
||
|
field: 'r1000',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: '是否可用',
|
||
|
field: 'available',
|
||
|
sort: 'custom',
|
||
|
},
|
||
|
{
|
||
|
label: '创建时间',
|
||
|
field: 'createTime',
|
||
|
sort: 'custom',
|
||
|
formatter: dateFormatter,
|
||
|
isForm: false,
|
||
|
},
|
||
|
{
|
||
|
label: '操作',
|
||
|
field: 'action',
|
||
|
isForm: false,
|
||
|
table: {
|
||
|
width: 150,
|
||
|
fixed: 'right'
|
||
|
}
|
||
|
}
|
||
|
]))
|