QueryPanel.js 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. Ext.define('saas.view.test.query.QueryPanel', {
  2. extend: 'saas.view.core.query.QueryPanel',
  3. xtype: 'test-query-querypanel',
  4. controller: 'test-query-querypanel',
  5. viewModel: 'test-query-querypanel',
  6. viewName: 'test-query-formpanel',
  7. _baseVastUrl:basePath+'purchase/',
  8. _idField:'pu_id',
  9. _codeField:'pu_code',
  10. queryFormItems: [{
  11. xtype: 'hidden',
  12. name: 'pu_id',
  13. bind: '{pu_id}',
  14. fieldLabel: 'ID',
  15. allowBlank: true,
  16. columnWidth: 0
  17. }, {
  18. xtype: 'dbfindtrigger',
  19. name: 'pu_code',
  20. bind: '{pu_code}',
  21. fieldLabel: '单据编号',
  22. allowBlank: true,
  23. columnWidth: 0.25,
  24. dataUrl:basePath+'ducument/vendor/list',
  25. dbfinds:[{
  26. from:'ve_code',to:'pu_code'
  27. }],
  28. dbColumns:[{
  29. conditionCode:'ve_id',
  30. "text": "供应商ID",
  31. "flex": 0,
  32. "dataIndex": "ve_id",
  33. "width": 0,
  34. "xtype": "",
  35. "items": null
  36. },{
  37. conditionCode:'ve_code',
  38. "text": "供应商编号",
  39. "flex": 1,
  40. "dataIndex": "ve_code",
  41. "width": 100,
  42. "xtype": "",
  43. "items": null
  44. }, {
  45. conditionCode:'ve_name',
  46. "text": "供应商名称",
  47. "flex": 1,
  48. "dataIndex": "ve_name",
  49. "xtype": "",
  50. "items": null
  51. }, {
  52. conditionCode:'ve_type',
  53. "text": "供应商类型",
  54. "flex": 0,
  55. "dataIndex": "ve_type",
  56. "width": 200,
  57. "xtype": "",
  58. "items": null
  59. }]
  60. }, {
  61. xtype: 'condatefield',
  62. name: 'pu_date',
  63. bind: '{pu_date}',
  64. fieldLabel: '采购日期',
  65. allowBlank: true,
  66. columnWidth: 0.5
  67. }, {
  68. xtype: 'dbfindtrigger',
  69. name: 'pu_vendcode',
  70. bind: '{pu_vendcode}',
  71. fieldLabel: '供应商编号',
  72. allowBlank: true,
  73. columnWidth: 0.25,
  74. configUrl: 'resources/json/purchase/vendorColumnsDbfind.json',
  75. dataUrl: 'resources/json/purchase/vendorDataDbfind.json'
  76. }, {
  77. xtype: 'textfield',
  78. name: 'pu_vendname',
  79. bind: '{pu_vendname}',
  80. fieldLabel: '供应商名称',
  81. allowBlank: true,
  82. columnWidth: 0.25
  83. }, {
  84. xtype: 'dbfindtrigger',
  85. name: 'pd_prodcode#pd_prodcode',
  86. bind: '{pd_prodcode}',
  87. fieldLabel: '物料编号',
  88. fieldMode: 'DETAIL',
  89. queryType:'VAG',
  90. allowBlank: true,
  91. columnWidth: 0.25,
  92. configUrl: 'resources/json/purchase/vendorColumnsDbfind.json',
  93. dataUrl: 'resources/json/purchase/vendorDataDbfind.json'
  94. }, {
  95. xtype: 'textfield',
  96. name: 'pr_detail',
  97. bind: '{pr_detail}',
  98. fieldLabel: '物料名称',
  99. allowBlank: true,
  100. columnWidth: 0.25
  101. }, {
  102. xtype: 'combobox',
  103. name: 'pr_statuscode',
  104. bind: '{pr_statuscode}',
  105. fieldLabel: '审核状态',
  106. allowBlank: true,
  107. columnWidth: 0.25,
  108. queryMode: 'local',
  109. displayField: 'pr_status',
  110. valueField: 'pr_statuscode',
  111. store: Ext.create('Ext.data.Store', {
  112. fields: ['pr_statuscode', 'pr_status'],
  113. data: [
  114. ["$ALL", "全部"],
  115. ["AUDITED", "已审核"],
  116. ["AUDITED", "未审核"]
  117. ]
  118. })
  119. }, {
  120. xtype: 'multicombo',
  121. name: 'pu_acceptstatuscode',
  122. bind: '{pu_acceptstatuscode}',
  123. fieldLabel: '入库状态',
  124. allowBlank: true,
  125. columnWidth: 0.25,
  126. datas: [
  127. ["$ALL", "全部"],
  128. ["TURNOUT", "已入库"],
  129. ["NOOUT", "未入库"],
  130. ["PARTOUT", "部分入库"]
  131. ]
  132. }],
  133. moreQueryFormItems: [{
  134. xtype: 'textfield',
  135. name: 'pu_buyername',
  136. bind: '{pu_buyername}',
  137. fieldLabel: '采购员',
  138. allowBlank: true
  139. }, {
  140. xtype: 'textfield',
  141. name: 'pu_total',
  142. bind: '{pu_total}',
  143. fieldLabel: '金额',
  144. allowBlank: true
  145. }, {
  146. xtype: 'condatefield',
  147. name: 'pu_delivery',
  148. bind: '{pu_delivery}',
  149. fieldLabel: '交货日期',
  150. allowBlank: true,
  151. columnWidth: 1
  152. }],
  153. queryGridConfig: {
  154. _idField:'pu_id',
  155. _codeField:'pu_code',
  156. _title:'采购单',
  157. _addXtype:'test-order-formpanel',
  158. _baseVastUrl:basePath+'purchase/',
  159. _baseColumn: [{
  160. text: '序号',
  161. width: 80,
  162. xtype: 'rownumberer'
  163. }, {
  164. text: 'id',
  165. dataIndex: 'pu_id',
  166. width: 100,
  167. xtype: 'numbercolumn'
  168. }, {
  169. text: '单据编号',
  170. dataIndex: 'pu_code',
  171. width: 120
  172. }, {
  173. text: '单据状态',
  174. dataIndex: 'pu_status',
  175. width: 120
  176. }, {
  177. text: '下单日期',
  178. dataIndex: 'pu_indate',
  179. xtype:'datecolumn',
  180. width: 200
  181. },{
  182. text: '供应商名称',
  183. dataIndex: 'pu_vendname',
  184. width: 120
  185. },{
  186. text: '含税金额',
  187. dataIndex: 'pu_taxtotal',
  188. xtype:'numbercolumn',
  189. width: 120
  190. },{
  191. text: '金额',
  192. dataIndex: 'pu_total',
  193. xtype:'numbercolumn',
  194. width: 120
  195. }],
  196. _relativeColumn: [{
  197. text: '序号',
  198. width: 80,
  199. xtype: 'rownumberer'
  200. }, {
  201. text: 'id',
  202. dataIndex: 'pu_id',
  203. width: 100,
  204. xtype: 'numbercolumn'
  205. }, {
  206. text: '单据编号',
  207. dataIndex: 'pu_code',
  208. width: 120
  209. }, {
  210. text: '单据状态',
  211. dataIndex: 'pu_status',
  212. width: 120
  213. }, {
  214. text: '下单日期',
  215. dataIndex: 'pu_indate',
  216. xtype:'datecolumn',
  217. width: 200
  218. },{
  219. text: '供应商名称',
  220. dataIndex: 'pu_vendname',
  221. width: 120
  222. },{
  223. text: '采购序号',
  224. dataIndex: 'pd_detno',
  225. xtype:'numbercolumn',
  226. width: 120
  227. },{
  228. text: '物料编号',
  229. dataIndex: 'pd_prodcode',
  230. width: 120
  231. },{
  232. text: '数量',
  233. dataIndex: 'pd_qty',
  234. xtype:'numbercolumn',
  235. width: 120
  236. },{
  237. text: '单价',
  238. dataIndex: 'pd_price',
  239. xtype:'numbercolumn',
  240. width: 120
  241. },{
  242. text: '已转数',
  243. dataIndex: 'pd_ytqy',
  244. xtype:'numbercolumn',
  245. width: 120
  246. }]
  247. }
  248. });