QueryPanel.js 5.3 KB

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