/** * 其他收支明细表 */ Ext.define('saas.view.money.report.OtherIODetail', { extend: 'saas.view.core.report.ReportPanel', xtype: 'monry-report-otheriodetail', controller: 'money-report-otheriodetail', viewModel: 'money-report-otheriodetail', viewName: 'money-report-otheriodetail', groupField: 'bl_bankname', groupHeaderTpl: '资金账户: {[values.rows[0].data.bl_bankname]}', listUrl: '/api/money/report/otheriodetail', defaultCondition: null, reportTitle: '其他收支明细表', QueryWidth: 0.2, searchItems: [{ xtype: 'bandinfoDbfindTrigger', name: 'bl_bankname', emptyText: '资金账户', columnWidth: 0.15, dbfinds:[ { from:'bk_bankname',to:'bl_bankname' }] }, { // xtype : "remotecombo", // storeUrl:'/api/document/customerkind/getCombo', // name : "bl_kind", // emptyText : "收支类别", // columnWidth: 0.25, // hiddenBtn:true, xtype: 'combobox', name: 'bl_kind', queryMode: 'local', displayField: 'display', valueField: 'value', emptyText : '收支类别', editable:false, columnWidth: 0.15, store: Ext.create('Ext.data.ArrayStore', { fields: ['value', 'display'], data: [ ["ALL", "全部"], ["其他支出单", "其他支出单"], ["其他收入单", "其他收入单"] ] }), getCondition: function(value) { if(value == 'ALL'||value == null) { return '1=1'; }else { return 'bl_kind=\'' + value + '\''; } } }, { xtype: 'condatefield', name: 'bl_date', fieldLabel: '日期', columnWidth: 0.5 }], reportColumns: [{ text: '日期', dataIndex: 'bl_date', width: 110 }, { text: '单据编号', dataIndex: 'bl_code', width: 150, }, { text: '收支类别', dataIndex: 'bl_kind', width: 100, }, { text: '资金账户', dataIndex: 'bl_bankname', width: 150 }, { text: '收入', dataIndex: 'bl_income', exportFormat: 'Amount', width: 120, renderer : function(v) { var arr = (v + '.').split('.'); var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0'); var format = '0,000.' + xr.join(''); return Ext.util.Format.number(v, format); }, summaryType: 'sum', summaryRenderer: function(v) { var arr = (v + '.').split('.'); var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0'); var format = '0,000.' + xr.join(''); return Ext.util.Format.number(v, format); } }, { text: '支出', dataIndex: 'bl_spending', exportFormat: 'Amount', width: 120, renderer : function(v) { var arr = (v + '.').split('.'); var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0'); var format = '0,000.' + xr.join(''); return Ext.util.Format.number(v, format); }, summaryType: 'sum', summaryRenderer: function(v) { var arr = (v + '.').split('.'); var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0'); var format = '0,000.' + xr.join(''); return Ext.util.Format.number(v, format); } }, { text: '往来单位', dataIndex: 'bl_assname', width: 200, }, { text: '备注', dataIndex: 'bl_remark', width: 250 }] });