|
|
@@ -0,0 +1,111 @@
|
|
|
+/*
|
|
|
+ * @Description: 数据列表
|
|
|
+ * @Author: hy
|
|
|
+ * @Date: 2019-08-12 18:33:04
|
|
|
+ * @LastEditTime: 2019-08-20 08:54:26
|
|
|
+ */
|
|
|
+Ext.define('uas.view.grid.headerFilter.panel', {
|
|
|
+ extend: 'Ext.grid.Panel',
|
|
|
+ xtype: 'headerFilter-panel',
|
|
|
+ plugins: {
|
|
|
+ gridHeaderFilter: true
|
|
|
+ },
|
|
|
+ emptyText: '无数据',
|
|
|
+ loadMask: true,
|
|
|
+
|
|
|
+ bind:'{dataListGridStore}',
|
|
|
+
|
|
|
+ initComponent: function () {
|
|
|
+ var me = this;
|
|
|
+ Ext.apply(me, {
|
|
|
+ store: Ext.create('uas.store.DataListGridStore',{
|
|
|
+ grid: me,
|
|
|
+ autoLoad: true,
|
|
|
+ autoDestroy: true
|
|
|
+ })
|
|
|
+ });
|
|
|
+ me.callParent(arguments);
|
|
|
+ },
|
|
|
+
|
|
|
+ dockedItems: [{
|
|
|
+ xtype: 'toolbar',
|
|
|
+ dock: 'top',
|
|
|
+ name:'filterToolbar',
|
|
|
+ cls:'x-grid-filterToolbar',
|
|
|
+ height:32,
|
|
|
+ items:[{
|
|
|
+ xtype:'displayfield',
|
|
|
+ value:'筛选条件:'
|
|
|
+ },'->']
|
|
|
+ },{
|
|
|
+ xtype: 'dataListPaging'
|
|
|
+ }],
|
|
|
+
|
|
|
+ columns: [{
|
|
|
+ dataIndex: 'id',
|
|
|
+ text: '序号',
|
|
|
+ width:60,
|
|
|
+ align:'center',
|
|
|
+ locked: true
|
|
|
+ }, {
|
|
|
+ dataIndex: 'code',
|
|
|
+ text: '采购单号',
|
|
|
+ width:240,
|
|
|
+ locked: true,
|
|
|
+ filter: {
|
|
|
+ type:'string'
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ dataIndex: 'status',
|
|
|
+ text: '单据状态',
|
|
|
+ width:100,
|
|
|
+ filter: {
|
|
|
+ type:'string'
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ xtype: 'datecolumn',
|
|
|
+ dataIndex: 'date',
|
|
|
+ text: '下单日期',
|
|
|
+ width: 200,
|
|
|
+ filter: {
|
|
|
+ type:'date'
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ dataIndex: 'vendor',
|
|
|
+ text: '供应商名',
|
|
|
+ width: 220,
|
|
|
+ filter: {
|
|
|
+ type:'string'
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ dataIndex: 'price',
|
|
|
+ text: '含税金额',
|
|
|
+ width:190,
|
|
|
+ filter: {
|
|
|
+ type:'number'
|
|
|
+ }
|
|
|
+ },{
|
|
|
+ dataIndex: 'special',
|
|
|
+ text:'特殊采购',
|
|
|
+ width:120,
|
|
|
+ filter: {
|
|
|
+ type:'combo',
|
|
|
+ combo:[
|
|
|
+ ["true", "是"],
|
|
|
+ ["false", "否"]
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },{
|
|
|
+ dataIndex: 'currency',
|
|
|
+ text: '币别',
|
|
|
+ width:70
|
|
|
+ },{
|
|
|
+ dataIndex: 'recordman',
|
|
|
+ text: '采购员',
|
|
|
+ width:70
|
|
|
+ },{
|
|
|
+ dataIndex: 'auditman',
|
|
|
+ text: '审核人',
|
|
|
+ width:70
|
|
|
+ }]
|
|
|
+});
|