QueryPanel.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. Ext.define('saas.view.money.recBalance.QueryPanel', {
  2. extend: 'saas.view.core.query.QueryPanel',
  3. xtype: 'money-recbalance-querypanel',
  4. controller: 'money-recbalance-querypanel',
  5. viewModel: 'money-recbalance-querypanel',
  6. viewName: 'money-recbalance-querypanel',
  7. queryFormItems: [{
  8. xtype: 'hidden',
  9. name: 'rb_id',
  10. fieldLabel: 'ID',
  11. allowBlank: true,
  12. getCondition: function(value) {
  13. return 'rb_id=' + value;
  14. }
  15. }, {
  16. xtype: 'textfield',
  17. name: 'rb_code',
  18. fieldLabel: '单据编号',
  19. columnWidth: 0.3,
  20. }, {
  21. xtype: 'dbfindtrigger',
  22. name: 'rb_custname',
  23. fieldLabel: '客户名',
  24. columnWidth: 0.3,
  25. }, {
  26. xtype: 'textfield',
  27. name: 'rb_manname',
  28. fieldLabel: '收款人',
  29. columnWidth: 0.3,
  30. },{
  31. xtype: 'textfield',
  32. name: 'rd_bankname',
  33. fieldLabel: '资金账户',
  34. columnWidth: 0.3,
  35. }, {
  36. xtype: 'condatefield',
  37. name: 'rb_date',
  38. fieldLabel: '单据日期',
  39. columnWidth: 0.6,
  40. operation: 'between'
  41. },{
  42. xtype: 'multicombo',
  43. name: 'rb_status',
  44. fieldLabel: '审核状态',
  45. columnWidth: 0.3,
  46. datas: [
  47. ["已审核", "已审核"],
  48. ["未审核", "未审核"]
  49. ]
  50. }],
  51. moreQueryFormItems: [],
  52. queryGridConfig: {
  53. idField: 'id',
  54. codeField: 'rb_code',
  55. addTitle: '收款单',
  56. addXtype: 'money-recbalance-formpanel',
  57. defaultCondition:'',
  58. baseVastUrl: '/api/money/recbalance/',
  59. // baseVastUrl: 'http://192.168.253.35:8880/recbalance/',
  60. baseColumn: [{
  61. text: 'id',
  62. dataIndex: 'id',
  63. width: 100,
  64. xtype: 'numbercolumn',
  65. hidden: true
  66. }, {
  67. text: '单据编号',
  68. dataIndex: 'rb_code',
  69. width: 200
  70. }, {
  71. text: '审核状态',
  72. dataIndex: 'rb_status',
  73. width: 120
  74. }, {
  75. text: '单据日期',
  76. dataIndex: 'rb_date',
  77. xtype: 'datecolumn',
  78. width: 200
  79. }, {
  80. text: '客户编号',
  81. dataIndex: 'rb_custcode',
  82. hidden: true
  83. }, {
  84. text: '客户名称',
  85. dataIndex: 'rb_custname',
  86. }, {
  87. text: '收款人',
  88. dataIndex: 'rb_manname',
  89. width: 120,
  90. }, {
  91. text: '资金账户',
  92. dataIndex: 'rd_bankname',
  93. width: 120,
  94. },{
  95. text: '收款金额',
  96. xtype: 'numbercolumn',
  97. dataIndex: 'rd_amount',
  98. width: 120,
  99. renderer : function(v) {
  100. var arr = (v + '.').split('.');
  101. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  102. var format = '0,000.' + xr.join();
  103. return Ext.util.Format.number(v, format);
  104. },
  105. }, {
  106. text: '结算方式',
  107. dataIndex: 'rd_paymethod',
  108. width: 120,
  109. },{
  110. text: '结算号',
  111. dataIndex: 'rd_paycode',
  112. width: 120,
  113. },{
  114. text: '备注',
  115. dataIndex: 'rd_remark',
  116. width: 120,
  117. },{
  118. text: '收款总额',
  119. dataIndex: 'rb_rdamount',
  120. xtype: 'numbercolumn',
  121. width: 120,
  122. renderer : function(v) {
  123. var arr = (v + '.').split('.');
  124. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  125. var format = '0,000.' + xr.join();
  126. return Ext.util.Format.number(v, format);
  127. },
  128. },{
  129. text: '源单编号',
  130. dataIndex: 'rbd_slcode',
  131. width: 0
  132. },{
  133. text: '业务类别',
  134. dataIndex: 'rbd_slkind',
  135. width: 0
  136. },{
  137. text: '单据日期',
  138. dataIndex: 'rbd_sldate',
  139. xtype: 'datecolumn',
  140. width: 0
  141. },{
  142. text: '单据金额',
  143. dataIndex: 'rbd_amount',
  144. xtype: 'numbercolumn',
  145. width: 0
  146. },{
  147. text: '本次核销金额',
  148. dataIndex: 'rbd_nowbalance',
  149. xtype: 'numbercolumn',
  150. width: 0
  151. },
  152. ]
  153. },
  154. // override
  155. getQueryMode: function() {
  156. return 'MAIN';
  157. }
  158. });