QueryPanel.js 6.8 KB

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