QueryPanel.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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: 'customerDbfindTrigger',
  27. name: 'or_custname',
  28. fieldLabel: '客户名称',
  29. },{
  30. xtype: 'textfield',
  31. name: 'creatorName',
  32. fieldLabel: '录入人'
  33. },{
  34. xtype: 'textfield',
  35. name: 'or_auditman',
  36. fieldLabel: '审核人'
  37. }, {
  38. xtype: 'bandinfoDbfindTrigger',
  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: 'combobox',
  49. name: 'or_statuscode',
  50. fieldLabel: '审核状态',
  51. queryMode: 'local',
  52. displayField: 'or_status',
  53. valueField: 'or_statuscode',
  54. emptyText :'全部',
  55. editable:false,
  56. store: Ext.create('Ext.data.ArrayStore', {
  57. fields: ['or_statuscode', 'or_status'],
  58. data: [
  59. ["ALL", "全部"],
  60. ["AUDITED", "已审核"],
  61. ["UNAUDITED", "未审核"]
  62. ]
  63. }),
  64. getCondition: function(value) {
  65. if(value == 'ALL') {
  66. return '1=1';
  67. }else {
  68. return 'or_statuscode=\'' + value + '\'';
  69. }
  70. }
  71. }, {
  72. name: 'ord_type',
  73. fieldLabel: '收入类别',
  74. xtype : "remotecombo",
  75. storeUrl:'/api/document/fundinouttype/getCombo?condition=收入',
  76. }],
  77. moreQueryFormItems: [],
  78. queryGridConfig: {
  79. idField: 'id',
  80. codeField: 'or_code',
  81. addTitle: '其它收入单',
  82. addXtype: 'money-othreceipts-formpanel',
  83. defaultCondition:'',
  84. baseVastUrl: '/api/money/othreceipts/',
  85. baseColumn: [{
  86. text: 'id',
  87. dataIndex: 'id',
  88. width: 0,
  89. xtype: 'numbercolumn'
  90. }, {
  91. text: '单据编号',
  92. dataIndex: 'or_code',
  93. width: 200
  94. },{
  95. text: '单据日期',
  96. dataIndex: 'or_date',
  97. xtype: 'datecolumn',
  98. width: 200
  99. }, {
  100. text: '审核状态',
  101. dataIndex: 'or_status',
  102. width: 120
  103. }, {
  104. text: '客户名称',
  105. dataIndex: 'or_custname',
  106. width: 120
  107. }, {
  108. text: '结算账户',
  109. dataIndex: 'or_bankname',
  110. width: 120
  111. },{
  112. text: '收款金额',
  113. xtype: 'numbercolumn',
  114. dataIndex: 'or_amount',
  115. width: 120,
  116. renderer : function(v) {
  117. var arr = (v + '.').split('.');
  118. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  119. var format = '0,000.' + xr.join();
  120. return Ext.util.Format.number(v, format);
  121. }
  122. },{
  123. text: '录入人',
  124. dataIndex: 'or_recorder',
  125. width: 120
  126. },{
  127. text: '审核人',
  128. dataIndex: 'or_auditman',
  129. width: 120
  130. }, {
  131. text: '收入类别',
  132. dataIndex: 'ord_type',
  133. width: 120
  134. }, {
  135. text: '明细金额',
  136. xtype: 'numbercolumn',
  137. dataIndex: 'ord_nowbalance',
  138. width: 120,
  139. renderer : function(v) {
  140. var arr = (v + '.').split('.');
  141. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  142. var format = '0,000.' + xr.join();
  143. return Ext.util.Format.number(v, format);
  144. }
  145. }, {
  146. text: '备注',
  147. dataIndex: 'ord_remark',
  148. width: 250
  149. }],
  150. relativeColumn: []
  151. }
  152. });