QueryPanel.js 5.2 KB

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