QueryPanel.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. Ext.define('saas.view.money.verification.QueryPanel', {
  2. extend: 'saas.view.core.query.QueryPanel',
  3. xtype: 'money-verification-querypanel',
  4. controller: 'money-verification-querypanel',
  5. viewModel: 'money-verification-querypanel',
  6. viewName: 'money-verification-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. hidden: true
  40. }, {
  41. text: '单据编号',
  42. dataIndex: 'rb_code',
  43. width: 200
  44. }, {
  45. text: '单据状态',
  46. dataIndex: 'rb_status',
  47. width: 120
  48. }, {
  49. text: '日期',
  50. dataIndex: 'rb_date',
  51. xtype: 'datecolumn',
  52. width: 200
  53. }, {
  54. text: '客户编号',
  55. dataIndex: 'rb_custcode',
  56. hidden: true
  57. }, {
  58. text: '客户名称',
  59. dataIndex: 'rb_custname',
  60. }, {
  61. text: '收款人',
  62. dataIndex: 'rb_manname',
  63. xtype: 'numbercolumn',
  64. width: 120,
  65. }, {
  66. text: '收款金额',
  67. dataIndex: 'rb_rdamount',
  68. xtype: 'numbercolumn',
  69. width: 120,
  70. flex: 1,
  71. hidden: true
  72. }]
  73. }
  74. });