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:[{ editable:false, hiddenBtn:true, xtype : "remotecombo", storeUrl: '/api/document/producttype/getCombo', name : "pr_kind", emptyText : "请选择物料类型" },{ xtype : "textfield", name : "pr_detail", emptyText : "物料名称", columnWidth : 0.25, },{ xtype : "textfield", name : "pr_code", emptyText : "物料编号", columnWidth : 0.25, },{ xtype : "textfield", name : "pr_unit", emptyText : "物料单位", columnWidth : 0.25, }], //字段属性 _formXtype:'document-product-formpanel', _title:'物料资料', _deleteUrl:'/api/document/product/delete/', // _dataUrl:'http://192.168.253.31:9480/product/list', _batchOpenUrl:'/api/document/product/batchOpen', _batchCloseUrl:'/api/document/product/batchClose', _batchDeleteUrl:'/api/document/product/batchDelete', gridConfig: { idField: 'id', codeField: 'pr_code', statusCodeField:'pr_statuscode', dataUrl: '/api/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_statuscode", width : 0, xtype : "" }, { text : "物料种类", dataIndex : "pr_kind", width : 120.0, xtype : "", }] }, refresh:function(){ this.items.items[0].store.load() } });