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