QueryPanel.js 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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. initComponent: function () {
  8. Ext.apply(this, {
  9. queryFormItems: [{
  10. xtype: 'textfield',
  11. name: 'rb_code',
  12. emptyText: '请输入单号'
  13. }, {
  14. xtype: 'customerDbfindTrigger',
  15. name: 'rb_custname',
  16. margin: '0 0 0 20',
  17. emptyText: '请输入客户编号或名称'
  18. }, {
  19. xtype: 'condatefield',
  20. name: 'rb_date',
  21. fieldLabel: '日期',
  22. columnWidth: 0.5,
  23. operation: 'between'
  24. }, {
  25. xtype: 'accountDbfindTrigger',
  26. name: 'creatorName',
  27. fieldLabel: '录入人',
  28. emptyText: '请输入账户名称或姓名',
  29. getCondition: function (value) {
  30. if (!value) {
  31. return '1=1';
  32. } else {
  33. return 'recbalance.creatorName like\'%' + value + '%\'';
  34. }
  35. }
  36. }, {
  37. xtype: 'accountDbfindTrigger',
  38. name: 'rb_auditman',
  39. fieldLabel: '审核人',
  40. emptyText: '请输入账户名称或姓名'
  41. }, {
  42. xtype: 'bandinfoDbfindTrigger',
  43. name: 'rd_bankname',
  44. fieldLabel: '资金账户',
  45. emptyText:'请输入资金账户名称或姓名',
  46. showDetail: true
  47. }],
  48. moreQueryFormItems: [],
  49. queryGridConfig: {
  50. idField: 'id',
  51. codeField: 'rb_code',
  52. addTitle: '收款单',
  53. addXtype: 'money-recbalance-formpanel',
  54. defaultCondition: '',
  55. baseVastUrl: '/api/money/recbalance/',
  56. caller: 'RecBalance',
  57. baseColumn: [{
  58. text: 'id',
  59. dataIndex: 'id',
  60. width: 100,
  61. xtype: 'numbercolumn',
  62. hidden: true
  63. }, {
  64. text: '收款单号',
  65. dataIndex: 'rb_code',
  66. width: 150
  67. }, {
  68. text: '单据日期',
  69. dataIndex: 'rb_date',
  70. xtype: 'datecolumn',
  71. width: 110
  72. }, {
  73. text: '客户名称',
  74. dataIndex: 'rb_custname',
  75. width: 200,
  76. }, {
  77. text: '审核状态',
  78. align: 'center',
  79. dataIndex: 'rb_status',
  80. width: 80
  81. }, {
  82. text: '收款金额(元)',
  83. dataIndex: 'rb_amount',
  84. width: 120,
  85. renderer : function(v, m, r) {
  86. return saas.util.BaseUtil.numberFormat(v, 2, true);
  87. }
  88. }, {
  89. text: '收款人',
  90. dataIndex: 'rb_manname',
  91. width: 80
  92. }, {
  93. text: '备注',
  94. dataIndex: 'rb_remark',
  95. width: 250
  96. }],
  97. relativeColumn: [{
  98. text: 'id',
  99. dataIndex: 'id',
  100. width: 100,
  101. xtype: 'numbercolumn',
  102. hidden: true
  103. }, {
  104. text: '收款单号',
  105. dataIndex: 'rb_code',
  106. width: 150
  107. }, {
  108. text: '单据日期',
  109. dataIndex: 'rb_date',
  110. xtype: 'datecolumn',
  111. width: 110
  112. }, {
  113. text: '客户名称',
  114. dataIndex: 'rb_custname',
  115. width: 200,
  116. }, {
  117. text: '审核状态',
  118. align: 'center',
  119. dataIndex: 'rb_status',
  120. width: 80
  121. }, {
  122. text: '收款人',
  123. dataIndex: 'rb_manname',
  124. width: 80
  125. }, {
  126. text: '资金账户',
  127. dataIndex: 'rd_bankname',
  128. width: 150
  129. }, {
  130. text: '收款金额(元)',
  131. xtype: 'numbercolumn',
  132. dataIndex: 'rd_amount',
  133. width: 120,
  134. renderer: function(v, m, r) {
  135. return saas.util.BaseUtil.numberFormat(v, 2, true);
  136. }
  137. }, {
  138. text: '结算方式',
  139. dataIndex: 'rd_paymethod',
  140. width: 120
  141. }, {
  142. text: '结算号',
  143. dataIndex: 'rd_paycode',
  144. width: 120
  145. }, {
  146. text: '备注',
  147. dataIndex: 'rd_remark',
  148. width: 250
  149. }]
  150. }
  151. });
  152. this.callParent(arguments);
  153. },
  154. });