QueryPanel.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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. 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: 'rb_remark',
  90. width: 250
  91. }],
  92. relativeColumn:[{
  93. text: 'id',
  94. dataIndex: 'id',
  95. width: 100,
  96. xtype: 'numbercolumn',
  97. hidden: true
  98. }, {
  99. text: '收款单号',
  100. dataIndex: 'rb_code',
  101. width: 130
  102. }, {
  103. text: '日期',
  104. dataIndex: 'rb_date',
  105. xtype: 'datecolumn',
  106. width: 100
  107. }, {
  108. text: '单据状态',
  109. align: 'center',
  110. dataIndex: 'rb_status',
  111. width: 80
  112. }, {
  113. text: '客户名称',
  114. dataIndex: 'rb_custname',
  115. width: 180,
  116. },{
  117. text: '收款人',
  118. dataIndex: 'rb_manname',
  119. width: 100
  120. },{
  121. text: '资金账户',
  122. dataIndex: 'rd_bankname',
  123. width: 100
  124. },{
  125. text: '收款金额(元)',
  126. xtype: 'numbercolumn',
  127. dataIndex: 'rd_amount',
  128. width: 100,
  129. renderer : function(v) {
  130. return saas.util.BaseUtil.numberFormat(v, 2, true);
  131. }
  132. }, {
  133. text: '结算方式',
  134. dataIndex: 'rd_paymethod',
  135. width: 90
  136. }, {
  137. text: '结算号',
  138. dataIndex: 'rd_paycode',
  139. width: 90
  140. },{
  141. text: '备注',
  142. dataIndex: 'rb_remark',
  143. width: 250
  144. }]
  145. }
  146. });