QueryPanel.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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: 'condatefield',
  13. name: 'rb_date',
  14. fieldLabel: '日期',
  15. columnWidth: 0.5,
  16. operation: 'between'
  17. }, {
  18. xtype: 'customerDbfindTrigger',
  19. name: 'rb_custname',
  20. fieldLabel: '客户',
  21. emptyText :'请输入客户编号或名称'
  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. moreQueryFormItems: [],
  51. queryGridConfig: {
  52. idField: 'id',
  53. codeField: 'rb_code',
  54. addTitle: '收款单',
  55. addXtype: 'money-recbalance-formpanel',
  56. defaultCondition:'',
  57. baseVastUrl: '/api/money/recbalance/',
  58. caller: 'RecBalance',
  59. baseColumn: [{
  60. text: 'id',
  61. dataIndex: 'id',
  62. width: 100,
  63. xtype: 'numbercolumn',
  64. hidden: true
  65. }, {
  66. text: '收款单号',
  67. dataIndex: 'rb_code',
  68. width: 130
  69. }, {
  70. text: '日期',
  71. dataIndex: 'rb_date',
  72. xtype: 'datecolumn',
  73. width: 100
  74. }, {
  75. text: '客户名称',
  76. dataIndex: 'rb_custname',
  77. width: 180,
  78. }, {
  79. text: '单据状态',
  80. align: 'center',
  81. dataIndex: 'rb_status',
  82. width: 80
  83. }, {
  84. text: '收款人',
  85. dataIndex: 'rb_manname',
  86. width: 110
  87. }, {
  88. text: '录入人',
  89. dataIndex: 'creatorName',
  90. width: 110
  91. }, {
  92. text: '审核人',
  93. dataIndex: 'rb_auditman',
  94. width: 110
  95. }, {
  96. text: '备注',
  97. dataIndex: 'rb_remark',
  98. width: 250
  99. }],
  100. relativeColumn:[{
  101. text: 'id',
  102. dataIndex: 'id',
  103. width: 100,
  104. xtype: 'numbercolumn',
  105. hidden: true
  106. }, {
  107. text: '收款单号',
  108. dataIndex: 'rb_code',
  109. width: 130
  110. }, {
  111. text: '日期',
  112. dataIndex: 'rb_date',
  113. xtype: 'datecolumn',
  114. width: 100
  115. }, {
  116. text: '单据状态',
  117. align: 'center',
  118. dataIndex: 'rb_status',
  119. width: 80
  120. }, {
  121. text: '客户名称',
  122. dataIndex: 'rb_custname',
  123. width: 180,
  124. },{
  125. text: '收款人',
  126. dataIndex: 'rb_manname',
  127. width: 100
  128. }, {
  129. text: '录入人',
  130. dataIndex: 'creatorName',
  131. width: 110
  132. }, {
  133. text: '审核人',
  134. dataIndex: 'rb_auditman',
  135. width: 110
  136. },{
  137. text: '资金账户',
  138. dataIndex: 'rd_bankname',
  139. width: 100
  140. },{
  141. text: '收款金额',
  142. xtype: 'numbercolumn',
  143. dataIndex: 'rd_amount',
  144. width: 100,
  145. renderer : function(v) {
  146. var arr = (v + '.').split('.');
  147. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  148. var format = '0,000.' + xr.join('');
  149. return Ext.util.Format.number(v, format);
  150. }
  151. }, {
  152. text: '结算方式',
  153. dataIndex: 'rd_paymethod',
  154. width: 90
  155. }, {
  156. text: '结算号',
  157. dataIndex: 'rd_paycode',
  158. width: 90
  159. },{
  160. text: '备注',
  161. dataIndex: 'rb_remark',
  162. width: 250
  163. }]
  164. }
  165. });