QueryPanel.js 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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_currency',
  91. width: 120
  92. } ,{
  93. text: '汇率(%)',
  94. dataIndex: 'rb_rate',
  95. xtype: 'numbercolumn',
  96. width: 120,
  97. renderer: function(v, m, r) {
  98. return saas.util.BaseUtil.numberFormat(v, 6, false);
  99. },
  100. } ,{
  101. text: '收款人',
  102. dataIndex: 'rb_manname',
  103. width: 80
  104. }, {
  105. text: '备注',
  106. dataIndex: 'rb_remark',
  107. width: 250
  108. }],
  109. relativeColumn: [{
  110. text: 'id',
  111. dataIndex: 'id',
  112. width: 100,
  113. xtype: 'numbercolumn',
  114. hidden: true
  115. }, {
  116. text: '收款单号',
  117. dataIndex: 'rb_code',
  118. width: 150
  119. }, {
  120. text: '单据日期',
  121. dataIndex: 'rb_date',
  122. xtype: 'datecolumn',
  123. width: 110
  124. }, {
  125. text: '客户名称',
  126. dataIndex: 'rb_custname',
  127. width: 200,
  128. }, {
  129. text: '审核状态',
  130. align: 'center',
  131. dataIndex: 'rb_status',
  132. width: 80
  133. }, {
  134. text: '收款人',
  135. dataIndex: 'rb_manname',
  136. width: 80
  137. }, {
  138. text: '资金账户',
  139. dataIndex: 'rd_bankname',
  140. width: 150
  141. }, {
  142. text: '收款金额(元)',
  143. xtype: 'numbercolumn',
  144. dataIndex: 'rd_amount',
  145. width: 120,
  146. renderer: function(v, m, r) {
  147. return saas.util.BaseUtil.numberFormat(v, 2, true);
  148. }
  149. }, {
  150. text: '币别',
  151. dataIndex: 'rb_currency',
  152. width: 120
  153. } ,{
  154. text: '汇率(%)',
  155. dataIndex: 'rb_rate',
  156. xtype: 'numbercolumn',
  157. width: 120,
  158. renderer: function(v, m, r) {
  159. return saas.util.BaseUtil.numberFormat(v, 6, false);
  160. },
  161. } ,{
  162. text: '结算方式',
  163. dataIndex: 'rd_paymethod',
  164. width: 120
  165. }, {
  166. text: '结算号',
  167. dataIndex: 'rd_paycode',
  168. width: 120
  169. }, {
  170. text: '备注',
  171. dataIndex: 'rd_remark',
  172. width: 250
  173. }]
  174. }
  175. });
  176. this.callParent(arguments);
  177. },
  178. });