QueryPanel.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. Ext.define('saas.view.money.othreceipts.QueryPanel', {
  2. extend: 'saas.view.core.query.QueryPanel',
  3. xtype: 'money-othreceipts-querypanel',
  4. controller: 'money-othreceipts-querypanel',
  5. viewModel: 'money-othreceipts-querypanel',
  6. viewName: 'money-othreceipts-querypanel',
  7. queryFormItems: [{
  8. xtype: 'hidden',
  9. name: 'or_id',
  10. fieldLabel: 'ID',
  11. allowBlank: true,
  12. columnWidth: 0
  13. }, {
  14. xtype : 'hidden',
  15. name : 'or_custid',
  16. fieldLabel : '客户ID'
  17. }, {
  18. xtype: 'hidden',
  19. name: 'or_custcode',
  20. fieldLabel: '客户编号'
  21. }, {
  22. xtype: 'dbfindtrigger',
  23. name: 'or_custname',
  24. fieldLabel: '客户名称'
  25. }, {
  26. xtype : 'hidden',
  27. name : 'or_bankid',
  28. fieldLabel : '账户ID'
  29. }, {
  30. xtype: 'hidden',
  31. name: 'or_bankcode',
  32. fieldLabel: '账户编号'
  33. }, {
  34. xtype: 'dbfindtrigger',
  35. name: 'or_bankname',
  36. fieldLabel: '账户名称'
  37. }],
  38. moreQueryFormItems: [],
  39. queryGridConfig: {
  40. idField: 'or_id',
  41. codeField: 'or_code',
  42. addTitle: '其它收入单',
  43. addXtype: 'money-othreceipts-formpanel',
  44. defaultCondition:'',
  45. // baseVastUrl: basePath+'money/othreceipts/',
  46. baseVastUrl: 'http://192.168.253.129:8940/othreceipts/',
  47. baseColumn: [{
  48. text: 'id',
  49. dataIndex: 'or_id',
  50. width: 0,
  51. xtype: 'numbercolumn'
  52. }, {
  53. text: '单据编号',
  54. dataIndex: 'or_code',
  55. width: 120
  56. }, {
  57. text: '单据状态',
  58. dataIndex: 'or_status',
  59. width: 120
  60. }, {
  61. text: '录入人',
  62. dataIndex: 'or_recorder',
  63. width: 120
  64. }, {
  65. text: '单据日期',
  66. dataIndex: 'or_date',
  67. xtype: 'datecolumn',
  68. width: 200
  69. }, {
  70. text: '客户名称',
  71. dataIndex: 'or_custname',
  72. width: 120
  73. }, {
  74. text: '金额',
  75. dataIndex: 'or_amount',
  76. xtype: 'numbercolumn',
  77. width: 120
  78. }, {
  79. text: '备注',
  80. dataIndex: 'or_remark',
  81. width: 250,
  82. flex: 1
  83. }],
  84. relativeColumn: []
  85. }
  86. });