Ext.define('saas.view.document.customer.BasePanel', { extend: 'saas.view.core.base.BasePanel', xtype: 'document-customer-basepanel', controller: 'document-customer-basepanel', viewModel: 'document-customer-basepanel', searchField:[{ xtype : "remotecombo", storeUrl:basePath+'ducument/customerkind/getCombo', name : "cu_type", emptyText : "请选择客户类型", allowBlank : true, queryMode: 'local', displayField: 'display', valueField: 'value', columnWidth : 0.25, etc:{ customerkind:{ keyField:'id', dataField:'ck_name', reqUrl:basePath+'ducument/customerkind/save', delUrl:basePath+'ducument/customerkind/delete' } }, addHandler:function(b){ var form = this.ownerCmp.ownerCt.ownerCt; this.dialog = form.getController().getView().add({ xtype: 'document-kind-childwin', bind: { title: '新增客户类型' }, dataKind:'customerkind', belong:this.ownerCmp.etc['customerkind'], _parent:form, record:null, session: true }); this.dialog.show(); } }], //字段属性 _formXtype:'document-customer-formpanel', _title:'客户资料', // _dataUrl:basePath+'ducument/customer/list', _batchOpenUrl:basePath+'ducument/customer/batchOpen', _batchCloseUrl:basePath+'ducument/customer/batchClose', _batchDeleteUrl:basePath+'ducument/customer/batchDelete', gridConfig: { idField: 'id', codeField: 'cu_code', dataUrl: basePath+'ducument/customer/list', columns : [{ text : "客户id", width : 0, dataIndex : "id", xtype : "numbercolumn", },{ text : "客户编号", width : 200.0, dataIndex : "cu_code", }, { text : "客户名称", dataIndex : "cu_name", width : 120.0, }, { text : "客户状态", dataIndex : "cu_status", width : 120.0, }, { text : "客户UU", dataIndex : "cu_uu", width : 120.0, }, { text : "默认客户地址", dataIndex : "ca_address", width : 120.0, }, { text : "默认客户联系人", dataIndex : "cc_name", flex : 1.0, }] }, });