QueryPanel.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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_status',
  50. fieldLabel: '审核状态',
  51. datas: [
  52. ["已审核", "已审核"],
  53. ["未审核", "未审核"]
  54. ]
  55. }, {
  56. name: 'ord_type',
  57. fieldLabel: '收入类别',
  58. xtype : "remotecombo",
  59. storeUrl:'/api/document/fundinouttype/getCombo?condition=收入',
  60. },{
  61. xtype: 'textfield',
  62. name: 'creatorName',
  63. fieldLabel: '录入人'
  64. }],
  65. moreQueryFormItems: [],
  66. queryGridConfig: {
  67. idField: 'id',
  68. codeField: 'or_code',
  69. addTitle: '其它收入单',
  70. addXtype: 'money-othreceipts-formpanel',
  71. defaultCondition:'',
  72. baseVastUrl: '/api/money/othreceipts/',
  73. baseColumn: [{
  74. text: 'id',
  75. dataIndex: 'id',
  76. width: 0,
  77. xtype: 'numbercolumn'
  78. }, {
  79. text: '单据编号',
  80. dataIndex: 'or_code',
  81. width: 200
  82. },{
  83. text: '单据日期',
  84. dataIndex: 'or_date',
  85. xtype: 'datecolumn',
  86. width: 200
  87. }, {
  88. text: '审核状态',
  89. dataIndex: 'or_status',
  90. width: 120
  91. }, {
  92. text: '客户名称',
  93. dataIndex: 'or_custname',
  94. width: 120
  95. }, {
  96. text: '结算账户',
  97. dataIndex: 'or_bankname',
  98. width: 120
  99. },{
  100. text: '收款金额',
  101. xtype: 'numbercolumn',
  102. dataIndex: 'or_amount',
  103. width: 120,
  104. renderer : function(v) {
  105. var arr = (v + '.').split('.');
  106. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  107. var format = '0,000.' + xr.join();
  108. return Ext.util.Format.number(v, format);
  109. }
  110. },{
  111. text: '录入人',
  112. dataIndex: 'or_recorder',
  113. width: 120
  114. },{
  115. text: '审核人',
  116. dataIndex: 'or_auditman',
  117. width: 120
  118. }, {
  119. text: '收入类别',
  120. dataIndex: 'ord_type',
  121. width: 120
  122. }, {
  123. text: '明细金额',
  124. xtype: 'numbercolumn',
  125. dataIndex: 'ord_nowbalance',
  126. width: 120,
  127. renderer : function(v) {
  128. var arr = (v + '.').split('.');
  129. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  130. var format = '0,000.' + xr.join();
  131. return Ext.util.Format.number(v, format);
  132. }
  133. }, {
  134. text: '备注',
  135. dataIndex: 'ord_remark',
  136. width: 250
  137. }],
  138. relativeColumn: []
  139. }
  140. });