Index: ssts-web/src/main/webapp/disinfectsystem/materialmanager/materialEntryView.js =================================================================== diff -u -r12724 -r12830 --- ssts-web/src/main/webapp/disinfectsystem/materialmanager/materialEntryView.js (.../materialEntryView.js) (revision 12724) +++ ssts-web/src/main/webapp/disinfectsystem/materialmanager/materialEntryView.js (.../materialEntryView.js) (revision 12830) @@ -142,8 +142,8 @@ listeners : { load : function(store,records) { if(records.length > 0 && id == "") { - if (top.Ext.getCmp('wareHouse')) { - top.Ext.getCmp('wareHouse').setValue(records[0].data.id); + if (top.Ext.getCmp('wareHouseName')) { + top.Ext.getCmp('wareHouseName').setValue(records[0].data.id); } } } @@ -178,10 +178,6 @@ name : 'wareHouseId', id : 'wareHouseId' },{ - xtype : 'hidden', - name : 'wareHouseName', - id : 'wareHouseName' - },{ id:'serialNum', columnWidth : .33, layout : 'form', @@ -235,8 +231,8 @@ items : [{ xtype : 'combo', fieldLabel : '仓库', - id : 'wareHouse', - name : 'wareHouse', + id : 'wareHouseName', + name : 'wareHouseName', editable:false, valueField : 'id', displayField : 'name', @@ -495,8 +491,7 @@ } top.Ext.getCmp("items").setValue(Ext.encode(jsonArray)); - top.Ext.getCmp("wareHouseId").setValue(top.Ext.getCmp("wareHouse").getValue()); - top.Ext.getCmp("wareHouseName").setValue(top.Ext.getCmp("wareHouse").getRawValue()); + top.Ext.getCmp("wareHouseId").setValue(top.Ext.getCmp("wareHouseName").getValue()); form.form.submit({ url : WWWROOT + '/disinfectSystem/MaterialEntryAction!saveMaterialEntryAction.do', @@ -600,7 +595,7 @@ waitMsg : '正在加载数据,请稍候', params : {id : id}, success : function(form, action) { - top.Ext.getCmp("time").setValue(Ext.util.Format.date(new Date(action.result.data.time.time), 'Y-m-d')); + top.Ext.getCmp("time").setValue(Ext.util.Format.date(new Date(action.result.data.time.time), 'Y-m-d H:i')); for(var i = 0 ;i < action.result.data.itemsList.length ;i++){ var materialName = action.result.data.itemsList[i].materialDefinition.name; var specification = action.result.data.itemsList[i].materialDefinition.specification;