下面是一个编辑界面,先LOAD已经有的数据,然后对整个FORM进行编辑提交,问题一PANEL部分元素不能正常显示,如果加上DOLAYOUT(),值又不能显示,重新LOAD,编辑过的东西又没有了,请高手帮忙,代码如下var Triggergen=new Ext.form.TriggerField({fieldLabel: '计划员',name :'ima67',allowBlank:true,width:140,triggerClass:'x-form-search-trigger'});
Triggergen.onTriggerClick = function(){
//采购员
var storegen=new Ext.data.Store({
proxy: new Ext.data.ScriptTagProxy({url:'/erp/servlet/EasyTable_edit_commonControl?Submitname=getData'}),
reader: new Ext.data.JsonReader({totalProperty:'totalProperty', root:'root'},[{name: 'gen01'},{name: 'gen02'},{name: 'sel'}]),
baseParams:{dbColumn:"gen_file,gen01 asc,gen01,gen02"}
});
storegen.load({params:{start:0,limit:20}});
Ext.global.simpTrigger(Triggergen,storegen,"gen01","gen02","采购员");
};    var formPanel = new Ext.form.FormPanel({
      baseCls: 'x-plain',        
      labelWidth: 80,
      width:798,
      height:490,
      frame :true,        
      url:"/erp/servlet/EasyTable_edit_commonControl",        
  reader: new Ext.data.JsonReader({            
   root: 'results'        
   }, ['ima01','ima02','ima021','ima06','ima08','ima05','ima03','ima70','ima55','ima55_fac','ima10','ima56','ima561','ima562','ima59','ima60','ima61','ima62','ima58','ima67','ima68','ima69','ima63','ima63_fac','ima108','ima64','ima641']
  ),        
  items: [{
        layout:'column',
        border:false,
        items:[{
            columnWidth:.5,layout: 'form',border:false,
            items: [
{xtype:'textfield',id: 'ima01',fieldLabel: '物料编号',name: 'ima01',height:20,allowBlank:false, anchor:'50%',maxLength:20,readOnly :true}, 
            {xtype:'textfield',fieldLabel: '产品名称',name: 'ima02',height:20,anchor:'90%',maxLength:30,readOnly :true}, 
            {xtype:'textfield',fieldLabel: '规格',name: 'ima021',height:20,anchor:'90%',maxLength:30,readOnly :true}, 
            comboimz,
            new Ext.form.ComboBox({store: new Ext.data.SimpleStore({fields: ['value', 'descp'],data :Ext.statesdata.imz_file_imz08}),fieldLabel: '来源码', displayField:'descp',valueField:'value', mode:'local',hiddenName:'ima08', width:120, maxHeight:100, tabIndex:4,readOnly :true}),
            {xtype:'textfield',fieldLabel: '当前版本',name: 'ima05',anchor:'50%',height:20,maxLength:2,readOnly :true},
            {xtype:'textfield',fieldLabel: '目录编号',name: 'ima03',anchor:'80%',height:20,maxLength:20,readOnly :true}
        ]
        }]
  },{
        xtype:'tabpanel',plain:true,activeTab: 1,height:360,defaults:{bodyStyle:'padding:10px'},
        items:[{
            title:'工单/发料',
            layout:'column',
            border:false,
//            listeners: {
//                activate: this.doLayout() 
//            },
            items: [{
            columnWidth:.4,layout: 'form',border:false,labelWidth :120,frame:true,
                items: [
                {
             layout:'column',border:false,
             items:[{
             columnWidth:.6,layout: 'form',border:false,items: 
             [{fieldLabel: '消耗型料件',xtype:'radio',name: 'ima70',inputValue:'Y',checked :false,boxLabel:'是'}]
             },{
             columnWidth:.3,layout: 'form',border:false,labelWidth:0,labelSeparator:'',hideLabels:true,items: 
             [{fieldLabel: '',xtype:'radio',name: 'ima70',inputValue:'N',checked :true,boxLabel:'否'}]
             }]
},
{xtype:'combo',store: storegfe,fieldLabel: '生产单位', loadingText:'正在加载...', displayField:'descp',valueField:'value', mode:'local',triggerAction:'all', forceSelection :true, hiddenName:'ima55', emptyText:'请选择...',editable:true,allowBlank:true,width:100, maxHeight:100, tabIndex:4},
{xtype:'numberfield',fieldLabel: '生产/库存单位换算',name: 'ima55_fac',width: 100,maxLength:16,decimalPrecision:8,value:'0.000'},
{xtype:'combo',store: new Ext.data.SimpleStore({fields: ['value', 'descp'],data :Ext.statesdata.ima_file_ima10}),fieldLabel: '工单开立展开选项', loadingText:'正在加载...', displayField:'descp',valueField:'value', mode:'local',triggerAction:'all', forceSelection :true, hiddenName:'ima10', emptyText:'请选择...',editable:true,allowBlank:true,width:100, maxHeight:100, tabIndex:4},
         {xtype:'numberfield',fieldLabel: '生产单位批量',name: 'ima56',width: 100,maxLength:16,decimalPrecision:8,value:'0.000'},
         {xtype:'numberfield',fieldLabel: '最少生产数量',name: 'ima561',width: 100,maxLength:15,decimalPrecision:3,value:'0.000'},
         {xtype:'numberfield',fieldLabel: '生产时损耗率',name: 'ima562',width: 100,maxLength:6,decimalPrecision:3,value:'0.000'}]
            },{
            columnWidth:.4,layout: 'form',border:false,frame:true,labelWidth :120,
                items: [
                 {xtype:'combo',store: storegfe,fieldLabel: '发料单位', loadingText:'正在加载...', displayField:'descp',valueField:'value', mode:'local',triggerAction:'all', forceSelection :true, hiddenName:'ima63', emptyText:'请选择...',editable:true,allowBlank:true,width:100, maxHeight:100, tabIndex:4},
{xtype:'numberfield',fieldLabel: '发料/库存单位换算',name: 'ima63_fac',width: 100,maxLength:16,decimalPrecision:8,value:'0.000'},
{
             layout:'column',border:false,
             items:[{
             columnWidth:.6,layout: 'form',border:false,items: 
             [{fieldLabel: '发料前调拨',xtype:'radio',name: 'ima108',inputValue:'Y',checked :false,boxLabel:'是'}]
             },{
             columnWidth:.3,layout: 'form',border:false,labelWidth:0,labelSeparator:'',hideLabels:true,items: 
             [{fieldLabel: '',xtype:'radio',name: 'ima108',inputValue:'N',checked :true,boxLabel:'否'}]
             }]
},
         {xtype:'numberfield',fieldLabel: '发料单位批量',name: 'ima64',width: 100,maxLength:16,decimalPrecision:8,value:'0.000'},
         {xtype:'numberfield',fieldLabel: '最少发料数量',name: 'ima641',width: 100,maxLength:15,decimalPrecision:3,value:'0.000'}]
            }]
        },{
            title:'计划/前置时间',
            layout:'column',
            border:false,
            items: [{
            columnWidth:.4,layout: 'form',border:false,frame:true,labelWidth :120,
                items: [
                 Triggergen,
            {xtype:'numberfield',fieldLabel: '需求时距',name: 'ima68',width: 100,maxLength:9,decimalPrecision:3,value:'0.000'},
            {xtype:'numberfield',fieldLabel: '计划时距',name: 'ima69',width: 100,maxLength:9,decimalPrecision:3,value:'0.000'}
        ]
            },{
            columnWidth:.4,layout: 'form',border:false,frame:true,
                items: [
{xtype:'numberfield',fieldLabel: '固定前置时间',name: 'ima59',width: 100,maxLength:9,decimalPrecision:3,value:'0.000'},
{xtype:'numberfield',fieldLabel: '变动前置时间',name: 'ima60',width: 100,maxLength:9,decimalPrecision:3,value:'0.000'},
{xtype:'numberfield',fieldLabel: 'QC前置时间',name: 'ima61',width: 100,maxLength:9,decimalPrecision:3,value:'0.000'},
{xtype:'numberfield',fieldLabel: '累计前置时间',name: 'ima62',width: 100,maxLength:9,decimalPrecision:3,value:'0.000'},
{xtype:'numberfield',fieldLabel: '标准人工工时',name: 'ima58',width: 100,maxLength:15,decimalPrecision:3,value:'0.000'}]
            }]
        }]
  }]
    });现在我让activeTab: 1,这样第一个panel就不能显示了,如果再后面加上    formPanel.findByType("tabpanel")[0].on('tabchange',function(tp,p){
     p.doLayout();
// formPanel.form.load({
//   method :"GET",
//   url:"/erp/servlet/EasyTable_edit_commonControl?Submitname=getInfo&dbColumn=ima_file,ima01&columnValue="+id+"&backInfo=ima01,ima02,ima021,ima06,ima08,ima05,ima03,ima70,ima55,ima55_fac,ima10,ima56,ima561,ima562,ima59,ima60,ima61,ima62,ima58,ima67,ima68,ima69,ima63,ima63_fac,ima108,ima64,ima641",
//   waitMsg:'加载中...'});
    });之前LOAD的值又不会显示