铸诚前端
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.
 
 
 
 
 

734 lines
12 KiB

import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter , dateFormatter2} from '@/utils/formatTime'
// 表单校验
export const Stretch300Rules = reactive({
})
export const Stretch300 = useCrudSchemas(reactive<CrudSchema[]>([
// {
// label: '主键、自增',
// field: 'id',
// sort: 'custom',
// isForm: false,
// },
{
label: '试样序号',
field: 'syid',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '试样编号',
field: 'syzbh',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '送样单位',
field: 'sydw',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '标准',
field: 'standard',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '材质',
field: 'cz',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '规格',
field: 'guig',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '实验人',
field: 'testUser',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
dictType: DICT_TYPE.LAB_USER_TEST_TYPE,
dictClass: 'number'
},
{
label: '试验日期',
field: 'testDate',
sort: 'custom',
formatter: dateFormatter2,
isSearch: true,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD',
type: 'daterange',
// defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
form: {
component: 'DatePicker',
componentProps: {
type: 'date',
valueFormat: 'x'
}
},
table: {
width: 150
}
},
{
label: '是否完成标识',
field: 'flag',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '最大力',
field: 'jfb',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '最大强度',
field: 'jb',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '上屈服强度',
field: 'jsu',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '下屈服强度',
field: 'js',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '断裂强度',
field: 'jt',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '弹性模量',
field: 'je',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '非比例应力',
field: 'jp',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '断裂伸长率',
field: 'jdl',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '断面收缩率',
field: 'jdm',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '上屈服力',
field: 'jsuf',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '下屈服力',
field: 'jsf',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '非比例伸长力',
field: 'jpf',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '最大力非比例伸长率(%)',
field: 'jag',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '最大力总伸长率(%)',
field: 'jagt',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '规定总延伸强度(%)',
field: 'jrt',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '屈服点延伸率(%)',
field: 'jae',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '吸收功(N.m)',
field: 'sorbWork',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: 'R值',
field: 'jr',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: 'N值',
field: 'jn',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '泊松比',
field: 'jbsb',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '规定总延伸力(N)',
field: 'jrf',
sort: 'custom',
isSearch: false,
table: {
width: 180
}
},
{
label: '弹性之起点值',
field: 'jdlStartvalue',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '弹性之未点值',
field: 'jdlEndvalue',
sort: 'custom',
isSearch: false,
table: {
width: 180
}
},
{
label: '泊松比的起点变形值',
field: 'jbsbStartvalue',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '泊松比的末点变形值',
field: 'jbsbEndvalue',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '规定应变值',
field: 'jrSpecon',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: 'N值的起点应变',
field: 'jnStartvalue',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: 'N值的末点应变',
field: 'jnEndvalue',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: 'N值的规定点数',
field: 'jnSpecon',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '最大力之索引点',
field: 'jfbInx',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '上屈服力之索引点',
field: 'jsufInx',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '下屈服力之索引点',
field: 'jsfInx',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '非比例伸长力之索引点',
field: 'jpfInx',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '弹性模量之起点值',
field: 'jeStartvalue',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '弹性模量之未点值',
field: 'jeEndvalue',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '弹性模量之算法',
field: 'jeSpemath',
sort: 'custom',
isSearch: false,
table: {
width: 180
}
},
{
label: '非比例应力之起点值',
field: 'jpStartvalue',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '非比例应力之未点值',
field: 'jpEndvalue',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '非比例应力之n%之值',
field: 'jpSpecon',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '非比例应力之算法',
field: 'jpSpemath',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '非比例伸长力之起点值',
field: 'jpfStartvalue',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '非比例伸长力之未点值',
field: 'jpfEndvalue',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '非比例伸长力之n%之值',
field: 'jpfSpecon',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '非比例伸长力之算法',
field: 'jpfSpemath',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '最大力非比例伸长率(%)',
field: 'jagStartvalue',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '最大力非比例伸长率(%)',
field: 'jagEndvalue',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '最大力非比例伸长率(%)之算法',
field: 'jagSpemath',
sort: 'custom',
isSearch: false,
table: {
width: 250
}
},
{
label: '规定总延伸强度(%)',
field: 'jrtSpecon',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '规定总延伸力(N)',
field: 'jrfSpecon',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '屈服点延伸率(%)',
field: 'jaeStartvalue',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '屈服点延伸率(%)',
field: 'jaeEndvalue',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '屈服点延伸率(%)之算法',
field: 'jaeSpemath',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '是否使用引伸计',
field: 'isExtension',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '断后标距',
field: 'lot',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '断后直径',
field: 'dt',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '断后宽度',
field: 'bt',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '断后厚度',
field: 'at1',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '引伸计类型',
field: 'extensionType',
sort: 'custom',
isSearch: false,
// form: {
// component: 'SelectV2'
// },
table: {
width: 150
}
},
{
label: '引伸计的名称',
field: 'extensionName',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '试样是否有效的标志',
field: 'vld',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '横梁速度',
field: 'hlSd',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '断裂百分比之值',
field: 'dlbfbV',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '是否闭环控制',
field: 'isBhkz',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '用户代号(采集的数据)',
field: 'userId',
sort: 'custom',
isSearch: false,
table: {
width: 200
}
},
{
label: '审核状态',
field: 'auditStatus',
sort: 'custom',
isSearch: true,
table: {
width: 120,
fixed: 'right'
},
dictType: DICT_TYPE.LAB_AUDIT_STATUS,
dictClass: 'number'
},
{
label: '采集时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isSearch: 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,
table: {
width: 200,
fixed: 'right'
}
},
{
label: '操作',
field: 'action',
isForm: false,
table: {
width: 250,
fixed: 'right'
}
}
]))