Index: ssts-web/src/main/webapp/disinfectsystem/deviceMaintenance/deviceMaintenanceView.js =================================================================== diff -u -r13080 -r15609 --- ssts-web/src/main/webapp/disinfectsystem/deviceMaintenance/deviceMaintenanceView.js (.../deviceMaintenanceView.js) (revision 13080) +++ ssts-web/src/main/webapp/disinfectsystem/deviceMaintenance/deviceMaintenanceView.js (.../deviceMaintenanceView.js) (revision 15609) @@ -18,7 +18,7 @@ var consumptiveConfigStore; var selectModel; -function addDeviceMaintenance() { +function addDeviceMaintenance(deviceMaintenanceId) { consumptiveConfigStore = new top.Ext.data.Store({ proxy : new Ext.data.HttpProxy({ @@ -170,8 +170,13 @@ allowBlank: false, altFormats:'Y-m-d|Y-n-j|y-n-j|y-m-j|y-m-d|y-n-d|Y-n-d|Y-m-j|Ymd|Ynj|ynj|ymj|ymd|ynd|Ynd|Ymj|Y/m/d|Y/n/j|y/n/j|y/m/j|y/m/d|y/n/d|Y/n/d|Y/m/j', format:'Y-m-d H:i', - value: new Date(), - anchor : '95%' +// value: new Date(), + anchor : '95%', + listeners : { + render : function() {//故障时间,取服务器时间 (cjr) + (!deviceMaintenanceId) ? setStartDate(top.Ext, 'yyyy/MM/dd HH:mm', 'breakdownTime') : (function(){})(); + } + } }] },{ columnWidth : .5, @@ -186,8 +191,13 @@ altFormats:'Y-m-d|Y-n-j|y-n-j|y-m-j|y-m-d|y-n-d|Y-n-d|Y-m-j|Ymd|Ynj|ynj|ymj|ymd|ynd|Ynd|Ymj|Y/m/d|Y/n/j|y/n/j|y/m/j|y/m/d|y/n/d|Y/n/d|Y/m/j', allowBlank: false, format:'Y-m-d H:i', - value: new Date(), - anchor : '100%' +// value: new Date(), + anchor : '100%', + listeners : { + render : function() {//维修时间,取服务器时间 (cjr) + (!deviceMaintenanceId) ? setStartDate(top.Ext, 'yyyy/MM/dd HH:mm', 'maintenanceTime') : (function(){})(); + } + } }] },{ columnWidth : 1, @@ -349,7 +359,7 @@ return false; } id = records[0].data['id']; - addDeviceMaintenance(); + addDeviceMaintenance(id); top.Ext.getCmp('deviceMaintenanceForm').form.load({ url : WWWROOT + '/disinfectSystem/deviceMaintenanceAction!loadDeviceMaintenance.do', method : 'GET',