QueryPanel.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. emptyText:'请输入单据编号'
  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. xtype: 'numbercolumn',
  38. hidden: true
  39. }, {
  40. text: '单据编号',
  41. dataIndex: 'rb_code',
  42. width: 150
  43. }, {
  44. text: '单据状态',
  45. dataIndex: 'rb_status',
  46. width: 90
  47. }, {
  48. text: '日期',
  49. dataIndex: 'rb_date',
  50. xtype: 'datecolumn',
  51. width: 110
  52. }, {
  53. text: '客户名称',
  54. dataIndex: 'rb_custname',
  55. width: 150
  56. }, {
  57. text: '收款人',
  58. dataIndex: 'rb_manname',
  59. xtype: 'numbercolumn',
  60. width: 110
  61. }, {
  62. text: '收款金额',
  63. dataIndex: 'rb_rdamount',
  64. xtype: 'numbercolumn',
  65. width: 110,
  66. flex: 1,
  67. hidden: true
  68. }]
  69. }
  70. });