OtherIODetail.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /**
  2. * 其他收支明细表
  3. */
  4. Ext.define('saas.view.money.report.OtherIODetail', {
  5. extend: 'saas.view.core.report.ReportPanel',
  6. xtype: 'monry-report-otheriodetail',
  7. controller: 'money-report-otheriodetail',
  8. viewModel: 'money-report-otheriodetail',
  9. viewName: 'money-report-otheriodetail',
  10. groupField: 'bl_bankname',
  11. groupHeaderTpl: '资金账户: {[values.rows[0].data.bl_bankname]}',
  12. listUrl: '/api/money/report/otheriodetail',
  13. defaultCondition: null,
  14. reportTitle: '其他收支明细表',
  15. QueryWidth: 0.2,
  16. searchItems: [{
  17. xtype: 'bandinfoDbfindTrigger',
  18. name: 'bl_bankname',
  19. emptyText: '请输入资金账户',
  20. columnWidth: 0.15,
  21. dbfinds:[
  22. {
  23. from:'bk_bankname',to:'bl_bankname'
  24. }]
  25. }, {
  26. // xtype : "remotecombo",
  27. // storeUrl:'/api/document/customerkind/getCombo',
  28. // name : "bl_kind",
  29. // emptyText : "收支类别",
  30. // columnWidth: 0.25,
  31. // hiddenBtn:true,
  32. xtype: 'combobox',
  33. name: 'bl_kind',
  34. queryMode: 'local',
  35. displayField: 'display',
  36. valueField: 'value',
  37. emptyText : '请选择收支类别',
  38. editable:false,
  39. columnWidth: 0.15,
  40. store: Ext.create('Ext.data.ArrayStore', {
  41. fields: ['value', 'display'],
  42. data: [
  43. ["ALL", "全部"],
  44. ["其他支出单", "其他支出单"],
  45. ["其他收入单", "其他收入单"]
  46. ]
  47. }),
  48. getCondition: function(value) {
  49. if(value == 'ALL'||value == null) {
  50. return '1=1';
  51. }else {
  52. return 'bl_kind=\'' + value + '\'';
  53. }
  54. }
  55. }, {
  56. xtype: 'condatefield',
  57. name: 'bl_date',
  58. fieldLabel: '日期',
  59. columnWidth: 0.5
  60. }],
  61. reportColumns: [{
  62. text: '日期',
  63. xtype: 'datecolumn',
  64. dataIndex: 'bl_date',
  65. width: 110
  66. }, {
  67. text: '单据编号',
  68. dataIndex: 'bl_code',
  69. width: 150,
  70. }, {
  71. text: '收支类别',
  72. dataIndex: 'bl_kind',
  73. width: 100,
  74. }, {
  75. text: '资金账户',
  76. dataIndex: 'bl_bankname',
  77. width: 150
  78. }, {
  79. text: '收入(元)',
  80. dataIndex: 'bl_income',
  81. exportFormat: 'Amount',
  82. width: 120,
  83. renderer : function(v, m, r) {
  84. return saas.util.BaseUtil.numberFormat(v, 2, true);
  85. },
  86. summaryType: 'sum',
  87. summaryLabel: '收入',
  88. summaryRenderer: function(v) {
  89. return saas.util.BaseUtil.numberFormat(v, 2, true);
  90. }
  91. }, {
  92. text: '支出(元)',
  93. dataIndex: 'bl_spending',
  94. exportFormat: 'Amount',
  95. width: 120,
  96. renderer : function(v, m, r) {
  97. return saas.util.BaseUtil.numberFormat(v, 2, true);
  98. },
  99. summaryType: 'sum',
  100. summaryLabel: '支出',
  101. summaryRenderer: function(v) {
  102. return saas.util.BaseUtil.numberFormat(v, 2, true);
  103. }
  104. }, {
  105. text: '往来单位',
  106. dataIndex: 'bl_assname',
  107. width: 200,
  108. }, {
  109. text: '备注',
  110. dataIndex: 'bl_remark',
  111. width: 250
  112. }]
  113. });