| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- /*
- * @Description: 数据列表
- * @Author: hy
- * @Date: 2019-08-12 18:33:04
- * @LastEditTime: 2019-08-19 14:55:29
- */
- Ext.define('uas.view.grid.dataList.DataListPanel', {
- extend: 'Ext.grid.Panel',
- xtype: 'dataListPanel',
- requires: [
- 'Ext.toolbar.Paging',
- 'Ext.ux.PreviewPlugin'
- ],
-
- plugins: {
- gridHeaderFilter: true
- },
- emptyText: '无数据',
- loadMask: true,
- viewModel:{
- stores: {
- dataListGridStore:{
- type: 'dataListGridStore',
- autoLoad: true,
- autoDestroy: true
- }
- },
- },
- bind:'{dataListGridStore}',
- // Dispatch named listener and handler methods to this instance
- defaultListenerScope: true,
- tbar: {
- name:'filterToolbar',
- height:46,
- items:['->']
- },
- bbar: {
- xtype: 'pagingtoolbar',
- displayInfo: true,
- displayMsg: '显示 {0} - {1} 每页显示{3} 共 {2} 行',
- emptyMsg: "无数据"
- },
- columns: [{
- dataIndex: 'id',
- text: '序号',
- width:60,
- 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
- }]
- });
|