QueryPanel.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. columnWidth: 0.3
  22. }, {
  23. xtype: 'hidden',
  24. name: 'or_custcode',
  25. fieldLabel: '客户编号'
  26. }, {
  27. xtype: 'dbfindtrigger',
  28. name: 'or_custname',
  29. fieldLabel: '客户名称',
  30. columnWidth: 0.3
  31. }, {
  32. xtype : 'hidden',
  33. name : 'or_bankid',
  34. fieldLabel : '账户ID'
  35. }, {
  36. xtype: 'hidden',
  37. name: 'or_bankcode',
  38. fieldLabel: '账户编号'
  39. }, {
  40. xtype: 'dbfindtrigger',
  41. name: 'or_bankname',
  42. columnWidth: 0.3,
  43. fieldLabel: '账户名称'
  44. }, {
  45. xtype: 'condatefield',
  46. name: 'or_date',
  47. fieldLabel: '单据日期',
  48. columnWidth: 0.6,
  49. operation: 'between'
  50. }, {
  51. xtype: 'multicombo',
  52. name: 'or_status',
  53. fieldLabel: '审核状态',
  54. columnWidth: 0.3,
  55. datas: [
  56. ["已审核", "已审核"],
  57. ["未审核", "未审核"]
  58. ]
  59. }, {
  60. name: 'ord_type',
  61. fieldLabel: '收入类别',
  62. columnWidth: 0.3,
  63. xtype : "remotecombo",
  64. storeUrl:'/api/document/fundinouttype/getCombo?condition=收入',
  65. }],
  66. moreQueryFormItems: [],
  67. queryGridConfig: {
  68. idField: 'id',
  69. codeField: 'or_code',
  70. addTitle: '其它收入单',
  71. addXtype: 'money-othreceipts-formpanel',
  72. defaultCondition:'',
  73. baseVastUrl: '/api/money/othreceipts/',
  74. // baseVastUrl: 'http://192.168.253.35:8880/othreceipts/',
  75. baseColumn: [{
  76. text: 'id',
  77. dataIndex: 'id',
  78. width: 0,
  79. xtype: 'numbercolumn'
  80. }, {
  81. text: '单据编号',
  82. dataIndex: 'or_code',
  83. width: 200
  84. },{
  85. text: '单据日期',
  86. dataIndex: 'or_date',
  87. xtype: 'datecolumn',
  88. width: 200
  89. }, {
  90. text: '审核状态',
  91. dataIndex: 'or_status',
  92. width: 120
  93. }, {
  94. text: '客户名称',
  95. dataIndex: 'or_custname',
  96. width: 120
  97. }, {
  98. text: '结算账号',
  99. dataIndex: 'or_bankname',
  100. width: 120
  101. },{
  102. text: '金额',
  103. xtype: 'numbercolumn',
  104. dataIndex: 'or_amount',
  105. width: 120,
  106. renderer : function(v) {
  107. var arr = (v + '.').split('.');
  108. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  109. var format = '0,000.' + xr.join();
  110. return Ext.util.Format.number(v, format);
  111. }
  112. },{
  113. text: '录入人',
  114. dataIndex: 'or_recorder',
  115. width: 120
  116. }, {
  117. text: '收入类别',
  118. dataIndex: 'ord_type',
  119. width: 120
  120. }, {
  121. text: '明细金额',
  122. xtype: 'numbercolumn',
  123. dataIndex: 'ord_nowbalance',
  124. width: 120,
  125. renderer : function(v) {
  126. var arr = (v + '.').split('.');
  127. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  128. var format = '0,000.' + xr.join();
  129. return Ext.util.Format.number(v, format);
  130. }
  131. }, {
  132. text: '备注',
  133. dataIndex: 'ord_remark',
  134. width: 250
  135. }],
  136. relativeColumn: []
  137. }
  138. });