QueryPanel.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. queryFormItems: [{
  8. xtype: 'textfield',
  9. name:'ft_code',
  10. emptyText:'请输入单号',
  11. },{
  12. xtype : "condatefield",
  13. name : "ft_date",
  14. fieldLabel : "日期",
  15. columnWidth: 0.5
  16. } ,{
  17. xtype : "bandinfoDbfindTrigger",
  18. name : "ftd_bankname",
  19. fieldLabel : "转出账户",
  20. },{
  21. xtype : "bandinfoDbfindTrigger",
  22. name : "ftd_inbankname",
  23. fieldLabel : "转入账户",
  24. },{
  25. xtype: 'combobox',
  26. name: 'ft_statuscode',
  27. fieldLabel: '单据状态',
  28. queryMode: 'local',
  29. displayField: 'ft_status',
  30. valueField: 'ft_statuscode',
  31. emptyText :'全部',
  32. editable:false,
  33. store: Ext.create('Ext.data.ArrayStore', {
  34. fields: ['ft_statuscode', 'ft_status'],
  35. data: [
  36. ["ALL", "全部"],
  37. ["AUDITED", "已审核"],
  38. ["UNAUDITED", "未审核"]
  39. ]
  40. }),
  41. getCondition: function(value) {
  42. if(value == 'ALL') {
  43. return '1=1';
  44. }else {
  45. return 'ft_statuscode=\'' + value + '\'';
  46. }
  47. }
  48. }, {
  49. xtype: 'employeeDbfindTrigger',
  50. name: 'creatorName',
  51. fieldLabel: '录入人',
  52. emptyText:'请输入人员编号或名称',
  53. getCondition: function(value) {
  54. if(!value) {
  55. return '1=1';
  56. }else {
  57. return 'fundtransfer.creatorName like\'%' + value + '%\'';
  58. }
  59. }
  60. }, {
  61. xtype: 'employeeDbfindTrigger',
  62. name: 'ft_auditman',
  63. fieldLabel: '审核人',
  64. emptyText:'请输入人员编号或名称'
  65. }],
  66. moreQueryFormItems: [],
  67. queryGridConfig: {
  68. idField: 'id',
  69. codeField: 'ft_code',
  70. addTitle: '资金转存',
  71. addXtype: 'money-fundtransfer-formpanel',
  72. defaultCondition:'',
  73. baseVastUrl: '/api/money/fundtransfer/',
  74. baseColumn: [{
  75. text: 'id',
  76. dataIndex: 'id',
  77. hidden:true
  78. }, {
  79. text: '单据编号',
  80. dataIndex: 'ft_code',
  81. width: 150
  82. }, {
  83. text: '日期',
  84. dataIndex: 'ft_date',
  85. xtype: 'datecolumn',
  86. width: 110
  87. }, {
  88. text: '转出账户',
  89. dataIndex: 'ftd_bankname',
  90. width: 150
  91. } , {
  92. text: '转入账户',
  93. dataIndex: 'ftd_inbankname',
  94. width: 150
  95. }, {
  96. text: '金额',
  97. xtype: 'numbercolumn',
  98. dataIndex: 'ftd_nowbalance',
  99. width: 110,
  100. renderer : function(v) {
  101. var arr = (v + '.').split('.');
  102. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  103. var format = '0,000.' + xr.join();
  104. return Ext.util.Format.number(v, format);
  105. },
  106. }, {
  107. text: '结算方式',
  108. dataIndex: 'ftd_paymethod',
  109. width: 150
  110. }, {
  111. text: '结算号',
  112. dataIndex: 'ftd_paycode',
  113. width: 0
  114. },{
  115. text: '审核状态',
  116. dataIndex: 'ft_status',
  117. align: 'center',
  118. width: 90
  119. }, {
  120. text: '录入人',
  121. dataIndex: 'creatorName',
  122. width: 110
  123. }, {
  124. text: '审核人',
  125. dataIndex: 'ft_auditman',
  126. width: 110
  127. }, {
  128. text: '备注',
  129. dataIndex: 'ftd_remark',
  130. width: 250
  131. } ],
  132. relativeColumn: []
  133. }
  134. });