QueryPanel.js 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. Ext.define('saas.view.purchase.purchaseIn.QueryPanel', {
  2. extend: 'saas.view.core.query.QueryPanel',
  3. xtype: 'purchase-purchasein-querypanel',
  4. controller: 'purchase-purchasein-querypanel',
  5. viewModel: 'purchase-purchasein-querypanel',
  6. viewName: 'purchase-purchasein-querypanel',
  7. queryFormItems: [{
  8. xtype: 'hidden',
  9. name: 'id',
  10. bind: '{id}',
  11. fieldLabel: 'ID',
  12. allowBlank: true,
  13. columnWidth: 0
  14. }, {
  15. xtype: 'textfield',
  16. name: 'pi_inoutno',
  17. bind: '{pi_inoutno}',
  18. fieldLabel: '单据编号',
  19. allowBlank: true,
  20. columnWidth: 0.25
  21. }, {
  22. xtype: 'condatefield',
  23. name: 'pi_date',
  24. bind: '{pi_date}',
  25. fieldLabel: '单据日期',
  26. allowBlank: true,
  27. columnWidth: 0.5
  28. }, {
  29. xtype: 'textfield',
  30. name: 'pi_vendcode',
  31. bind: '{pi_vendcode}',
  32. fieldLabel: '供应商编号',
  33. allowBlank: true,
  34. hidden:true,
  35. columnWidth: 0.25
  36. }, {
  37. xtype: 'textfield',
  38. name: 'pi_vendname',
  39. bind: '{pi_vendname}',
  40. fieldLabel: '供应商名称',
  41. allowBlank: true,
  42. columnWidth: 0.25
  43. }, {
  44. xtype: 'dbfindtrigger',
  45. name: 'pd_prodcode',
  46. bind: '{pd_prodcode}',
  47. fieldLabel: '物料编号',
  48. fieldMode: 'DETAIL',
  49. queryType:'VAG',
  50. hidden:true,
  51. allowBlank: true,
  52. columnWidth: 0.25
  53. }, {
  54. xtype: 'dbfindtrigger',
  55. name: 'pr_detail#pd_prodcode',
  56. bind: '{pr_detail}',
  57. fieldLabel: '物料名称',
  58. allowBlank: true,
  59. columnWidth: 0.25
  60. }, {
  61. xtype: 'combobox',
  62. name: 'pi_statuscode',
  63. bind: '{pi_statuscode}',
  64. fieldLabel: '审核状态',
  65. allowBlank: true,
  66. columnWidth: 0.25,
  67. queryMode: 'local',
  68. displayField: 'pi_status',
  69. valueField: 'pi_statuscode',
  70. store: Ext.create('Ext.data.ArrayStore', {
  71. fields: ['pi_statuscode', 'pi_status'],
  72. data: [
  73. ["$ALL", "全部"],
  74. ["AUDITED", "已审核"],
  75. ["UNAUDITED", "未审核"]
  76. ]
  77. })
  78. }],
  79. moreQueryFormItems: [{
  80. xtype: 'textfield',
  81. name: 'pu_buyername',
  82. bind: '{pu_buyername}',
  83. fieldLabel: '采购员',
  84. allowBlank: true
  85. }, {
  86. xtype: 'textfield',
  87. name: 'pu_total',
  88. bind: '{pu_total}',
  89. fieldLabel: '金额',
  90. allowBlank: true
  91. }, {
  92. xtype: 'condatefield',
  93. name: 'pu_delivery',
  94. bind: '{pu_delivery}',
  95. fieldLabel: '交货日期',
  96. allowBlank: true,
  97. columnWidth: 1
  98. }],
  99. queryGridConfig: {
  100. idField:'id',
  101. codeField:'pi_inoutno',
  102. addTitle:'采购验收单',
  103. addXtype:'purchase-purchasein-formpanel',
  104. defaultCondition:' pi_class = \'采购验收单\'',
  105. baseVastUrl:basePath+'purchase/prodinout/',
  106. baseColumn: [{
  107. text: '序号',
  108. width: 80,
  109. xtype: 'rownumberer'
  110. }, {
  111. text: 'id',
  112. dataIndex: 'id',
  113. width: 100,
  114. xtype: 'numbercolumn'
  115. }, {
  116. text: '单据编号',
  117. dataIndex: 'pi_inoutno',
  118. width: 120
  119. }, {
  120. text: '单据状态',
  121. dataIndex: 'pi_status',
  122. width: 120
  123. }, {
  124. text: '单据类型',
  125. dataIndex: 'pi_class',
  126. width: 120
  127. }, {
  128. text: '下单日期',
  129. dataIndex: 'pi_date',
  130. xtype:'datecolumn',
  131. width: 200
  132. },{
  133. text: '采购单号',
  134. dataIndex: 'pi_pucode',
  135. width: 200
  136. },{
  137. text: '供应商名称',
  138. dataIndex: 'pi_vendname',
  139. width: 120
  140. },{
  141. text: '含税金额',
  142. dataIndex: 'pi_total',
  143. xtype:'numbercolumn',
  144. width: 120
  145. },{
  146. text: '不含税金额',
  147. dataIndex: 'pi_nettotal',
  148. xtype:'numbercolumn',
  149. width: 120,
  150. flex: 1
  151. }],
  152. relativeColumn: [{
  153. text : "序号",
  154. dataIndex : "pd_pdno",
  155. width : 100,
  156. xtype : "numbercolumn",
  157. align : 'center'
  158. }, {
  159. text: 'id',
  160. dataIndex: 'pu_id',
  161. width: 0,
  162. xtype: 'numbercolumn'
  163. }, {
  164. text: '单据编号',
  165. dataIndex: 'pd_inoutno',
  166. width: 120
  167. }, {
  168. text: '单据状态',
  169. dataIndex: 'pi_status',
  170. width: 120
  171. }, {
  172. text: '下单日期',
  173. dataIndex: 'pi_date',
  174. xtype:'datecolumn',
  175. width: 200
  176. },{
  177. text: '供应商名称',
  178. dataIndex: 'pi_vendname',
  179. width: 120
  180. },{
  181. text: '采购单号',
  182. dataIndex: 'pd_ordercode',
  183. width: 120
  184. },{
  185. text: '采购序号',
  186. dataIndex: 'pd_orderdetno',
  187. xtype:'numbercolumn',
  188. width: 120
  189. },{
  190. text: '物料编号',
  191. dataIndex: 'pd_prodcode',
  192. width: 120
  193. },{
  194. text: '验收数量',
  195. dataIndex: 'pd_inqty',
  196. xtype:'numbercolumn',
  197. width: 120
  198. },{
  199. text: '采购单价',
  200. dataIndex: 'pd_orderprice',
  201. xtype:'numbercolumn',
  202. width: 120
  203. },{
  204. text: '金额',
  205. dataIndex: 'pd_total',
  206. xtype:'numbercolumn',
  207. width: 120
  208. },{
  209. text: '税率',
  210. dataIndex: 'pd_taxrate',
  211. xtype:'numbercolumn',
  212. width: 120
  213. },{
  214. text: '成本单价',
  215. dataIndex: 'pd_price',
  216. xtype:'numbercolumn',
  217. width: 120,
  218. flex: 1
  219. }]
  220. }
  221. });