QueryPanel.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. xtype: 'multicombo',
  27. name: 'rb_status',
  28. fieldLabel: '审核状态',
  29. columnWidth: 0.2,
  30. datas: [
  31. ["已审核", "已审核"],
  32. ["未审核", "未审核"]
  33. ]
  34. }],
  35. moreQueryFormItems: [],
  36. queryGridConfig: {
  37. idField: 'id',
  38. codeField: 'rb_code',
  39. addTitle: '收款单',
  40. addXtype: 'money-recbalance-formpanel',
  41. defaultCondition:'',
  42. baseVastUrl: '/api/money/recbalance/',
  43. baseColumn: [{
  44. text: 'id',
  45. dataIndex: 'id',
  46. width: 100,
  47. xtype: 'numbercolumn',
  48. hidden: true
  49. }, {
  50. text: '单据编号',
  51. dataIndex: 'rb_code',
  52. width: 200
  53. }, {
  54. text: '审核状态',
  55. dataIndex: 'rb_status',
  56. width: 120
  57. }, {
  58. text: '单据日期',
  59. dataIndex: 'rb_date',
  60. xtype: 'datecolumn',
  61. width: 200
  62. }, {
  63. text: '客户编号',
  64. dataIndex: 'rb_custcode',
  65. hidden: true
  66. }, {
  67. text: '客户名称',
  68. dataIndex: 'rb_custname',
  69. }, {
  70. text: '收款人',
  71. dataIndex: 'rb_manname',
  72. xtype: 'numbercolumn',
  73. width: 120,
  74. }, {
  75. text: '收款金额',
  76. dataIndex: 'rb_rdamount',
  77. xtype: 'numbercolumn',
  78. width: 120,
  79. hidden: true
  80. }]
  81. }
  82. });