QueryPanel.js 6.4 KB

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