AccountBalance.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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: 'inamount',
  44. exportFormat: 'Amount',
  45. xtype: 'numbercolumn',
  46. width: 120,
  47. renderer: function (v) {
  48. return saas.util.BaseUtil.numberFormat(v, 2, true);
  49. },
  50. summaryType: 'sum',
  51. summaryRenderer: function(v, d, f, m) {
  52. return saas.util.BaseUtil.numberFormat(v, 2, true);
  53. }
  54. }, {
  55. text: '支出(元)',
  56. dataIndex: 'outamount',
  57. xtype: 'numbercolumn',
  58. exportFormat: 'Amount',
  59. width: 120,
  60. renderer: function (v) {
  61. return saas.util.BaseUtil.numberFormat(v, 2, true);
  62. },
  63. summaryType: 'sum',
  64. summaryRenderer: function(v, d, f, m) {
  65. return saas.util.BaseUtil.numberFormat(v, 2, true);
  66. }
  67. }, {
  68. text: '往来单位',
  69. dataIndex: 'bname',
  70. width: 200
  71. }, {
  72. text: '收付款人',
  73. dataIndex: 'bmanname',
  74. width: 80
  75. }, {
  76. text: '备注',
  77. dataIndex: 'remark',
  78. width: 250,
  79. }]
  80. });