QueryPanel.js 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. Ext.define('saas.view.money.fundtransfer.QueryPanel', {
  2. extend: 'saas.view.core.query.QueryPanel',
  3. xtype: 'money-fundtransfer-querypanel',
  4. controller: 'money-fundtransfer-querypanel',
  5. viewModel: 'money-fundtransfer-querypanel',
  6. viewName: 'money-fundtransfer-querypanel',
  7. initComponent: function () {
  8. Ext.apply(this, {
  9. queryFormItems: [{
  10. xtype: 'textfield',
  11. name: 'ft_code',
  12. emptyText: '请输入单号',
  13. }, {
  14. xtype: "bandinfoDbfindTrigger",
  15. name: "ftd_bankname",
  16. margin: '0 0 0 20',
  17. emptyText: '请输入转出账户编号或名称',
  18. }, {
  19. xtype: "condatefield",
  20. name: "ft_date",
  21. fieldLabel: "日期",
  22. columnWidth: 0.5
  23. }, {
  24. xtype: "bandinfoDbfindTrigger",
  25. name: "ftd_inbankname",
  26. fieldLabel: "转入账户",
  27. emptyText: '请输入转入账户编号或名称',
  28. }, {
  29. xtype: 'combobox',
  30. name: 'ft_statuscode',
  31. fieldLabel: '单据状态',
  32. queryMode: 'local',
  33. displayField: 'ft_status',
  34. valueField: 'ft_statuscode',
  35. emptyText: '全部',
  36. editable: false,
  37. store: Ext.create('Ext.data.ArrayStore', {
  38. fields: ['ft_statuscode', 'ft_status'],
  39. data: [
  40. ["ALL", "全部"],
  41. ["AUDITED", "已审核"],
  42. ["UNAUDITED", "未审核"]
  43. ]
  44. }),
  45. getCondition: function (value) {
  46. if (value == 'ALL') {
  47. return '1=1';
  48. } else {
  49. return 'ft_statuscode=\'' + value + '\'';
  50. }
  51. }
  52. }, {
  53. xtype: 'accountDbfindTrigger',
  54. name: 'creatorName',
  55. fieldLabel: '录入人',
  56. emptyText: '请输入账户名称或姓名',
  57. getCondition: function (value) {
  58. if (!value) {
  59. return '1=1';
  60. } else {
  61. return 'fundtransfer.creatorName like\'%' + value + '%\'';
  62. }
  63. }
  64. }, {
  65. xtype: 'accountDbfindTrigger',
  66. name: 'ft_auditman',
  67. fieldLabel: '审核人',
  68. emptyText: '请输入账户名称或姓名'
  69. }],
  70. moreQueryFormItems: [],
  71. queryGridConfig: {
  72. idField: 'id',
  73. codeField: 'ft_code',
  74. addTitle: '资金转存',
  75. addXtype: 'money-fundtransfer-formpanel',
  76. defaultCondition: '',
  77. baseVastUrl: '/api/money/fundtransfer/',
  78. caller: 'FundTransfer',
  79. baseColumn: [{
  80. text: 'id',
  81. dataIndex: 'id',
  82. hidden: true
  83. }, {
  84. text: '单据编号',
  85. dataIndex: 'ft_code',
  86. width: 150
  87. }, {
  88. text: '日期',
  89. dataIndex: 'ft_date',
  90. xtype: 'datecolumn',
  91. width: 110
  92. }, {
  93. text: '转出账户',
  94. dataIndex: 'ftd_bankname',
  95. width: 150
  96. }, {
  97. text: "转出币别",
  98. dataIndex: "ftd_currency",
  99. align:'center',
  100. width: 80
  101. }, {
  102. text: "转出金额(元)",
  103. xtype: 'numbercolumn',
  104. dataIndex: "ftd_nowbalance",
  105. allowBlank: false,
  106. width: 110.0,
  107. editor: {
  108. xtype: "numberfield",
  109. decimalPrecision: 2
  110. },
  111. renderer: function(v, m, r) {
  112. return saas.util.BaseUtil.numberFormat(v, 2, true);
  113. },
  114. summaryType: 'sum',
  115. summaryRenderer: function(v, d, f, m) {
  116. return saas.util.BaseUtil.numberFormat(v, 2, true);
  117. }
  118. },{
  119. text: '转入账户',
  120. dataIndex: 'ftd_inbankname',
  121. width: 150
  122. }, {
  123. text: "转入币别",
  124. dataIndex: "ftd_incurrency",
  125. align:'center',
  126. width: 80
  127. }, {
  128. text: "转入金额(元)",
  129. xtype: 'numbercolumn',
  130. dataIndex: "ftd_innowbalance",
  131. allowBlank: false,
  132. width: 110.0,
  133. editor: {
  134. xtype: "numberfield",
  135. decimalPrecision: 2
  136. },
  137. renderer: function(v, m, r) {
  138. return saas.util.BaseUtil.numberFormat(v, 2, true);
  139. },
  140. summaryType: 'sum',
  141. summaryRenderer: function(v, d, f, m) {
  142. return saas.util.BaseUtil.numberFormat(v, 2, true);
  143. }
  144. }, {
  145. text: '审核状态',
  146. dataIndex: 'ft_status',
  147. align: 'center',
  148. width: 80
  149. }, {
  150. text: '备注',
  151. dataIndex: 'ftd_remark',
  152. width: 250
  153. }],
  154. relativeColumn: []
  155. }
  156. });
  157. this.callParent(arguments);
  158. },
  159. });