|
|
@ -6,7 +6,7 @@ import {getSamplingScheme} from '@/api/qms/sampleCode/index' |
|
|
|
export const SampleCodeRules = reactive({ |
|
|
|
code: [required], |
|
|
|
batchUpperLimiting: [required], |
|
|
|
available: [required], |
|
|
|
// available: [required],
|
|
|
|
}) |
|
|
|
const samplingSchemeList = await getSamplingScheme() |
|
|
|
export const SampleCode = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
@ -88,16 +88,16 @@ export const SampleCode = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'g3', |
|
|
|
sort: 'custom', |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '是否可用', |
|
|
|
field: 'available', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
|
|
|
|
form: { |
|
|
|
component: 'Select' |
|
|
|
}, |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '是否可用',
|
|
|
|
// field: 'available',
|
|
|
|
// sort: 'custom',
|
|
|
|
// dictType: DICT_TYPE.TRUE_FALSE,
|
|
|
|
// dictClass: 'string', // 默认都是字符串类型其他暂不考虑
|
|
|
|
// form: {
|
|
|
|
// component: 'Select'
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
|
field: 'createTime', |
|
|
|