QueryPanel.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. Ext.define('saas.view.test.query.QueryPanel', {
  2. extend: 'saas.view.core.query.QueryPanel',
  3. xtype: 'test-query-querypanel',
  4. // controller: 'test-query-formcontroller',
  5. // viewModel: 'test-query-formmodel',
  6. viewName: 'test-query-formpanel',
  7. queryFormItems: [{
  8. xtype: 'hidden',
  9. name: 'pu_id',
  10. bind: '{pu_id}',
  11. fieldLabel: 'ID',
  12. allowBlank: true,
  13. columnWidth: 0
  14. }, {
  15. xtype: 'dbfindtrigger',
  16. name: 'pu_code',
  17. bind: '{pu_code}',
  18. fieldLabel: '单据编号',
  19. allowBlank: true,
  20. columnWidth: 0.25,
  21. configUrl: 'resources/json/purchase/vendorColumnsDbfind.json',
  22. dataUrl: 'resources/json/purchase/vendorDataDbfind.json'
  23. }, {
  24. xtype: 'condatefield',
  25. name: 'pu_date',
  26. bind: '{pu_date}',
  27. fieldLabel: '采购日期',
  28. allowBlank: true,
  29. columnWidth: 0.5
  30. }, {
  31. xtype: 'dbfindtrigger',
  32. name: 'pu_vendcode',
  33. bind: '{pu_vendcode}',
  34. fieldLabel: '供应商编号',
  35. allowBlank: true,
  36. columnWidth: 0.25,
  37. configUrl: 'resources/json/purchase/vendorColumnsDbfind.json',
  38. dataUrl: 'resources/json/purchase/vendorDataDbfind.json'
  39. }, {
  40. xtype: 'textfield',
  41. name: 'pu_vendname',
  42. bind: '{pu_vendname}',
  43. fieldLabel: '供应商名称',
  44. allowBlank: true,
  45. columnWidth: 0.25
  46. }, {
  47. xtype: 'dbfindtrigger',
  48. name: 'pd_prodcode',
  49. bind: '{pd_prodcode}',
  50. fieldLabel: '物料编号',
  51. fieldMode: 'DETAIL',
  52. allowBlank: true,
  53. columnWidth: 0.25,
  54. configUrl: 'resources/json/purchase/vendorColumnsDbfind.json',
  55. dataUrl: 'resources/json/purchase/vendorDataDbfind.json'
  56. }, {
  57. xtype: 'textfield',
  58. name: 'pr_detail',
  59. bind: '{pr_detail}',
  60. fieldLabel: '物料名称',
  61. allowBlank: true,
  62. columnWidth: 0.25
  63. }, {
  64. xtype: 'remotecombo',
  65. name: 'pr_statuscode',
  66. bind: '{pr_statuscode}',
  67. fieldLabel: '审核状态',
  68. allowBlank: true,
  69. columnWidth: 0.25,
  70. store: Ext.create('Ext.data.Store', {
  71. fields: ['pr_statuscode', 'pr_status'],
  72. queryMode: 'local',
  73. displayField: 'pr_status',
  74. valueField: 'pr_statuscode',
  75. data: [
  76. ["$ALL", "全部"],
  77. ["=AUDITED", "已审核"],
  78. ["<>AUDITED", "未审核"]
  79. ]
  80. })
  81. }, {
  82. xtype: 'remotecombo',
  83. name: 'pu_acceptstatuscode',
  84. bind: '{pu_acceptstatuscode}',
  85. fieldLabel: '入库状态',
  86. allowBlank: true,
  87. columnWidth: 0.25,
  88. store: Ext.create('Ext.data.Store', {
  89. fields: ['pu_acceptstatuscode', 'pu_acceptstatus'],
  90. queryMode: 'local',
  91. displayField: 'pu_acceptstatus',
  92. valueField: 'pu_acceptstatuscode',
  93. data: [
  94. ["$ALL", "全部"],
  95. ["=TURNOUT", "已入库"],
  96. ["=NULL", "未入库"],
  97. ["=PARTOUT", "部分入库"]
  98. ]
  99. })
  100. }],
  101. moreQueryFormItems: [{
  102. xtype: 'textfield',
  103. name: 'pu_buyername',
  104. bind: '{pu_buyername}',
  105. fieldLabel: '采购员',
  106. allowBlank: true
  107. }, {
  108. xtype: 'textfield',
  109. name: 'pu_total',
  110. bind: '{pu_total}',
  111. fieldLabel: '金额',
  112. allowBlank: true
  113. }, {
  114. xtype: 'condatefield',
  115. name: 'pu_delivery',
  116. bind: '{pu_delivery}',
  117. fieldLabel: '交货日期',
  118. allowBlank: true,
  119. columnWidth: 1
  120. }],
  121. queryGridConfig: {
  122. columns: [{
  123. text: '序号',
  124. width: 80,
  125. xtype: 'rownumberer'
  126. }, {
  127. text: 'id',
  128. dataIndex: 'pu_id',
  129. width: 100,
  130. xtype: 'numbercolumn'
  131. }, {
  132. text: '单据编号',
  133. dataIndex: 'pu_code',
  134. width: 120
  135. }, {
  136. text: '单据状态',
  137. dataIndex: 'pu_status',
  138. width: 120
  139. }]
  140. }
  141. });