Ext.define('saas.view.money.report.AccountBalance', { extend: 'saas.view.core.report.ReportPanel', xtype: 'monry-report-accountbalance', controller: 'money-report-accountbalance', viewModel: 'money-report-accountbalance', viewName: 'money-report-accountbalance', groupField: 'bankname', groupHeaderTpl: '账户名称: {[values.rows[0].data.bankname]}', listUrl: '/api/money/report/accountBalance', defaultCondition: null, reportTitle: '账户收支明细表', QueryWidth: 0.25, searchItems: [{ xtype: 'bandinfoDbfindTrigger', name: 'bankname', fieldLabel: '账户名称', columnWidth: 0.25 }, { xtype: 'condatefield', name: 'date', fieldLabel: '日期', columnWidth: 0.5 }], reportColumns: [{ text: '日期', dataIndex: 'date', xtype: 'datecolumn', width: 110 }, { text: '账户编号', dataIndex: 'bankcode', width: 150 }, { text: '账户名称', dataIndex: 'bankname', width: 150 },{ text: '币别', dataIndex: 'currency', width: 80, }, { text: '业务类型', dataIndex: 'kind', width: 100 }, { text: '收入(元)', dataIndex: 'inamount', exportFormat: 'Amount', xtype: 'numbercolumn', width: 120, renderer: function(v, m, r) { return saas.util.BaseUtil.numberFormat(v, 2, true); }, summaryType: 'sum', summaryRenderer: function(v, d, f, m) { return saas.util.BaseUtil.numberFormat(v, 2, true); } }, { text: '支出(元)', dataIndex: 'outamount', xtype: 'numbercolumn', exportFormat: 'Amount', width: 120, renderer: function(v, m, r) { return saas.util.BaseUtil.numberFormat(v, 2, true); }, summaryType: 'sum', summaryRenderer: function(v, d, f, m) { return saas.util.BaseUtil.numberFormat(v, 2, true); } }, { text: '往来单位', dataIndex: 'bname', width: 200 }, { text: '收付款人', dataIndex: 'bmanname', width: 80 }, { text: '备注', dataIndex: 'remark', width: 250, }] });