QueryPanel.js 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. Ext.define('saas.view.money.paybalance.QueryPanel', {
  2. extend: 'saas.view.core.query.QueryPanel',
  3. xtype: 'money-paybalance-querypanel',
  4. controller: 'money-paybalance-querypanel',
  5. viewModel: 'money-paybalance-querypanel',
  6. viewName: 'money-paybalance-querypanel',
  7. queryFormItems: [{
  8. xtype: 'hidden',
  9. name: 'pb_id',
  10. fieldLabel: 'ID',
  11. allowBlank: true,
  12. getCondition: function(value) {
  13. return 'pb_id=' + value;
  14. }
  15. }, {
  16. xtype: 'textfield',
  17. name: 'pb_code',
  18. emptyText :'请输入单号'
  19. }, {
  20. xtype: 'vendorDbfindTrigger',
  21. name: 'pb_vendname',
  22. margin:'0 0 0 20',
  23. emptyText :'请输入供应商编号或名称'
  24. }, {
  25. xtype: 'condatefield',
  26. name: 'pb_date',
  27. fieldLabel: '日期',
  28. columnWidth: 0.5,
  29. operation: 'between'
  30. }/*, {
  31. xtype: 'textfield',
  32. name: 'pbd_slcode',
  33. fieldLabel: '来源单号',
  34. showDetail: true
  35. } ,{
  36. xtype:'textfield',
  37. name:'pbd_slkind',
  38. fieldLabel: '业务类型',
  39. showDetail: true
  40. }*/, {
  41. xtype: 'accountDbfindTrigger',
  42. name: 'creatorName',
  43. fieldLabel: '录入人',
  44. emptyText:'请输入账户名称或姓名',
  45. getCondition: function(value) {
  46. if(!value) {
  47. return '1=1';
  48. }else {
  49. return 'paybalance.creatorName like\'%' + value + '%\'';
  50. }
  51. }
  52. }, {
  53. xtype: 'accountDbfindTrigger',
  54. name: 'pb_auditman',
  55. fieldLabel: '审核人',
  56. emptyText:'请输入账户名称或姓名'
  57. }, {
  58. xtype: 'bandinfoDbfindTrigger',
  59. name: 'pd_bankcode',
  60. fieldLabel: '资金账户',
  61. emptyText:'请输入资金账户名称或姓名',
  62. showDetail: true
  63. }],
  64. moreQueryFormItems: [],
  65. queryGridConfig: {
  66. idField: 'id',
  67. codeField: 'pb_code',
  68. addTitle: '付款单',
  69. addXtype: 'money-paybalance-formpanel',
  70. defaultCondition: '',
  71. baseVastUrl: '/api/money/paybalance/',
  72. caller: 'PayBalance',
  73. baseColumn: [
  74. {
  75. text: 'id',
  76. dataIndex: 'id',
  77. xtype: 'numbercolumn',
  78. hidden: true
  79. }, {
  80. text: '付款单号',
  81. dataIndex: 'pb_code',
  82. width: 150
  83. }, {
  84. text: '单据日期',
  85. dataIndex: 'pb_date',
  86. xtype: 'datecolumn',
  87. width: 110
  88. }, {
  89. text: '供应商名称',
  90. dataIndex: 'pb_vendname',
  91. width: 200,
  92. }, {
  93. text: '单据状态',
  94. align: 'center',
  95. dataIndex: 'pb_status',
  96. width: 80
  97. }, {
  98. text: '付款金额',
  99. dataIndex: 'pb_amount',
  100. width: 120,
  101. renderer : function(v) {
  102. return saas.util.BaseUtil.numberFormat(v, 2, true);
  103. }
  104. }, {
  105. text: '付款人',
  106. dataIndex: 'pb_manname',
  107. width: 80
  108. }, {
  109. text: '备注',
  110. dataIndex: 'pb_remark',
  111. width: 250
  112. }],
  113. relativeColumn: [{
  114. text: 'id',
  115. dataIndex: 'id',
  116. xtype: 'numbercolumn',
  117. hidden: true
  118. }, {
  119. text: '付款单号',
  120. dataIndex: 'pb_code',
  121. width: 150
  122. }, {
  123. text: '单据日期',
  124. dataIndex: 'pb_date',
  125. xtype: 'datecolumn',
  126. width: 110
  127. }, {
  128. text: '供应商名称',
  129. dataIndex: 'pb_vendname',
  130. width: 200,
  131. }, {
  132. text: '审核状态',
  133. align: 'center',
  134. dataIndex: 'pb_status',
  135. width: 80
  136. }, {
  137. text: '付款人',
  138. dataIndex: 'pb_manname',
  139. width: 80
  140. },{
  141. text: '资金账户',
  142. dataIndex: 'pd_bankname',
  143. width: 150
  144. },{
  145. text: '付款金额(元)',
  146. xtype: 'numbercolumn',
  147. dataIndex: 'pd_amount',
  148. width: 120,
  149. renderer: function (v) {
  150. return saas.util.BaseUtil.numberFormat(v, 2, true);
  151. },
  152. },{
  153. text: '结算方式',
  154. dataIndex: 'pd_paymethod',
  155. width: 120
  156. },{
  157. text: '结算号',
  158. dataIndex: 'pd_paycode',
  159. width: 120
  160. },{
  161. text: '备注',
  162. dataIndex: 'pd_remark',
  163. width: 250
  164. }]
  165. }
  166. });