QueryPanel.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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: 'employeeDbfindTrigger',
  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: 'employeeDbfindTrigger',
  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. baseColumn: [
  67. {
  68. text: 'id',
  69. dataIndex: 'id',
  70. width: 0,
  71. xtype: 'numbercolumn',
  72. hidden: true
  73. }, {
  74. text: '付款单号',
  75. dataIndex: 'pb_code',
  76. width: 130
  77. }, {
  78. text: '日期',
  79. dataIndex: 'pb_date',
  80. xtype: 'datecolumn',
  81. width: 100
  82. }, {
  83. text: '供应商名称',
  84. dataIndex: 'pb_vendname',
  85. width: 180,
  86. }, {
  87. text: '单据状态',
  88. align: 'center',
  89. dataIndex: 'pb_status',
  90. width: 90
  91. }, {
  92. text: '付款人',
  93. dataIndex: 'pb_manname',
  94. width: 110
  95. }, {
  96. text: '备注',
  97. dataIndex: 'pb_remark',
  98. width: 250
  99. }],
  100. relativeColumn: [{
  101. text: 'id',
  102. dataIndex: 'id',
  103. width: 0,
  104. xtype: 'numbercolumn',
  105. hidden: true
  106. }, {
  107. text: '付款单号',
  108. dataIndex: 'pb_code',
  109. width: 130
  110. }, {
  111. text: '日期',
  112. dataIndex: 'pb_date',
  113. xtype: 'datecolumn',
  114. width: 100
  115. }, {
  116. text: '供应商名称',
  117. dataIndex: 'pb_vendname',
  118. width: 180,
  119. }, {
  120. text: '单据状态',
  121. align: 'center',
  122. dataIndex: 'pb_status',
  123. width: 90
  124. }, {
  125. text: '付款人',
  126. dataIndex: 'pb_manname',
  127. width: 110
  128. },{
  129. text: '资金账户',
  130. dataIndex: 'pd_bankname',
  131. width: 110
  132. },{
  133. text: '付款金额',
  134. xtype: 'numbercolumn',
  135. dataIndex: 'pd_amount',
  136. width: 120,
  137. renderer: function (v) {
  138. var arr = (v + '.').split('.');
  139. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  140. var format = '0,000.' + xr.join();
  141. return Ext.util.Format.number(v, format);
  142. },
  143. } ,{
  144. text: '结算方式',
  145. dataIndex: 'pd_paymethod',
  146. width: 100
  147. },{
  148. text: '结算号',
  149. dataIndex: 'pd_paycode',
  150. width: 100
  151. },{
  152. text: '备注',
  153. dataIndex: 'pd_remark',
  154. width: 250
  155. }]
  156. }
  157. });