QueryPanel.js 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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. }, {
  101. text: "转出金额(元)",
  102. xtype: 'numbercolumn',
  103. dataIndex: "ftd_nowbalance",
  104. allowBlank: false,
  105. width: 150.0,
  106. editor: {
  107. xtype: "numberfield",
  108. decimalPrecision: 2
  109. },
  110. renderer: function(v, m, r) {
  111. return saas.util.BaseUtil.numberFormat(v, 2, true);
  112. },
  113. summaryType: 'sum',
  114. summaryRenderer: function(v, d, f, m) {
  115. return saas.util.BaseUtil.numberFormat(v, 2, true);
  116. }
  117. },{
  118. text: '转入账户',
  119. dataIndex: 'ftd_inbankname',
  120. width: 150
  121. }, {
  122. text: "转入币别",
  123. dataIndex: "ftd_incurrency",
  124. align:'center'
  125. }, {
  126. text: "转入金额(元)",
  127. xtype: 'numbercolumn',
  128. dataIndex: "ftd_innowbalance",
  129. allowBlank: false,
  130. width: 150.0,
  131. editor: {
  132. xtype: "numberfield",
  133. decimalPrecision: 2
  134. },
  135. renderer: function(v, m, r) {
  136. return saas.util.BaseUtil.numberFormat(v, 2, true);
  137. },
  138. summaryType: 'sum',
  139. summaryRenderer: function(v, d, f, m) {
  140. return saas.util.BaseUtil.numberFormat(v, 2, true);
  141. }
  142. },{
  143. text: '转存汇率',
  144. xtype: 'numbercolumn',
  145. dataIndex: 'ftd_rate',
  146. width: 110,
  147. renderer: function(v, m, r) {
  148. return saas.util.BaseUtil.numberFormat(v, 6, true);
  149. },
  150. }, {
  151. text: "结算号",
  152. dataIndex: "ftd_paycode",
  153. width: 150,
  154. editor: {
  155. xtype: ''
  156. }
  157. },{
  158. text: '结算方式',
  159. dataIndex: 'ftd_paymethod',
  160. width: 150
  161. }, {
  162. text: '审核状态',
  163. dataIndex: 'ft_status',
  164. align: 'center',
  165. width: 80
  166. }, {
  167. text: '备注',
  168. dataIndex: 'ftd_remark',
  169. width: 250
  170. }],
  171. relativeColumn: []
  172. }
  173. });
  174. this.callParent(arguments);
  175. },
  176. });