QueryPanel.js 5.0 KB

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