QueryPanel.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. Ext.define('saas.view.money.paybalance.QueryPanel', {
  2. extend: 'saas.view.core.query.QueryPanel',
  3. xtype: 'money-paybalance-querypanel',
  4. controller: 'money-paybalance-querypanel',
  5. viewModel: 'money-paybalance-querypanel',
  6. viewName: 'money-paybalance-querypanel',
  7. queryFormItems: [{
  8. xtype: 'textfield',
  9. name: 'pb_code',
  10. fieldLabel: '单据编号',
  11. columnWidth: 0.2
  12. },{
  13. xtype: 'condatefield',
  14. name: 'pb_date',
  15. fieldLabel: '日期',
  16. columnWidth: 0.5,
  17. operation: 'between'
  18. },{
  19. xtype: 'multicombo',
  20. name: 'pb_status',
  21. fieldLabel: '审核状态',
  22. columnWidth: 0.2,
  23. datas: [
  24. ["已审核", "已审核"],
  25. ["未审核", "未审核"]
  26. ]
  27. }],
  28. moreQueryFormItems: [],
  29. queryGridConfig: {
  30. idField: 'id',
  31. codeField: 'pb_code',
  32. addTitle: '付款单',
  33. addXtype: 'money-paybalance-formpanel',
  34. defaultCondition:'1=1',
  35. baseVastUrl: '/api/money/paybalance/',
  36. baseColumn: [{
  37. text: 'id',
  38. dataIndex: 'id',
  39. width: 100,
  40. xtype: 'numbercolumn',
  41. hidden:true
  42. }, {
  43. text: '单据编号',
  44. dataIndex: 'pb_code',
  45. width: 200
  46. }, {
  47. text: '审核状态',
  48. dataIndex: 'pb_status',
  49. width: 120
  50. }, {
  51. text: '单据日期',
  52. dataIndex: 'pb_date',
  53. xtype: 'datecolumn',
  54. width: 160
  55. }, {
  56. text: '供应商编号',
  57. dataIndex: 'pb_vendcode',
  58. width: 200,
  59. hidden:true
  60. }, {
  61. text: '供应商名称',
  62. dataIndex: 'pb_vendname',
  63. width: 120,
  64. }, {
  65. text: '收款人',
  66. dataIndex: 'pb_manname',
  67. width: 120,
  68. }, {
  69. text: '付款金额',
  70. xtype: 'numbercolumn',
  71. dataIndex: 'pb_pdamount',
  72. width: 120,
  73. hidden:true
  74. }, {
  75. text: '本次核销金额',
  76. xtype: 'numbercolumn',
  77. dataIndex: 'pb_pbdamount',
  78. width: 120,
  79. hidden:true
  80. }, {
  81. text: '本次预付款',
  82. dataIndex: 'pb_preamount',
  83. width: 120,
  84. hidden:true
  85. }, {
  86. text: '整单折扣',
  87. dataIndex: 'pb_discounts',
  88. width: 120,
  89. hidden:true
  90. }, {
  91. text: '已核销金额',
  92. xtype: 'numbercolumn',
  93. dataIndex: 'pb_havebalance',
  94. width: 120,
  95. hidden:true
  96. }],
  97. relativeColumn: []
  98. }
  99. });