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.
82 lines
1.5 KiB
82 lines
1.5 KiB
1 year ago
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
|
||
|
import { dateFormatter } from '@/utils/formatTime'
|
||
1 year ago
|
import * as DictTypeApi from '@/api/system/dict/dict.type'
|
||
1 year ago
|
|
||
12 months ago
|
|
||
1 year ago
|
|
||
|
// 表单校验
|
||
|
export const SelectedProjectRules = reactive({
|
||
|
code: [required],
|
||
12 months ago
|
// dictionaryTypeAndCode: [required],
|
||
1 year ago
|
estimateCode: [required],
|
||
|
defectLevel: [required],
|
||
12 months ago
|
dictionaryValue: [required]
|
||
1 year ago
|
})
|
||
|
|
||
|
export const SelectedProject = useCrudSchemas(reactive<CrudSchema[]>([
|
||
1 year ago
|
|
||
1 year ago
|
{
|
||
|
label: '编码',
|
||
|
field: 'code',
|
||
|
sort: 'custom',
|
||
1 year ago
|
isTableForm: false,
|
||
1 year ago
|
isSearch: true,
|
||
1 year ago
|
fixed: 'left',
|
||
|
form: {
|
||
|
componentProps:{
|
||
|
disabled:true
|
||
|
}
|
||
|
}
|
||
1 year ago
|
},
|
||
|
{
|
||
12 months ago
|
label: '字典项',
|
||
12 months ago
|
field: 'dictionaryValue',
|
||
1 year ago
|
sort: 'custom',
|
||
12 months ago
|
isSearch: true,
|
||
|
isTableForm: true,
|
||
|
isDetail: true,
|
||
1 year ago
|
isTable: true,
|
||
|
isForm: true,
|
||
1 year ago
|
},
|
||
|
{
|
||
1 year ago
|
label: '评估代码',
|
||
|
field: 'estimateCode',
|
||
1 year ago
|
sort: 'custom',
|
||
|
isSearch: true,
|
||
1 year ago
|
dictType: DICT_TYPE.EVALUATION_CODE,
|
||
1 year ago
|
dictClass: 'string',
|
||
|
tableForm: {
|
||
|
type: 'Select',
|
||
|
},
|
||
1 year ago
|
form: {
|
||
1 year ago
|
component: 'Select',
|
||
1 year ago
|
}
|
||
|
},
|
||
12 months ago
|
// {
|
||
|
// label: '缺陷级别',
|
||
|
// field: 'defectLevel',
|
||
|
// sort: 'custom',
|
||
|
// isSearch: true,
|
||
|
// dictType: DICT_TYPE.DEFECT_LEVEL,
|
||
|
// dictClass: 'string',
|
||
|
// tableForm: {
|
||
|
// type: 'Select',
|
||
|
// },
|
||
|
// form: {
|
||
|
// component: 'Select',
|
||
|
// }
|
||
|
// },
|
||
1 year ago
|
{
|
||
|
label: '操作',
|
||
|
field: 'action',
|
||
|
isForm: false,
|
||
|
table: {
|
||
|
width: 150,
|
||
|
fixed: 'right'
|
||
1 year ago
|
},
|
||
|
isTableForm: false,
|
||
1 year ago
|
}
|
||
|
]))
|
||
1 year ago
|
|
||
|
|