QueryPanel.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. Ext.define('saas.view.money.othreceipts.QueryPanel', {
  2. extend: 'saas.view.core.query.QueryPanel',
  3. xtype: 'money-othreceipts-querypanel',
  4. controller: 'money-othreceipts-querypanel',
  5. viewModel: 'money-othreceipts-querypanel',
  6. viewName: 'money-othreceipts-querypanel',
  7. queryFormItems: [{
  8. xtype: 'hidden',
  9. name: 'or_id',
  10. fieldLabel: 'ID',
  11. allowBlank: true,
  12. columnWidth: 0
  13. }, {
  14. xtype : 'hidden',
  15. name : 'or_custid',
  16. fieldLabel : '客户ID'
  17. }, {
  18. xtype: 'textfield',
  19. name: 'or_code',
  20. fieldLabel: '单据编号',
  21. }, {
  22. xtype: 'hidden',
  23. name: 'or_custcode',
  24. fieldLabel: '客户编号'
  25. }, {
  26. xtype: 'dbfindtrigger',
  27. name: 'or_custname',
  28. fieldLabel: '客户名称',
  29. }, {
  30. xtype: 'textfield',
  31. name: 'or_recorder',
  32. fieldLabel: '制单人'
  33. },{
  34. xtype: 'textfield',
  35. name: 'or_auditman',
  36. fieldLabel: '审核人'
  37. }, {
  38. xtype: 'dbfindtrigger',
  39. name: 'or_bankname',
  40. fieldLabel: '结算账户'
  41. }, {
  42. xtype: 'condatefield',
  43. name: 'or_date',
  44. fieldLabel: '单据日期',
  45. columnWidth: 0.5,
  46. operation: 'between'
  47. }, {
  48. xtype: 'multicombo',
  49. name: 'or_statuscode',
  50. fieldLabel: '审核状态',
  51. datas: [
  52. ["ALL", "全部"],
  53. ["AUDITED", "已审核"],
  54. ["UNAUDITED", "未审核"]
  55. ],
  56. getCondition: function(value) {
  57. if(value == 'ALL') {
  58. return '1=1';
  59. }else {
  60. return 'or_statuscode=\'' + value + '\'';
  61. }
  62. }
  63. }, {
  64. name: 'ord_type',
  65. fieldLabel: '收入类别',
  66. xtype : "remotecombo",
  67. storeUrl:'/api/document/fundinouttype/getCombo?condition=收入',
  68. },{
  69. xtype: 'textfield',
  70. name: 'creatorName',
  71. fieldLabel: '录入人'
  72. }],
  73. moreQueryFormItems: [],
  74. queryGridConfig: {
  75. idField: 'id',
  76. codeField: 'or_code',
  77. addTitle: '其它收入单',
  78. addXtype: 'money-othreceipts-formpanel',
  79. defaultCondition:'',
  80. baseVastUrl: '/api/money/othreceipts/',
  81. baseColumn: [{
  82. text: 'id',
  83. dataIndex: 'id',
  84. width: 0,
  85. xtype: 'numbercolumn'
  86. }, {
  87. text: '单据编号',
  88. dataIndex: 'or_code',
  89. width: 200
  90. },{
  91. text: '单据日期',
  92. dataIndex: 'or_date',
  93. xtype: 'datecolumn',
  94. width: 200
  95. }, {
  96. text: '审核状态',
  97. dataIndex: 'or_status',
  98. width: 120
  99. }, {
  100. text: '客户名称',
  101. dataIndex: 'or_custname',
  102. width: 120
  103. }, {
  104. text: '结算账户',
  105. dataIndex: 'or_bankname',
  106. width: 120
  107. },{
  108. text: '收款金额',
  109. xtype: 'numbercolumn',
  110. dataIndex: 'or_amount',
  111. width: 120,
  112. renderer : function(v) {
  113. var arr = (v + '.').split('.');
  114. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  115. var format = '0,000.' + xr.join();
  116. return Ext.util.Format.number(v, format);
  117. }
  118. },{
  119. text: '录入人',
  120. dataIndex: 'or_recorder',
  121. width: 120
  122. },{
  123. text: '审核人',
  124. dataIndex: 'or_auditman',
  125. width: 120
  126. }, {
  127. text: '收入类别',
  128. dataIndex: 'ord_type',
  129. width: 120
  130. }, {
  131. text: '明细金额',
  132. xtype: 'numbercolumn',
  133. dataIndex: 'ord_nowbalance',
  134. width: 120,
  135. renderer : function(v) {
  136. var arr = (v + '.').split('.');
  137. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  138. var format = '0,000.' + xr.join();
  139. return Ext.util.Format.number(v, format);
  140. }
  141. }, {
  142. text: '备注',
  143. dataIndex: 'ord_remark',
  144. width: 250
  145. }],
  146. relativeColumn: []
  147. }
  148. });