QueryPanel.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. Ext.define('saas.view.money.recBalance.QueryPanel', {
  2. extend: 'saas.view.core.query.QueryPanel',
  3. xtype: 'money-recbalance-querypanel',
  4. controller: 'money-recbalance-querypanel',
  5. viewModel: 'money-recbalance-querypanel',
  6. viewName: 'money-recbalance-querypanel',
  7. queryFormItems: [{
  8. xtype: 'hidden',
  9. name: 'rb_id',
  10. fieldLabel: 'ID',
  11. allowBlank: true,
  12. getCondition: function(value) {
  13. return 'rb_id=' + value;
  14. }
  15. }, {
  16. xtype: 'textfield',
  17. name: 'rb_code',
  18. fieldLabel: '单据编号'
  19. }, {
  20. xtype: 'condatefield',
  21. name: 'rb_date',
  22. fieldLabel: '日期',
  23. columnWidth: 0.5,
  24. operation: 'between'
  25. }],
  26. moreQueryFormItems: [],
  27. queryGridConfig: {
  28. idField: 'id',
  29. codeField: 'rb_code',
  30. addTitle: '收款单',
  31. addXtype: 'money-recbalance-formpanel',
  32. defaultCondition:'',
  33. baseVastUrl: '/api/money/recbalance/',
  34. baseColumn: [{
  35. text: 'id',
  36. dataIndex: 'id',
  37. width: 100,
  38. xtype: 'numbercolumn'
  39. }, {
  40. text: '单据编号',
  41. dataIndex: 'rb_code',
  42. width: 120
  43. }, {
  44. text: '单据状态',
  45. dataIndex: 'rb_status',
  46. width: 120
  47. }, {
  48. text: '日期',
  49. dataIndex: 'rb_date',
  50. xtype: 'datecolumn',
  51. width: 200
  52. }, {
  53. text: '客户编号',
  54. dataIndex: 'rb_custcode'
  55. }, {
  56. text: '客户名称',
  57. dataIndex: 'rb_custname'
  58. }, {
  59. text: '收款人',
  60. dataIndex: 'rb_manname',
  61. xtype: 'numbercolumn',
  62. width: 120
  63. }, {
  64. text: '收款金额',
  65. dataIndex: 'rb_rdamount',
  66. xtype: 'numbercolumn',
  67. width: 120,
  68. flex: 1
  69. }]
  70. }
  71. });