QueryPanel.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. }, {
  22. xtype: 'hidden',
  23. name: 'os_vendcode',
  24. fieldLabel: '供应商编号',
  25. }, {
  26. xtype: 'dbfindtrigger',
  27. name: 'os_vendname',
  28. fieldLabel: '供应商名称'
  29. }, {
  30. xtype: 'textfield',
  31. name: 'os_recorder',
  32. fieldLabel: '制单人',
  33. }, {
  34. xtype: 'hidden',
  35. name: 'os_auditman',
  36. fieldLabel: '审核人',
  37. }, {
  38. xtype: 'dbfindtrigger',
  39. name: 'os_bankname',
  40. fieldLabel: '结算账户',
  41. },{
  42. xtype: 'condatefield',
  43. name: 'os_date',
  44. columnWidth: 0.5,
  45. fieldLabel: '单据日期'
  46. },{
  47. xtype: 'multicombo',
  48. name: 'os_status',
  49. fieldLabel: '审核状态',
  50. datas: [
  51. ["已审核", "已审核"],
  52. ["未审核", "未审核"]
  53. ]
  54. },{
  55. name: 'ord_type',
  56. fieldLabel: '支出类别',
  57. xtype : "remotecombo",
  58. storeUrl:'/api/document/fundinouttype/getCombo?condition=支出',
  59. },{
  60. xtype: 'textfield',
  61. name: 'creatorName',
  62. fieldLabel: '录入人'
  63. }],
  64. moreQueryFormItems: [],
  65. queryGridConfig: {
  66. idField: 'id',
  67. codeField: 'os_code',
  68. addTitle: '其它支出单',
  69. addXtype: 'money-othspendings-formpanel',
  70. defaultCondition:'',
  71. baseVastUrl: '/api/money/othspendings/',
  72. // baseVastUrl: 'http://192.168.253.35:8880/othspendings/',
  73. baseColumn: [{
  74. text: 'id',
  75. dataIndex: 'id',
  76. width: 0,
  77. xtype: 'numbercolumn'
  78. }, {
  79. text: '单据编号',
  80. dataIndex: 'os_code',
  81. width: 200
  82. }, {
  83. text: '单据日期',
  84. dataIndex: 'os_date',
  85. xtype: 'datecolumn',
  86. width: 200
  87. },{
  88. text: '审核状态',
  89. dataIndex: 'os_status',
  90. width: 120
  91. }, {
  92. text: '供应商',
  93. dataIndex: 'os_vendname',
  94. width: 120
  95. },{
  96. text: '结算账户',
  97. dataIndex: 'os_bankname',
  98. width: 120
  99. },{
  100. text: '付款金额',
  101. dataIndex: 'os_amount',
  102. width: 120
  103. },{
  104. text: '录入人',
  105. dataIndex: 'os_recorder',
  106. width: 120
  107. }, {
  108. text: '支出类别',
  109. dataIndex: 'osd_type',
  110. width: 200
  111. }, {
  112. text: '金额',
  113. dataIndex: 'osd_nowbalance',
  114. xtype: 'numbercolumn',
  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: 'osd_remark',
  125. width: 120
  126. },{
  127. text: '金额',
  128. xtype: 'numbercolumn',
  129. dataIndex: 'os_amount',
  130. width: 0,
  131. renderer : function(v) {
  132. var arr = (v + '.').split('.');
  133. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  134. var format = '0,000.' + xr.join();
  135. return Ext.util.Format.number(v, format);
  136. },
  137. }, {
  138. text: '备注',
  139. dataIndex: 'os_remark',
  140. width: 0
  141. }],
  142. relativeColumn: []
  143. }
  144. });