QueryPanel.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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: 'condatefield',
  21. name: 'pb_date',
  22. fieldLabel: '日期',
  23. columnWidth: 0.5,
  24. operation: 'between'
  25. }, {
  26. xtype: 'vendorDbfindTrigger',
  27. name: 'pb_vendname',
  28. fieldLabel: '供应商',
  29. emptyText :'请输入供应商编号或名称'
  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. moreQueryFormItems: [],
  59. queryGridConfig: {
  60. idField: 'id',
  61. codeField: 'pb_code',
  62. addTitle: '付款单',
  63. addXtype: 'money-paybalance-formpanel',
  64. defaultCondition: '',
  65. baseVastUrl: '/api/money/paybalance/',
  66. caller: 'PayBalance',
  67. baseColumn: [
  68. {
  69. text: 'id',
  70. dataIndex: 'id',
  71. width: 0,
  72. xtype: 'numbercolumn',
  73. hidden: true
  74. }, {
  75. text: '付款单号',
  76. dataIndex: 'pb_code',
  77. width: 130
  78. }, {
  79. text: '日期',
  80. dataIndex: 'pb_date',
  81. xtype: 'datecolumn',
  82. width: 100
  83. }, {
  84. text: '供应商名称',
  85. dataIndex: 'pb_vendname',
  86. width: 180,
  87. }, {
  88. text: '单据状态',
  89. align: 'center',
  90. dataIndex: 'pb_status',
  91. width: 90
  92. }, {
  93. text: '付款人',
  94. dataIndex: 'pb_manname',
  95. width: 110
  96. }, {
  97. text: '备注',
  98. dataIndex: 'pb_remark',
  99. width: 250
  100. }],
  101. relativeColumn: [{
  102. text: 'id',
  103. dataIndex: 'id',
  104. width: 0,
  105. xtype: 'numbercolumn',
  106. hidden: true
  107. }, {
  108. text: '付款单号',
  109. dataIndex: 'pb_code',
  110. width: 130
  111. }, {
  112. text: '日期',
  113. dataIndex: 'pb_date',
  114. xtype: 'datecolumn',
  115. width: 100
  116. }, {
  117. text: '供应商名称',
  118. dataIndex: 'pb_vendname',
  119. width: 180,
  120. }, {
  121. text: '单据状态',
  122. align: 'center',
  123. dataIndex: 'pb_status',
  124. width: 90
  125. }, {
  126. text: '付款人',
  127. dataIndex: 'pb_manname',
  128. width: 110
  129. },{
  130. text: '资金账户',
  131. dataIndex: 'pd_bankname',
  132. width: 110
  133. },{
  134. text: '付款金额(元)',
  135. xtype: 'numbercolumn',
  136. dataIndex: 'pd_amount',
  137. width: 120,
  138. renderer: function (v) {
  139. var arr = (v + '.').split('.');
  140. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  141. var format = '0,000.' + xr.join('');
  142. return Ext.util.Format.number(v, format);
  143. },
  144. } ,{
  145. text: '结算方式',
  146. dataIndex: 'pd_paymethod',
  147. width: 100
  148. },{
  149. text: '结算号',
  150. dataIndex: 'pd_paycode',
  151. width: 100
  152. },{
  153. text: '备注',
  154. dataIndex: 'pd_remark',
  155. width: 250
  156. }]
  157. }
  158. });