QueryPanel.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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 : "textfield",
  13. name : "ft_recorder",
  14. fieldLabel : "制单人",
  15. },{
  16. xtype : "textfield",
  17. name : "ft_auditman",
  18. fieldLabel : "审核人",
  19. },{
  20. xtype : "condatefield",
  21. name : "ft_date",
  22. fieldLabel : "单据日期",
  23. columnWidth: 0.5
  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. 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 : "bandinfoDbfindTrigger",
  69. name : "ftd_bankname",
  70. fieldLabel : "转出账号",
  71. },{
  72. xtype : "bandinfoDbfindTrigger",
  73. name : "ftd_inbankname",
  74. fieldLabel : "转入账号",
  75. },{
  76. xtype: 'textfield',
  77. name: 'creatorName',
  78. fieldLabel: '录入人'
  79. }],
  80. moreQueryFormItems: [],
  81. queryGridConfig: {
  82. idField: 'id',
  83. codeField: 'ft_code',
  84. addTitle: '资金转存',
  85. addXtype: 'money-fundtransfer-formpanel',
  86. defaultCondition:'',
  87. baseVastUrl: '/api/money/fundtransfer/',
  88. // baseVastUrl: 'http://192.168.253.35:8880/fundtransfer/',
  89. baseColumn: [{
  90. text: 'id',
  91. dataIndex: 'id',
  92. width: 0
  93. }, {
  94. text: '单据编号',
  95. dataIndex: 'ft_code',
  96. width: 200
  97. }, {
  98. text: '单据日期',
  99. dataIndex: 'ft_date',
  100. xtype: 'datecolumn',
  101. width: 200
  102. },{
  103. text: '审核状态',
  104. dataIndex: 'ft_status',
  105. width: 120
  106. }, {
  107. text: '录入人',
  108. dataIndex: 'ft_recorder',
  109. width: 120
  110. }, {
  111. text: '审核人',
  112. dataIndex: 'ft_auditman',
  113. width: 120
  114. },{
  115. text: '转出账户',
  116. dataIndex: 'ftd_bankname',
  117. width: 120
  118. }, {
  119. text: '转入账户',
  120. dataIndex: 'ftd_inbankname',
  121. width: 120
  122. }, {
  123. text: '金额',
  124. xtype: 'numbercolumn',
  125. dataIndex: 'ftd_nowbalance',
  126. width: 120,
  127. renderer : function(v) {
  128. var arr = (v + '.').split('.');
  129. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  130. var format = '0,000.' + xr.join();
  131. return Ext.util.Format.number(v, format);
  132. },
  133. }, {
  134. text: '结算方式',
  135. dataIndex: 'ftd_paymethod',
  136. width: 120
  137. }, {
  138. text: '结算编号',
  139. dataIndex: 'ftd_paycode',
  140. width: 120
  141. }, {
  142. text: '备注',
  143. dataIndex: 'ftd_remark',
  144. width: 250
  145. }],
  146. relativeColumn: []
  147. }
  148. });