QueryPanel.js 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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_inbankname',
  99. width: 150
  100. }, {
  101. text: '金额(元)',
  102. xtype: 'numbercolumn',
  103. dataIndex: 'ftd_nowbalance',
  104. width: 110,
  105. renderer: function(v, m, r) {
  106. return saas.util.BaseUtil.numberFormat(v, 2, true);
  107. },
  108. }, {
  109. text: '结算方式',
  110. dataIndex: 'ftd_paymethod',
  111. width: 150
  112. }, {
  113. text: '结算号',
  114. dataIndex: 'ftd_paycode',
  115. hidden: true
  116. }, {
  117. text: '审核状态',
  118. dataIndex: 'ft_status',
  119. align: 'center',
  120. width: 80
  121. }, {
  122. text: '备注',
  123. dataIndex: 'ftd_remark',
  124. width: 250
  125. }],
  126. relativeColumn: []
  127. }
  128. });
  129. this.callParent(arguments);
  130. },
  131. });