| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- /**
- * 其他收支明细表
- */
- 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) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- },
- summaryType: 'sum',
- summaryRenderer: function(v) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- }
- }, {
- text: '支出(元)',
- dataIndex: 'bl_spending',
- exportFormat: 'Amount',
- width: 120,
- renderer : function(v) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- },
- summaryType: 'sum',
- summaryRenderer: function(v) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- }
- }, {
- text: '往来单位',
- dataIndex: 'bl_assname',
- width: 200,
- }, {
- text: '备注',
- dataIndex: 'bl_remark',
- width: 250
- }]
- });
|