AccountBalance.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. Ext.define('saas.view.money.report.AccountBalance', {
  2. extend: 'saas.view.core.report.ReportPanel',
  3. xtype: 'monry-report-accountbalance',
  4. controller: 'money-report-accountbalance',
  5. viewModel: 'money-report-accountbalance',
  6. viewName: 'money-report-accountbalance',
  7. groupField: null,
  8. listUrl: '/api/money/report/accountBalance',
  9. defaultCondition: null,
  10. reportTitle: '资金账户收支明细',
  11. QueryWidth:0.25,
  12. //筛选:账户、日期(必填)
  13. searchItems: [ {
  14. xtype: 'dbfindtrigger',
  15. name: 'bankcode',
  16. fieldLabel: '账户名称',
  17. columnWidth: 0.25
  18. }, {
  19. xtype: 'condatefield',
  20. name: 'date',
  21. fieldLabel: '日期',
  22. columnWidth: 0.5
  23. }],
  24. reportColumns: [
  25. {
  26. text: '账户编号',
  27. dataIndex: 'bankcode',
  28. width: 200
  29. }, {
  30. text: '账户名称',
  31. dataIndex: 'bankname',
  32. width: 200
  33. }, {
  34. text: '日期',
  35. dataIndex: 'date',
  36. width: 200
  37. }, {
  38. text: '业务类型',
  39. dataIndex: 'kind'
  40. },{
  41. text:'收入',
  42. dataIndex:'outamount',
  43. xtype: 'numbercolumn'
  44. },{
  45. text:'支出',
  46. dataIndex:'thisamount',
  47. xtype: 'numbercolumn'
  48. },{
  49. text: '账户余额',
  50. dataIndex: 'pr_code',
  51. xtype: 'numbercolumn',
  52. renderer : function(v) {
  53. var arr = (v + '.').split('.');
  54. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  55. var format = '0,000.' + xr.join();
  56. return Ext.util.Format.number(v, format);
  57. },
  58. }, {
  59. text: '往来单位',
  60. dataIndex: 'bcode'
  61. }, {
  62. text: '收付款人',
  63. dataIndex: 'bmanname'
  64. }, {
  65. text: '备注',
  66. dataIndex: 'remark'
  67. }]
  68. });