QueryPanel.js 4.3 KB

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