| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- Ext.define('saas.view.money.report.RecDetail', {
- extend: 'saas.view.core.report.ReportPanel',
- xtype: 'monry-report-recdetail',
- controller: 'money-report-recdetail',
- viewModel: 'money-report-recdetail',
- viewName: 'money-report-recdetail',
- groupField: null,
- listUrl: '/api/money/report/recDetail',
- defaultCondition: null,
- reportTitle: '应收账款明细',
- QueryWidth:0.1,
- //筛选:客户、日期(必填)
- searchItems: [ {
- xtype: 'dbfindtrigger',
- name: 'pi_custname',
- fieldLabel: '客户名称',
- columnWidth: 0.2
- }, {
- xtype: 'condatefield',
- name: 'pb_date',
- fieldLabel: '单据日期',
- columnWidth: 0.5
- }],
- reportColumns: [
- {
- text: 'id',
- dataIndex: 'pi_id',
- hidden: true
- }, {
- text: '单号',
- dataIndex: 'pi_inoutno',
- width: 200
- }, {
- text: '客户编号',
- dataIndex: 'pi_custcode',
- width: 200
- }, {
- text: '客户名称',
- dataIndex: 'pi_custname',
- width: 200
- }, {
- text: '单据类型',
- dataIndex: 'pi_class',
- width: 200
- },{
- text: '业务员',
- dataIndex: 'pu_buyername',
- width: 200
- }, {
- text: '单据日期',
- dataIndex: 'pb_date',
- width: 200,
- }, {
- text: '序号',
- dataIndex: 'pd_pdno',
- xtype: 'numbercolumn'
- },{
- text:'期初应收',
- dataIndex:'cu_beginaramount',
- xtype: 'numbercolumn',
- summaryType: 'sum',
- summaryRenderer: function(v) {
- var arr = (v + '.').split('.');
- var xr = (new Array(arr[1].length)).fill('0');
- var format = '0.' + xr.join();
- }
- },{
- text:'本期收款金额',
- xtype: 'numbercolumn',
- dataIndex:'pb_pdamount',
- xtype: 'numbercolumn',
- summaryType: 'sum',
- summaryRenderer: function(v) {
- var arr = (v + '.').split('.');
- var xr = (new Array(arr[1].length)).fill('0');
- var format = '0,000.' + xr.join();
- }
- },{
- text: '应收余额',
- xtype: 'numbercolumn',
- dataIndex: 'mustpay',
- xtype: 'numbercolumn',
- summaryType: 'sum',
- summaryRenderer: function(v) {
- var arr = (v + '.').split('.');
- var xr = (new Array(arr[1].length)).fill('0');
- var format = '0.' + xr.join();
- }
- }, {
- text: '应收日期',
- dataIndex: 'mustdate'
- }, {
- text: '单据总金额',
- dataIndex: 'pi_total',
- xtype: 'numbercolumn'
- }, {
- text: '备注',
- dataIndex: 'pd_unit'
- }]
- });
|