| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- /**
- * Created by zhouy on 2018/10/18.
- */
- Ext.define('saas.view.document.currencys.DataList', {
- extend: 'saas.view.document.kind.Kind',
- xtype: 'document-currencys-datalist',
- viewModel: 'document-currencys-datalist',
- controller:'document-currencys-datalist',
- defaultType:'currencys',
- windowType:'document-currencys-window',
- tbar: ['->',{
- xtype:'button',
- text:'新增',
- listeners: {
- click: 'onAdd'
- }
- },{
- xtype:'button',
- text:'刷新',
- listeners: {
- click: 'onRefresh'
- }
- }],
- etc:{
- currencys:{
- columns: [{
- text: '币别',
- dataIndex: 'cr_name',
- flex: 1,
- renderer:function(a,b,c){
- if(c.get('cr_standard')==1){
- return a + '(本位币)'
- }
- return a;
- }
- },{
- text: '默认汇率',
- dataIndex: 'cr_rate',
- flex: 1
- }],
- keyField:'id',
- reqUrl:'/api/document/currency/save',
- delUrl:'/api/document/currency/delete'
- },
- currencysadd:{
- columns: [{
- text: '币别',
- dataIndex: 'cr_name',
- flex: 1
- },{
- text: '默认汇率',
- dataIndex: 'cr_rate',
- flex: 1
- }],
- keyField:'id',
- reqUrl:'/api/document/currency/save',
- delUrl:'/api/document/currency/delete'
- }
- },
- listeners:{
- afterrender:function(p){
- p.getViewModel().setData({title:'币别'});
- }
- }
- })
|