| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- Ext.define('uas.view.form.formpanel.Grid', {
- extend: 'Ext.grid.Panel',
- xtype: 'formpanel-grid',
- emptyText: '无数据',
- loadMask: true,
- bind:'{formGridStore}',
- initComponent: function () {
- var me = this;
- Ext.apply(me, {
- store: Ext.create('uas.store.FormGridStore',{
- grid: me,
- autoLoad: true,
- autoDestroy: true
- })
- });
- me.callParent(arguments);
- },
- dockedItems: [{
- cls:'x-grid-operateToolbar',
- xtype: 'toolbar',
- dock: 'top',
- height:32,
- defaults:{
- cls:'x-btn-blue',
- xtype:'button',
- margin:'0 0 0 6',
- },
- items:[{
- text:'新增'
- },{
- text:'处理'
- },{
- text:'删除'
- },{
- text:'复制行'
- },{
- text:'粘贴行'
- }]
- }],
- 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
- }]
- });
|