QueryPanel.js 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. Ext.define('saas.view.money.paybalance.QueryPanel', {
  2. extend: 'saas.view.core.query.QueryPanel',
  3. xtype: 'money-paybalance-querypanel',
  4. controller: 'money-paybalance-querypanel',
  5. viewModel: 'money-paybalance-querypanel',
  6. viewName: 'money-paybalance-querypanel',
  7. queryFormItems: [{
  8. xtype: 'hidden',
  9. name: 'pu_id',
  10. bind: '{pu_id}',
  11. fieldLabel: 'ID',
  12. allowBlank: true,
  13. getCondition: function(value) {
  14. return 'pu_id=' + value;
  15. }
  16. }, {
  17. xtype: 'textfield',
  18. name: 'pu_code',
  19. bind: '{pu_code}',
  20. fieldLabel: '单据编号'
  21. }, {
  22. xtype: 'condatefield',
  23. name: 'pu_date',
  24. bind: '{pu_date}',
  25. fieldLabel: '采购日期',
  26. columnWidth: 0.5,
  27. operation: 'between'
  28. }, {
  29. xtype: 'dbfindtrigger',
  30. name: 'pu_vendcode',
  31. bind: '{pu_vendcode}',
  32. fieldLabel: '供应商编号'
  33. }, {
  34. xtype: 'textfield',
  35. name: 'pu_vendname',
  36. bind: '{pu_vendname}',
  37. fieldLabel: '供应商名称'
  38. }, {
  39. xtype: 'dbfindtrigger',
  40. name: 'pd_prodcode',
  41. bind: '{pd_prodcode}',
  42. fieldLabel: '物料编号',
  43. showDetail: true
  44. }, {
  45. xtype: 'textfield',
  46. name: 'pr_detail',
  47. bind: '{pr_detail}',
  48. fieldLabel: '物料名称',
  49. showDetail: true
  50. }, {
  51. xtype: 'combobox',
  52. name: 'pu_statuscode',
  53. // bind: '{pu_statuscode}',
  54. fieldLabel: '审核状态',
  55. queryMode: 'local',
  56. displayField: 'pu_status',
  57. valueField: 'pu_statuscode',
  58. editable:false,
  59. store: Ext.create('Ext.data.ArrayStore', {
  60. fields: ['pu_statuscode', 'pu_status'],
  61. data: [
  62. ["$ALL", "全部"],
  63. ["AUDITED", "已审核"],
  64. ["UNAUDITED", "未审核"]
  65. ]
  66. })
  67. }, {
  68. xtype: 'multicombo',
  69. name: 'pu_acceptstatuscode',
  70. bind: '{pu_acceptstatuscode}',
  71. fieldLabel: '入库状态',
  72. datas: [
  73. ["TURNIN", "已入库"],
  74. ["UNTURNIN", "未入库"],
  75. ["PARTIN", "部分入库"]
  76. ]
  77. }],
  78. moreQueryFormItems: [{
  79. xtype: 'textfield',
  80. name: 'pu_buyername',
  81. bind: '{pu_buyername}',
  82. fieldLabel: '采购员'
  83. }, {
  84. xtype: 'textfield',
  85. name: 'pu_total',
  86. bind: '{pu_total}',
  87. fieldLabel: '金额'
  88. }, {
  89. xtype: 'condatefield',
  90. name: 'pu_delivery',
  91. bind: '{pu_delivery}',
  92. fieldLabel: '交货日期',
  93. columnWidth: 1
  94. }],
  95. queryGridConfig: {
  96. idField: 'pu_id',
  97. codeField: 'pu_code',
  98. addTitle: '采购单',
  99. addXtype: 'purchase-purchase-formpanel',
  100. defaultCondition:'',
  101. baseVastUrl: 'http://192.168.253.58:8800/purchase/',
  102. baseColumn: [{
  103. text: '序号',
  104. width: 80,
  105. xtype: 'rownumberer'
  106. }, {
  107. text: 'id',
  108. dataIndex: 'pu_id',
  109. width: 100,
  110. xtype: 'numbercolumn'
  111. }, {
  112. text: '单据编号',
  113. dataIndex: 'pu_code',
  114. width: 120
  115. }, {
  116. text: '单据状态',
  117. dataIndex: 'pu_status',
  118. width: 120
  119. }, {
  120. text: '下单日期',
  121. dataIndex: 'pu_indate',
  122. xtype: 'datecolumn',
  123. width: 200
  124. }, {
  125. text: '供应商名称',
  126. dataIndex: 'pu_vendname',
  127. width: 120
  128. }, {
  129. text: '含税金额',
  130. dataIndex: 'pu_taxtotal',
  131. xtype: 'numbercolumn',
  132. width: 120
  133. }, {
  134. text: '金额',
  135. dataIndex: 'pu_total',
  136. xtype: 'numbercolumn',
  137. width: 120,
  138. flex: 1
  139. }],
  140. relativeColumn: [{
  141. text: '序号',
  142. width: 80,
  143. xtype: 'rownumberer'
  144. }, {
  145. text: 'id',
  146. dataIndex: 'pu_id',
  147. width: 100,
  148. xtype: 'numbercolumn'
  149. }, {
  150. text: '单据编号',
  151. dataIndex: 'pu_code',
  152. width: 120
  153. }, {
  154. text: '单据状态',
  155. dataIndex: 'pu_status',
  156. width: 120
  157. }, {
  158. text: '下单日期',
  159. dataIndex: 'pu_indate',
  160. xtype: 'datecolumn',
  161. width: 200
  162. }, {
  163. text: '供应商名称',
  164. dataIndex: 'pu_vendname',
  165. width: 120
  166. }, {
  167. text: '采购序号',
  168. dataIndex: 'pd_detno',
  169. xtype: 'numbercolumn',
  170. width: 120
  171. }, {
  172. text: '物料编号',
  173. dataIndex: 'pd_prodcode',
  174. width: 120
  175. }, {
  176. text: '数量',
  177. dataIndex: 'pd_qty',
  178. xtype: 'numbercolumn',
  179. width: 120
  180. }, {
  181. text: '单价',
  182. dataIndex: 'pd_price',
  183. xtype: 'numbercolumn',
  184. width: 120
  185. }, {
  186. text: '已转数',
  187. dataIndex: 'pd_ytqy',
  188. xtype: 'numbercolumn',
  189. width: 120,
  190. flex: 1
  191. }]
  192. }
  193. });