QueryPanel.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 : "condatefield",
  9. name : "ft_date",
  10. fieldLabel : "单据日期",
  11. columnWidth: 0.5
  12. }],
  13. moreQueryFormItems: [],
  14. queryGridConfig: {
  15. idField: 'id',
  16. codeField: 'ft_code',
  17. addTitle: '资金转存',
  18. addXtype: 'money-fundtransfer-formpanel',
  19. defaultCondition:'',
  20. baseVastUrl: '/api/money/fundtransfer/',
  21. baseColumn: [{
  22. text: 'id',
  23. dataIndex: 'id',
  24. width: 0
  25. }, {
  26. text: '单据编号',
  27. dataIndex: 'ft_code',
  28. width: 200
  29. }, {
  30. text: '审核状态',
  31. dataIndex: 'ft_status',
  32. width: 120
  33. }, {
  34. text: '录入人',
  35. dataIndex: 'ft_recorder',
  36. width: 120
  37. }, {
  38. text: '单据日期',
  39. dataIndex: 'ft_date',
  40. xtype: 'datecolumn',
  41. width: 200
  42. }, {
  43. text: '期间',
  44. dataIndex: 'ftd_ym',
  45. xtype : "numbercolumn",
  46. width: 120
  47. }, {
  48. text: '转出账户',
  49. dataIndex: 'ftd_bankname',
  50. width: 120
  51. }, {
  52. text: '转入账户',
  53. dataIndex: 'ftd_inbankname',
  54. width: 120
  55. }, {
  56. text: '金额',
  57. xtype: 'numbercolumn',
  58. dataIndex: 'ftd_nowbalance',
  59. width: 120,
  60. renderer : function(v) {
  61. var arr = (v + '.').split('.');
  62. var xr = (new Array(arr[1].length)).fill('0');
  63. var format = '0,000.' + xr.join();
  64. return Ext.util.Format.number(v, format);
  65. },
  66. }, {
  67. text: '结算方式',
  68. dataIndex: 'ftd_paymethod',
  69. width: 120
  70. }, {
  71. text: '备注',
  72. dataIndex: 'ft_remark',
  73. width: 250
  74. }],
  75. relativeColumn: []
  76. }
  77. });