QueryPanel.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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: 'vendorDbfindTrigger',
  21. name: 'pb_vendname',
  22. margin:'0 0 0 20',
  23. emptyText :'请输入供应商编号或名称'
  24. }, {
  25. xtype: 'condatefield',
  26. name: 'pb_date',
  27. fieldLabel: '日期',
  28. columnWidth: 0.5,
  29. operation: 'between'
  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. 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: 200,
  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. xtype: 'numbercolumn',
  104. hidden: true
  105. }, {
  106. text: '付款单号',
  107. dataIndex: 'pb_code',
  108. width: 130
  109. }, {
  110. text: '日期',
  111. dataIndex: 'pb_date',
  112. xtype: 'datecolumn',
  113. width: 100
  114. }, {
  115. text: '供应商名称',
  116. dataIndex: 'pb_vendname',
  117. width: 200,
  118. }, {
  119. text: '单据状态',
  120. align: 'center',
  121. dataIndex: 'pb_status',
  122. width: 90
  123. }, {
  124. text: '付款人',
  125. dataIndex: 'pb_manname',
  126. width: 110
  127. },{
  128. text: '资金账户',
  129. dataIndex: 'pd_bankname',
  130. width: 110
  131. },{
  132. text: '付款金额(元)',
  133. xtype: 'numbercolumn',
  134. dataIndex: 'pd_amount',
  135. width: 120,
  136. renderer: function (v) {
  137. return saas.util.BaseUtil.numberFormat(v, 2, true);
  138. },
  139. } ,{
  140. text: '结算方式',
  141. dataIndex: 'pd_paymethod',
  142. width: 100
  143. },{
  144. text: '结算号',
  145. dataIndex: 'pd_paycode',
  146. width: 100
  147. },{
  148. text: '备注',
  149. dataIndex: 'pd_remark',
  150. width: 250
  151. }]
  152. }
  153. });