|
@@ -10,61 +10,115 @@ Ext.define('saas.view.money.report.OtherIODetail', {
|
|
|
|
|
|
|
|
viewName: 'money-report-otheriodetail',
|
|
viewName: 'money-report-otheriodetail',
|
|
|
|
|
|
|
|
- groupField: null,
|
|
|
|
|
- // listUrl: '/api/money/report/recDetail',
|
|
|
|
|
|
|
+ groupField: 'bl_bankname',
|
|
|
|
|
+ listUrl: '/api/money/report/otheriodetail',
|
|
|
defaultCondition: null,
|
|
defaultCondition: null,
|
|
|
reportTitle: '其他收支明细表',
|
|
reportTitle: '其他收支明细表',
|
|
|
- QueryWidth: 0.25,
|
|
|
|
|
|
|
+ QueryWidth: 0.2,
|
|
|
searchItems: [{
|
|
searchItems: [{
|
|
|
- xtype: 'customerDbfindTrigger',
|
|
|
|
|
- name: 'pi_custname',
|
|
|
|
|
- fieldLabel: '资金账户',
|
|
|
|
|
- columnWidth: 0.25
|
|
|
|
|
|
|
+ xtype: 'bandinfoDbfindTrigger',
|
|
|
|
|
+ name: 'bl_bankname',
|
|
|
|
|
+ emptyText: '资金账户',
|
|
|
|
|
+ columnWidth: 0.15,
|
|
|
|
|
+ dbfinds:[
|
|
|
|
|
+ {
|
|
|
|
|
+ from:'bk_bankname',to:'bl_bankname'
|
|
|
|
|
+ }]
|
|
|
}, {
|
|
}, {
|
|
|
- xtype : "remotecombo",
|
|
|
|
|
- storeUrl:'/api/document/customerkind/getCombo',
|
|
|
|
|
- name : "cu_type",
|
|
|
|
|
- emptyText : "收支类别",
|
|
|
|
|
- columnWidth: 0.25,
|
|
|
|
|
- hiddenBtn:true
|
|
|
|
|
|
|
+ // 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',
|
|
xtype: 'condatefield',
|
|
|
- name: 'rb_date',
|
|
|
|
|
|
|
+ name: 'bl_date',
|
|
|
fieldLabel: '日期',
|
|
fieldLabel: '日期',
|
|
|
- columnWidth: 0.25
|
|
|
|
|
|
|
+ columnWidth: 0.5
|
|
|
}],
|
|
}],
|
|
|
|
|
|
|
|
reportColumns: [{
|
|
reportColumns: [{
|
|
|
text: '日期',
|
|
text: '日期',
|
|
|
- dataIndex: 'pi_inoutno',
|
|
|
|
|
|
|
+ dataIndex: 'bl_date',
|
|
|
width: 200
|
|
width: 200
|
|
|
}, {
|
|
}, {
|
|
|
text: '单据编号',
|
|
text: '单据编号',
|
|
|
- dataIndex: 'pi_custcode',
|
|
|
|
|
|
|
+ dataIndex: 'bl_code',
|
|
|
width: 200,
|
|
width: 200,
|
|
|
}, {
|
|
}, {
|
|
|
text: '收支类别',
|
|
text: '收支类别',
|
|
|
- dataIndex: 'pi_custname',
|
|
|
|
|
|
|
+ dataIndex: 'bl_kind',
|
|
|
width: 200,
|
|
width: 200,
|
|
|
}, {
|
|
}, {
|
|
|
text: '资金账户',
|
|
text: '资金账户',
|
|
|
- dataIndex: 'pi_class',
|
|
|
|
|
|
|
+ dataIndex: 'bl_bankname',
|
|
|
width: 150
|
|
width: 150
|
|
|
}, {
|
|
}, {
|
|
|
text: '收入',
|
|
text: '收入',
|
|
|
- dataIndex: 'pu_buyername',
|
|
|
|
|
- width: 150
|
|
|
|
|
|
|
+ dataIndex: 'bl_income',
|
|
|
|
|
+ width: 150,
|
|
|
|
|
+ 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: '支出',
|
|
text: '支出',
|
|
|
- dataIndex: 'rb_date',
|
|
|
|
|
- width: 150
|
|
|
|
|
|
|
+ dataIndex: 'bl_spending',
|
|
|
|
|
+ width: 150,
|
|
|
|
|
+ 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: '往来单位',
|
|
text: '往来单位',
|
|
|
- dataIndex: 'pd_pdno',
|
|
|
|
|
|
|
+ dataIndex: 'bl_assname',
|
|
|
width: 150,
|
|
width: 150,
|
|
|
}, {
|
|
}, {
|
|
|
text: '备注',
|
|
text: '备注',
|
|
|
- dataIndex: 'cu_beginaramount',
|
|
|
|
|
|
|
+ dataIndex: 'bl_remark',
|
|
|
width: 150
|
|
width: 150
|
|
|
}]
|
|
}]
|
|
|
});
|
|
});
|