AccountBalance.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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: 'bankname',
  8. groupHeaderTpl: '账户名称: {[values.rows[0].data.bankname]}',
  9. listUrl: '/api/money/report/accountBalance',
  10. defaultCondition: null,
  11. reportTitle: '账户收支明细表',
  12. QueryWidth: 0.25,
  13. searchItems: [{
  14. xtype: 'bandinfoDbfindTrigger',
  15. name: 'bankname',
  16. fieldLabel: '账户名称',
  17. columnWidth: 0.25
  18. }, {
  19. xtype: 'condatefield',
  20. name: 'date',
  21. fieldLabel: '日期',
  22. columnWidth: 0.5
  23. }],
  24. reportColumns: [{
  25. text: '日期',
  26. dataIndex: 'date',
  27. xtype: 'datecolumn',
  28. width: 110
  29. }, {
  30. text: '账户编号',
  31. dataIndex: 'bankcode',
  32. width: 150
  33. }, {
  34. text: '账户名称',
  35. dataIndex: 'bankname',
  36. width: 150
  37. }, {
  38. text: '业务类型',
  39. dataIndex: 'kind',
  40. width: 100
  41. },{
  42. text: '币别',
  43. dataIndex: 'currency',
  44. width: 80,
  45. }, {
  46. text: '收入(元)',
  47. dataIndex: 'inamount',
  48. exportFormat: 'Amount',
  49. xtype: 'numbercolumn',
  50. width: 120,
  51. renderer: function(v, m, r) {
  52. return saas.util.BaseUtil.numberFormat(v, 2, true);
  53. },
  54. summaryType: 'sum',
  55. summaryRenderer: function(v, d, f, m) {
  56. return saas.util.BaseUtil.numberFormat(v, 2, true);
  57. }
  58. }, {
  59. text: '支出(元)',
  60. dataIndex: 'outamount',
  61. xtype: 'numbercolumn',
  62. exportFormat: 'Amount',
  63. width: 120,
  64. renderer: function(v, m, r) {
  65. return saas.util.BaseUtil.numberFormat(v, 2, true);
  66. },
  67. summaryType: 'sum',
  68. summaryRenderer: function(v, d, f, m) {
  69. return saas.util.BaseUtil.numberFormat(v, 2, true);
  70. }
  71. }, {
  72. text: '往来单位',
  73. dataIndex: 'bname',
  74. width: 200
  75. }, {
  76. text: '收付款人',
  77. dataIndex: 'bmanname',
  78. width: 80
  79. }, {
  80. text: '备注',
  81. dataIndex: 'remark',
  82. width: 250,
  83. }]
  84. });