Ext.define('saas.view.document.product.BasePanel', { extend: 'saas.view.core.base.BasePanel', xtype: 'document-product-basepanel', controller: 'document-product-basepanel', viewModel: 'document-product-basepanel', searchField:[{ xtype : "remotecombo", storeUrl: basePath + 'document/producttype/getCombo', name : "pr_type", emptyText : "请选择物料类型", allowBlank : true, queryMode: 'local', displayField: 'display', valueField: 'value', columnWidth : 0.25, etc:{ producttype:{ keyField:'id', dataField:'pr_name', reqUrl:basePath + 'document/producttype/save', delUrl:basePath + 'document/producttype/delete' } }, addHandler:function(b){ var form = this.ownerCmp.ownerCt.ownerCt; this.dialog = form.getController().getView().add({ xtype: 'document-kind-childwin', bind: { title: '新增物料类型' }, dataKind:'producttype', belong:this.ownerCmp.etc['producttype'], _parent:form, record:null, session: true }); this.dialog.show(); } }], //字段属性 _formXtype:'document-product-formpanel', _title:'物料资料', // _dataUrl:'http://192.168.253.31:9480/product/list', _batchOpenUrl:basePath + 'document/product/batchOpen', _batchCloseUrl:basePath + 'document/product/batchClose', _batchDeleteUrl:basePath + 'document/product/batchDelete', gridConfig: { idField: 'id', codeField: 'pr_code', dataUrl: basePath + 'document/product/list', columns : [{ text : "id", width : 0, dataIndex : "id", xtype : "numbercolumn", },{ text : "物料编号", width : 200.0, dataIndex : "pr_code", xtype : "", }, { text : "物料名称", dataIndex : "pr_detail", width : 120.0, xtype : "", }, { text : "状态", dataIndex : "pr_status", width : 120.0, xtype : "" }, { text : "物料种类", dataIndex : "pr_type", width : 120.0, xtype : "", }] }, });