Ext.define('saas.view.document.vendor.BasePanel', { extend: 'saas.view.core.base.BasePanel', xtype: 'document-vendor-basepanel', controller: 'document-vendor-basepanel', viewModel: 'document-vendor-basepanel', searchField:[{ xtype : "remotecombo", storeUrl:'/api/document/vendorkind/getCombo', name : "ve_type", emptyText : "请选择供应商类型", columnWidth : 0.25, hiddenBtn:true },{ xtype : "textfield", name : "ve_name", emptyText : "供应商名称", columnWidth : 0.25, },{ xtype : "textfield", name : "ve_code", emptyText : "供应商编号", columnWidth : 0.25, }], //字段属性 _formXtype:'document-vendor-formpanel', _title:'供应商资料', // _dataUrl:'/api/ducument/vendor/list', _deleteUrl:'/api/document/vendor/delete/', _batchOpenUrl:'/api/document/vendor/batchOpen', _batchCloseUrl:'/api/document/vendor/batchClose', _batchDeleteUrl:'/api/document/vendor/batchDelete', gridConfig: { idField: 'id', codeField: 've_code', statusCodeField:'ve_statuscode', dataUrl: '/api/document/vendor/list', columns : [{ text : "供应商id", width : 0, dataIndex : "id", xtype : "numbercolumn", },{ text : "供应商编号", width : 200.0, dataIndex : "ve_code", xtype : "", }, { text : "供应商名称", dataIndex : "ve_name", width : 120.0, xtype : "", }, { text : "供应商类型", dataIndex : "ve_type", width : 120.0, xtype : "", }, { text : "供应商状态", dataIndex : "ve_status", width : 120.0, xtype : "" }, { text : "供应商状态码", dataIndex : "ve_statuscode", width : 0, xtype : "" }, { text : "供应商UU", dataIndex : "ve_uu", width : 120.0, xtype : "", }, { text : "默认供应商联系人", dataIndex : "vc_name", flex : 1.0, xtype : "", }] }, refresh:function(){ this.items.items[0].store.load() } });