QueryPanel.js 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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_currency',
  100. align:'center',
  101. width: 65
  102. } ,{
  103. text: '汇率',
  104. dataIndex: 'pb_rate',
  105. xtype: 'numbercolumn',
  106. width: 80,
  107. renderer: function(v, m, r) {
  108. return saas.util.BaseUtil.numberFormat(v, 6, false);
  109. },
  110. } ,{
  111. text: '付款人',
  112. dataIndex: 'pb_manname',
  113. width: 110
  114. }, {
  115. text: '备注',
  116. dataIndex: 'pb_remark',
  117. width: 250
  118. }],
  119. relativeColumn: [{
  120. text: 'id',
  121. dataIndex: 'id',
  122. xtype: 'numbercolumn',
  123. hidden: true
  124. }, {
  125. text: '付款单号',
  126. dataIndex: 'pb_code',
  127. width: 150
  128. }, {
  129. text: '单据日期',
  130. dataIndex: 'pb_date',
  131. xtype: 'datecolumn',
  132. width: 110
  133. }, {
  134. text: '供应商名称',
  135. dataIndex: 'pb_vendname',
  136. width: 200,
  137. }, {
  138. text: '单据状态',
  139. align: 'center',
  140. dataIndex: 'pb_status',
  141. width: 80
  142. }, {
  143. text: '付款人',
  144. dataIndex: 'pb_manname',
  145. width: 80
  146. },{
  147. text: '资金账户',
  148. dataIndex: 'pd_bankname',
  149. width: 150
  150. },{
  151. text: '付款金额(元)',
  152. xtype: 'numbercolumn',
  153. dataIndex: 'pd_amount',
  154. width: 120,
  155. renderer: function(v, m, r) {
  156. return saas.util.BaseUtil.numberFormat(v, 2, true);
  157. },
  158. } ,{
  159. text: '币别',
  160. dataIndex: 'pb_currency',
  161. align:'center',
  162. width: 65
  163. } ,{
  164. text: '汇率',
  165. dataIndex: 'pb_rate',
  166. xtype: 'numbercolumn',
  167. width: 80,
  168. renderer: function(v, m, r) {
  169. return saas.util.BaseUtil.numberFormat(v, 6, false);
  170. },
  171. } ,{
  172. text: '结算方式',
  173. dataIndex: 'pd_paymethod',
  174. width: 120
  175. },{
  176. text: '结算号',
  177. dataIndex: 'pd_paycode',
  178. width: 120
  179. },{
  180. text: '备注',
  181. dataIndex: 'pd_remark',
  182. width: 250
  183. }]
  184. }
  185. });
  186. this.callParent(arguments);
  187. },
  188. });