QueryPanel.js 5.8 KB

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