QueryPanel.js 4.0 KB

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