QueryPanel.js 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. Ext.define('saas.view.sale.saleout.QueryPanel', {
  2. extend: 'saas.view.core.query.QueryPanel',
  3. xtype: 'sale-saleout-querypanel',
  4. controller: 'sale-saleout-querypanel',
  5. viewModel: 'sale-saleout-querypanel',
  6. viewName: 'sale-saleout-querypanel',
  7. queryFormItems: [{
  8. xtype: 'hidden',
  9. name: 'pi_id',
  10. fieldLabel: 'ID',
  11. columnWidth: 0
  12. }, {
  13. xtype: 'textfield',
  14. name: 'pi_inoutno',
  15. fieldLabel: '单据编号'
  16. }, {
  17. xtype: 'condatefield',
  18. name: 'pi_recorddate',
  19. fieldLabel: '单据日期',
  20. allowBlank: true,
  21. columnWidth: 0.5
  22. }, {
  23. xtype: 'hidden',
  24. name: 'pi_custcode',
  25. fieldLabel: '客户编号'
  26. }, {
  27. xtype: 'dbfindtrigger',
  28. name: 'pi_custname',
  29. fieldLabel: '客户名称'
  30. }, {
  31. xtype: 'hidden',
  32. name: 'pd_prodcode',
  33. fieldLabel: '物料编号'
  34. }, {
  35. xtype: 'dbfindtrigger',
  36. name: 'pr_detail',
  37. fieldLabel: '物料名称',
  38. showDetail: true
  39. }, {
  40. xtype: 'combobox',
  41. name: 'pi_statuscode',
  42. fieldLabel: '审核状态',
  43. queryMode: 'local',
  44. displayField: 'pi_status',
  45. valueField: 'pi_statuscode',
  46. store: Ext.create('Ext.data.ArrayStore', {
  47. fields: ['pi_statuscode', 'pi_status'],
  48. data: [
  49. ["ALL", "全部"],
  50. ["AUDITED", "已审核"],
  51. ["UNAUDITED", "未审核"]
  52. ]
  53. }),
  54. getCondition: function(value) {
  55. if(value == 'ALL') {
  56. return '1=1';
  57. }else {
  58. return 'pi_statuscode=\'' + value + '\'';
  59. }
  60. }
  61. }],
  62. moreQueryFormItems: [],
  63. queryGridConfig: {
  64. idField:'pi_id',
  65. codeField:'pi_inoutno',
  66. addTitle:'销售出货单',
  67. addXtype:'sale-saleout-formpanel',
  68. defaultCondition:' pi_class = \'销售出货单\'',
  69. baseVastUrl: basePath+'sale/prodinout/',
  70. baseColumn: [{
  71. text: 'id',
  72. dataIndex: 'pi_id',
  73. width: 100,
  74. xtype: 'numbercolumn'
  75. }, {
  76. text: '单据编号',
  77. dataIndex: 'pi_inoutno',
  78. width: 120
  79. }, {
  80. text: '单据状态',
  81. dataIndex: 'pi_status',
  82. width: 120
  83. },{
  84. text: '单据类型',
  85. dataIndex: 'pi_class',
  86. width: 120
  87. }, {
  88. text: '单据日期',
  89. dataIndex: 'pi_recorddate',
  90. xtype:'datecolumn',
  91. width: 200
  92. },{
  93. text: '销售单号',
  94. dataIndex: 'pi_sacode',
  95. width: 200
  96. },{
  97. text: '客户名称',
  98. dataIndex: 'pi_custname',
  99. width: 120
  100. },{
  101. text: '含税金额',
  102. dataIndex: 'pi_total',
  103. xtype:'numbercolumn',
  104. width: 120
  105. },{
  106. text: '不含税金额',
  107. dataIndex: 'pi_nettotal',
  108. xtype:'numbercolumn',
  109. width: 120,
  110. flex: 1
  111. }],
  112. relativeColumn: [{
  113. text: 'id',
  114. dataIndex: 'pi_id',
  115. width: 100,
  116. xtype: 'numbercolumn'
  117. }, {
  118. text: '单据编号',
  119. dataIndex: 'pd_inoutno',
  120. width: 120
  121. }, {
  122. text: '单据状态',
  123. dataIndex: 'pi_status',
  124. width: 120
  125. }, {
  126. text: '单据日期',
  127. dataIndex: 'pi_recorddate',
  128. xtype:'datecolumn',
  129. width: 200
  130. } ,{
  131. text: '客户名称',
  132. dataIndex: 'pi_custname',
  133. width: 120
  134. }, {
  135. text: '明细序号',
  136. dataIndex: 'pd_detno',
  137. xtype: 'numbercolumn',
  138. width: 120
  139. }, {
  140. text: '销售单号',
  141. dataIndex: 'pd_ordercode',
  142. width: 120
  143. }, {
  144. text: '订单序号',
  145. dataIndex: 'pd_orderdetno',
  146. xtype:'numbercolumn',
  147. width: 120
  148. }, {
  149. text: '物料编号',
  150. dataIndex: 'pd_prodcode',
  151. width: 120
  152. }, {
  153. text: '出货数量',
  154. dataIndex: 'pd_outqty',
  155. xtype:'numbercolumn',
  156. width: 120
  157. }, {
  158. text: '销售单价',
  159. dataIndex: 'pd_sendprice',
  160. xtype:'numbercolumn',
  161. width: 120
  162. }, {
  163. text: '金额',
  164. dataIndex: 'pd_total',
  165. xtype:'numbercolumn',
  166. width: 120
  167. }, {
  168. text: '税率',
  169. dataIndex: 'pd_taxrate',
  170. xtype:'numbercolumn',
  171. width: 120
  172. }, {
  173. text: '成本单价',
  174. dataIndex: 'pd_price',
  175. xtype:'numbercolumn',
  176. width: 120,
  177. flex: 1
  178. }]
  179. }
  180. });