QueryPanel.js 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. Ext.define('saas.view.sale.sale.QueryPanel', {
  2. extend: 'saas.view.core.query.QueryPanel',
  3. xtype: 'sale-sale-querypanel',
  4. controller: 'sale-sale-querypanel',
  5. viewModel: 'sale-sale-querypanel',
  6. viewName: 'sale-sale-formpanel',
  7. _idField: 'sa_id',
  8. _codeField: 'sa_code',
  9. queryFormItems: [{
  10. xtype: 'hidden',
  11. name: 'sa_id',
  12. bind: '{sa_id}',
  13. fieldLabel: 'ID',
  14. allowBlank: true,
  15. columnWidth: 0
  16. }, {
  17. xtype: 'textfield',
  18. name: 'sa_code',
  19. bind: '{sa_code}',
  20. fieldLabel: '单据编号',
  21. allowBlank: true,
  22. columnWidth: 0.25
  23. }, {
  24. xtype: 'condatefield',
  25. name: 'sa_recorddate',
  26. bind: '{sa_recorddate}',
  27. fieldLabel: '单据日期',
  28. allowBlank: true,
  29. columnWidth: 0.5
  30. }, {
  31. xtype: 'dbfindtrigger',
  32. name: 'sa_custcode',
  33. bind: '{sa_custcode}',
  34. fieldLabel: '客户编号',
  35. allowBlank: true,
  36. columnWidth: 0.25
  37. }, {
  38. xtype: 'textfield',
  39. name: 'sa_custname',
  40. bind: '{sa_custname}',
  41. fieldLabel: '客户名称',
  42. allowBlank: true,
  43. columnWidth: 0.25
  44. }, {
  45. xtype: 'dbfindtrigger',
  46. name: 'pd_prodcode#pd_prodcode',
  47. bind: '{pd_prodcode}',
  48. fieldLabel: '物料编号',
  49. fieldMode: 'DETAIL',
  50. queryType: 'VAG',
  51. allowBlank: true,
  52. columnWidth: 0.25
  53. }, {
  54. xtype: 'textfield',
  55. name: 'pr_detail',
  56. bind: '{pr_detail}',
  57. fieldLabel: '物料名称',
  58. allowBlank: true,
  59. columnWidth: 0.25
  60. }, {
  61. xtype: 'combobox',
  62. name: 'sa_statuscode',
  63. bind: '{sa_statuscode}',
  64. fieldLabel: '审核状态',
  65. allowBlank: true,
  66. columnWidth: 0.25,
  67. queryMode: 'local',
  68. displayField: 'sa_status',
  69. valueField: 'sa_statuscode',
  70. editable:false,
  71. store: Ext.create('Ext.data.ArrayStore', {
  72. fields: ['sa_statuscode', 'sa_status'],
  73. data: [
  74. ["$ALL", "全部"],
  75. ["AUDITED", "已审核"],
  76. ["UNAUDITED", "未审核"]
  77. ]
  78. })
  79. }, {
  80. xtype: 'multicombo',
  81. name: 'sa_sendstatuscode',
  82. bind: '{sa_sendstatuscode}',
  83. fieldLabel: '出库状态',
  84. allowBlank: true,
  85. columnWidth: 0.25,
  86. datas: [
  87. ["TURNOUT", "已出库"],
  88. ["UNTURNOUT", "未出库"],
  89. ["PARTOUT", "部分出库"]
  90. ]
  91. }],
  92. moreQueryFormItems: [{
  93. xtype: 'textfield',
  94. name: 'pu_buyername',
  95. bind: '{pu_buyername}',
  96. fieldLabel: '采购员',
  97. allowBlank: true
  98. }],
  99. queryGridConfig: {
  100. _idField: 'sa_id',
  101. _codeField: 'sa_code',
  102. _title: '销售订单',
  103. _defaultCondition:'',
  104. _addXtype: 'sale-sale-formpanel',
  105. _baseVastUrl: 'http://192.168.0.181:8560/api/sale/sale/',
  106. _baseColumn: [{
  107. text: '序号',
  108. width: 80,
  109. xtype: 'rownumberer'
  110. }, {
  111. text: 'id',
  112. dataIndex: 'sa_id',
  113. width: 100,
  114. xtype: 'numbercolumn'
  115. }, {
  116. text: '单据编号',
  117. dataIndex: 'sa_code',
  118. width: 120
  119. }, {
  120. text: '单据状态',
  121. dataIndex: 'sa_status',
  122. width: 120
  123. }, {
  124. text: '单据日期',
  125. dataIndex: 'sa_recorddate',
  126. xtype: 'datecolumn',
  127. width: 200
  128. }, {
  129. text: '客户名称',
  130. dataIndex: 'sa_cuname',
  131. width: 120
  132. }, {
  133. text: '金额',
  134. dataIndex: 'sa_total',
  135. xtype: 'numbercolumn',
  136. width: 120
  137. }],
  138. _relativeColumn: [{
  139. text: '序号',
  140. width: 80,
  141. xtype: 'rownumberer'
  142. }, {
  143. text: 'id',
  144. dataIndex: 'sa_id',
  145. width: 100,
  146. xtype: 'numbercolumn'
  147. }, {
  148. text: '单据编号',
  149. dataIndex: 'sa_code',
  150. width: 120
  151. }, {
  152. text: '单据状态',
  153. dataIndex: 'sa_status',
  154. width: 120
  155. }, {
  156. text: '下单日期',
  157. dataIndex: 'sa_recorddate',
  158. xtype: 'datecolumn',
  159. width: 200
  160. }, {
  161. text: '客户名称',
  162. dataIndex: 'sa_cuname',
  163. width: 120
  164. }, {
  165. text: '明细序号',
  166. dataIndex: 'sd_detno',
  167. xtype: 'numbercolumn',
  168. width: 120
  169. }, {
  170. text: '物料编号',
  171. dataIndex: 'sd_prodcode',
  172. width: 120
  173. }, {
  174. text: '数量',
  175. dataIndex: 'sd_qty',
  176. xtype: 'numbercolumn',
  177. width: 120
  178. }, {
  179. text: '单价',
  180. dataIndex: 'sd_price',
  181. xtype: 'numbercolumn',
  182. width: 120
  183. }, {
  184. text: '已转数',
  185. dataIndex: 'sd_ytqy',
  186. xtype: 'numbercolumn',
  187. width: 120
  188. }, {
  189. text: '已出货数',
  190. dataIndex: 'sd_sendqty',
  191. xtype: 'numbercolumn',
  192. width: 120
  193. }, {
  194. text: '已审核采购单数',
  195. dataIndex: 'sd_pdqty',
  196. xtype: 'numbercolumn',
  197. width: 120
  198. }, {
  199. text: '备注',
  200. dataIndex: 'sd_remark',
  201. width: 250,
  202. flex: 1
  203. }]
  204. }
  205. });