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.
194 lines
3.7 KiB
194 lines
3.7 KiB
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
|
|
// 表单校验
|
|
export const QualityformlogRules = reactive({
|
|
concurrencyStamp: [required],
|
|
masterId: [required],
|
|
})
|
|
|
|
export const Qualityformlog = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '删除时间',
|
|
field: 'deleteTime',
|
|
sort: 'custom',
|
|
formatter: dateFormatter,
|
|
isSearch: false,
|
|
isTable: false,
|
|
isForm:false,
|
|
isDetail:false,
|
|
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')]
|
|
}
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
valueFormat: 'x'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '主键',
|
|
field: 'id',
|
|
sort: 'custom',
|
|
isForm: false,
|
|
isTable: false,
|
|
isDetail:false
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
sort: 'custom',
|
|
isSearch: false,
|
|
isTable: false,
|
|
isForm:false,
|
|
isDetail:false,
|
|
form: {
|
|
component: 'Radio'
|
|
},
|
|
},
|
|
{
|
|
label: '并发乐观锁',
|
|
field: 'concurrencyStamp',
|
|
sort: 'custom',
|
|
isSearch: false,
|
|
isTable: false,
|
|
isForm:false,
|
|
isDetail:false,
|
|
form: {
|
|
component: 'InputNumber',
|
|
value: 0
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
isSearch: false,
|
|
isTable: false,
|
|
isDetail:false,
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
sort: 'custom',
|
|
formatter: dateFormatter,
|
|
isSearch: false,
|
|
isTable: false,
|
|
isDetail:false,
|
|
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: 'deleter',
|
|
sort: 'custom',
|
|
isSearch: false,
|
|
isTable: false,
|
|
isForm: false,
|
|
isDetail:false
|
|
},
|
|
{
|
|
label: '位置ID',
|
|
field: 'siteId',
|
|
sort: 'custom',
|
|
isSearch: false,
|
|
isTable: false,
|
|
isForm: false,
|
|
isDetail:false,
|
|
form: {
|
|
component: 'InputNumber',
|
|
value: 0
|
|
},
|
|
},
|
|
{
|
|
label: '主表编号',
|
|
field: 'masterId',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
form: {
|
|
component: 'InputNumber',
|
|
value: 0
|
|
},
|
|
},
|
|
{
|
|
label: '表单编号',
|
|
field: 'formNo',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '操作类型',
|
|
field: 'operation',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.QUALIFY_FORM_OPERATION,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '操作人员',
|
|
field: 'operator',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '操作内容',
|
|
field: 'operateContent',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
form: {
|
|
component: 'Editor',
|
|
componentProps: {
|
|
valueHtml: '',
|
|
height: 200
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '操作时间',
|
|
field: 'operateTime',
|
|
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')]
|
|
}
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
valueFormat: 'x'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isSearch: false,
|
|
isTable: false,
|
|
isForm: false,
|
|
isDetail:false,
|
|
table: {
|
|
width: 150,
|
|
fixed: 'right'
|
|
}
|
|
}
|
|
]))
|
|
|