QueryPanel.js 4.4 KB

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