QueryPanel.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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: basePath + 'purchase/',
  102. baseColumn: [{
  103. text: 'id',
  104. dataIndex: 'pu_id',
  105. width: 100,
  106. xtype: 'numbercolumn'
  107. }, {
  108. text: '单据编号',
  109. dataIndex: 'pu_code',
  110. width: 120
  111. }, {
  112. text: '单据状态',
  113. dataIndex: 'pu_status',
  114. width: 120
  115. }, {
  116. text: '下单日期',
  117. dataIndex: 'pu_indate',
  118. xtype: 'datecolumn',
  119. width: 200
  120. }, {
  121. text: '供应商名称',
  122. dataIndex: 'pu_vendname',
  123. width: 120
  124. }, {
  125. text: '含税金额',
  126. dataIndex: 'pu_taxtotal',
  127. xtype: 'numbercolumn',
  128. width: 120
  129. }, {
  130. text: '金额',
  131. dataIndex: 'pu_total',
  132. xtype: 'numbercolumn',
  133. width: 120,
  134. flex: 1
  135. }],
  136. relativeColumn: [{
  137. text: 'id',
  138. dataIndex: 'pu_id',
  139. width: 100,
  140. xtype: 'numbercolumn'
  141. }, {
  142. text: '单据编号',
  143. dataIndex: 'pu_code',
  144. width: 120
  145. }, {
  146. text: '单据状态',
  147. dataIndex: 'pu_status',
  148. width: 120
  149. }, {
  150. text: '下单日期',
  151. dataIndex: 'pu_indate',
  152. xtype: 'datecolumn',
  153. width: 200
  154. }, {
  155. text: '供应商名称',
  156. dataIndex: 'pu_vendname',
  157. width: 120
  158. }, {
  159. text: '采购序号',
  160. dataIndex: 'pd_detno',
  161. xtype: 'numbercolumn',
  162. width: 120
  163. }, {
  164. text: '物料编号',
  165. dataIndex: 'pd_prodcode',
  166. width: 120
  167. }, {
  168. text: '数量',
  169. dataIndex: 'pd_qty',
  170. xtype: 'numbercolumn',
  171. width: 120
  172. }, {
  173. text: '单价',
  174. dataIndex: 'pd_price',
  175. xtype: 'numbercolumn',
  176. width: 120
  177. }, {
  178. text: '已转数',
  179. dataIndex: 'pd_ytqy',
  180. xtype: 'numbercolumn',
  181. width: 120,
  182. flex: 1
  183. }]
  184. }
  185. });