QueryPanel.js 5.2 KB

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