Index: ssts-web/src/main/webapp/disinfectsystem/instrumentRepairManagement/instrumentRepairManagementForm.js =================================================================== diff -u -r33134 -r33142 --- ssts-web/src/main/webapp/disinfectsystem/instrumentRepairManagement/instrumentRepairManagementForm.js (.../instrumentRepairManagementForm.js) (revision 33134) +++ ssts-web/src/main/webapp/disinfectsystem/instrumentRepairManagement/instrumentRepairManagementForm.js (.../instrumentRepairManagementForm.js) (revision 33142) @@ -291,7 +291,7 @@ if (!timeObj.outHandoverDateTimeIsHidden) { top.Ext4.getCmp('outHandoverDateTime').allowBlank = false; if (top.Ext4.getCmp('outHandoverDateTime').getRawValue() == '') { - top.Ext4.getCmp('outHandoverDateTime').setValue(new Date(newDate)); + setStartDate(top.Ext4, 'yyyy/MM/dd HH:mm', 'outHandoverDateTime'); } } } else if (status == '已维修') { @@ -301,14 +301,14 @@ if (!timeObj.returnHandoverDateTimeIsHidden) { top.Ext4.getCmp('returnHandoverDateTime').allowBlank = false; if (top.Ext4.getCmp('returnHandoverDateTime').getRawValue() == '') { - top.Ext4.getCmp('returnHandoverDateTime').setValue(new Date(newDate)); + setStartDate(top.Ext4, 'yyyy/MM/dd HH:mm', 'returnHandoverDateTime'); } } } else if (status == '报废') { if (!timeObj.discardDateTimeIsHidden) { top.Ext4.getCmp('discardDateTime').allowBlank = false; if (top.Ext4.getCmp('discardDateTime').getRawValue() == '') { - top.Ext4.getCmp('discardDateTime').setValue(new Date(newDate)); + setStartDate(top.Ext4, 'yyyy/MM/dd HH:mm', 'discardDateTime'); } } } @@ -585,15 +585,19 @@ border: 0, style: 'margin-bottom:10px', items: [{ - xtype: 'datefield', + xtype:'datefield', fieldLabel: '登记时间', labelAlign: 'right', id: 'registerDateTime', name: 'registerDateTime', format: 'Y-m-d H:i', allowBlank: false, anchor: '95%', - value: new Date(newDate) + listeners: { + render: function () { + setStartDate(top.Ext4, 'yyyy/MM/dd HH:mm', 'registerDateTime'); + } + } }] }, { columnWidth: 0.33,