QueryPanel.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 : "datefield",
  9. name : "ft_date",
  10. fieldLabel : "单据日期"
  11. }],
  12. moreQueryFormItems: [],
  13. queryGridConfig: {
  14. idField: 'id',
  15. codeField: 'ft_code',
  16. addTitle: '其它收入单',
  17. addXtype: 'money-fundtransfer-formpanel',
  18. defaultCondition:'',
  19. baseVastUrl: '/api/money/fundtransfer/',
  20. baseColumn: [{
  21. text: 'id',
  22. dataIndex: 'id',
  23. width: 0,
  24. xtype: 'hidden'
  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. dataIndex: 'ftd_nowbalance',
  58. width: 120,
  59. renderer : function(v) {
  60. var arr = (v + '.').split('.');
  61. var xr = (new Array(arr[1].length)).fill('0');
  62. var format = '0,000.' + xr.join();
  63. return Ext.util.Format.number(v, format);
  64. },
  65. }, {
  66. text: '结算方式',
  67. dataIndex: 'ftd_paymethod',
  68. width: 120
  69. }, {
  70. text: '备注',
  71. dataIndex: 'ft_remark',
  72. width: 250
  73. }],
  74. relativeColumn: []
  75. }
  76. });