QueryPanel.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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. xtype: 'textfield',
  52. name: 'rbd_slcode',
  53. fieldLabel: '源单编号',
  54. columnWidth: 0.3,
  55. }],
  56. moreQueryFormItems: [],
  57. queryGridConfig: {
  58. idField: 'id',
  59. codeField: 'rb_code',
  60. addTitle: '收款单',
  61. addXtype: 'money-recbalance-formpanel',
  62. defaultCondition:'',
  63. baseVastUrl: '/api/money/recbalance/',
  64. // baseVastUrl: 'http://192.168.253.35:8880/recbalance/',
  65. baseColumn: [{
  66. text: 'id',
  67. dataIndex: 'id',
  68. width: 100,
  69. xtype: 'numbercolumn',
  70. hidden: true
  71. }, {
  72. text: '单据编号',
  73. dataIndex: 'rb_code',
  74. width: 200
  75. }, {
  76. text: '审核状态',
  77. dataIndex: 'rb_status',
  78. width: 120
  79. }, {
  80. text: '单据日期',
  81. dataIndex: 'rb_date',
  82. xtype: 'datecolumn',
  83. width: 200
  84. }, {
  85. text: '客户编号',
  86. dataIndex: 'rb_custcode',
  87. hidden: true
  88. }, {
  89. text: '客户名称',
  90. dataIndex: 'rb_custname',
  91. }, {
  92. text: '收款人',
  93. dataIndex: 'rb_manname',
  94. width: 120,
  95. }, {
  96. text: '资金账户',
  97. dataIndex: 'rd_bankname',
  98. width: 120,
  99. },{
  100. text: '结算方式',
  101. dataIndex: 'rd_paymethod',
  102. width: 120,
  103. },{
  104. text: '结算号',
  105. dataIndex: 'rd_paycode',
  106. width: 120,
  107. },{
  108. text: '备注',
  109. dataIndex: 'rd_remark',
  110. width: 120,
  111. },{
  112. text: '收款总额',
  113. dataIndex: 'rb_rdamount',
  114. xtype: 'numbercolumn',
  115. width: 120,
  116. hidden: true,
  117. renderer : function(v) {
  118. var arr = (v + '.').split('.');
  119. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  120. var format = '0,000.' + xr.join();
  121. return Ext.util.Format.number(v, format);
  122. },
  123. },{
  124. text: '源单编号',
  125. dataIndex: 'rbd_slcode',
  126. width: 120,
  127. },{
  128. text: '业务类别',
  129. dataIndex: 'rbd_slkind',
  130. width: 120,
  131. },{
  132. text: '单据日期',
  133. dataIndex: 'rbd_sldate',
  134. xtype: 'datecolumn',
  135. width: 120,
  136. },{
  137. text: '单据金额',
  138. dataIndex: 'rbd_amount',
  139. xtype: 'numbercolumn',
  140. width: 120,
  141. },{
  142. text: '本次核销金额',
  143. dataIndex: 'rbd_nowbalance',
  144. xtype: 'numbercolumn',
  145. width: 120,
  146. },
  147. ]
  148. },
  149. // override
  150. getQueryMode: function() {
  151. return 'MAIN';
  152. }
  153. });