Browse Source

单体出厂检验时间格式

master
wangyufei 1 month ago
parent
commit
39faefcfd6
  1. 23
      src/views/battery/monomer/monomer.data.ts

23
src/views/battery/monomer/monomer.data.ts

@ -45,12 +45,26 @@ export const Monomer = useCrudSchemas(reactive<CrudSchema[]>([
field: 'date', field: 'date',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'datetime',
}
},
}, },
{ {
label: '数据报送时间', label: '数据报送时间',
field: 'timeStamp', field: 'timeStamp',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'datetime',
}
},
}, },
{ {
label: '工作控制号', label: '工作控制号',
@ -63,6 +77,13 @@ export const Monomer = useCrudSchemas(reactive<CrudSchema[]>([
field: 'endTime', field: 'endTime',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'datetime',
}
},
}, },
{ {
label: '实际生产周期', label: '实际生产周期',
@ -518,7 +539,7 @@ export const Monomer = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange', type: 'datetimerange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
}, },

Loading…
Cancel
Save