QueryPanel.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. Ext.define('saas.view.money.othspendings.QueryPanel', {
  2. extend: 'saas.view.core.query.QueryPanel',
  3. xtype: 'money-othspendings-querypanel',
  4. controller: 'money-othspendings-querypanel',
  5. viewModel: 'money-othspendings-querypanel',
  6. viewName: 'money-othspendings-querypanel',
  7. queryFormItems: [{
  8. xtype: 'hidden',
  9. name: 'os_id',
  10. fieldLabel: 'ID',
  11. allowBlank: true,
  12. columnWidth: 0
  13. }, {
  14. xtype : 'hidden',
  15. name : 'os_vendid',
  16. fieldLabel : '供应商ID'
  17. }, {
  18. xtype : 'textfield',
  19. name : 'os_code',
  20. fieldLabel : '单据编号',
  21. columnWidth: 0.3,
  22. }, {
  23. xtype: 'hidden',
  24. name: 'os_vendcode',
  25. fieldLabel: '供应商编号',
  26. columnWidth: 0.3,
  27. }, {
  28. xtype: 'dbfindtrigger',
  29. name: 'os_vendname',
  30. fieldLabel: '供应商名称',
  31. columnWidth: 0.3
  32. }, {
  33. xtype : 'hidden',
  34. name : 'os_bankid',
  35. fieldLabel : '结算账户ID'
  36. }, {
  37. xtype: 'hidden',
  38. name: 'os_bankcode',
  39. fieldLabel: '结算账户编号'
  40. }, {
  41. xtype: 'dbfindtrigger',
  42. name: 'os_bankname',
  43. fieldLabel: '结算账户',
  44. columnWidth: 0.3
  45. },{
  46. xtype: 'condatefield',
  47. name: 'os_date',
  48. columnWidth: 0.6,
  49. fieldLabel: '单据日期'
  50. },{
  51. xtype: 'multicombo',
  52. name: 'os_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: 'os_code',
  70. addTitle: '其它支出单',
  71. addXtype: 'money-othspendings-formpanel',
  72. defaultCondition:'',
  73. baseVastUrl: '/api/money/othspendings/',
  74. // baseVastUrl: 'http://192.168.253.35:8880/othspendings/',
  75. baseColumn: [{
  76. text: 'id',
  77. dataIndex: 'id',
  78. width: 0,
  79. xtype: 'numbercolumn'
  80. }, {
  81. text: '单据编号',
  82. dataIndex: 'os_code',
  83. width: 200
  84. }, {
  85. text: '单据日期',
  86. dataIndex: 'os_date',
  87. xtype: 'datecolumn',
  88. width: 200
  89. },{
  90. text: '审核状态',
  91. dataIndex: 'os_status',
  92. width: 120
  93. }, {
  94. text: '供应商',
  95. dataIndex: 'os_vendname',
  96. width: 120
  97. },{
  98. text: '结算账户',
  99. dataIndex: 'os_bankname',
  100. width: 120
  101. },{
  102. text: '付款金额',
  103. dataIndex: 'os_amount',
  104. width: 120
  105. },{
  106. text: '录入人',
  107. dataIndex: 'os_recorder',
  108. width: 120
  109. }, {
  110. text: '支出类别',
  111. dataIndex: 'osd_type',
  112. width: 200
  113. }, {
  114. text: '金额',
  115. dataIndex: 'osd_nowbalance',
  116. xtype: 'numbercolumn',
  117. width: 120,
  118. renderer : function(v) {
  119. var arr = (v + '.').split('.');
  120. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  121. var format = '0,000.' + xr.join();
  122. return Ext.util.Format.number(v, format);
  123. }
  124. }, {
  125. text: '备注',
  126. dataIndex: 'osd_remark',
  127. width: 120
  128. },{
  129. text: '金额',
  130. xtype: 'numbercolumn',
  131. dataIndex: 'os_amount',
  132. width: 0,
  133. renderer : function(v) {
  134. var arr = (v + '.').split('.');
  135. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  136. var format = '0,000.' + xr.join();
  137. return Ext.util.Format.number(v, format);
  138. },
  139. }, {
  140. text: '备注',
  141. dataIndex: 'os_remark',
  142. width: 0
  143. }],
  144. relativeColumn: []
  145. }
  146. });