QueryPanel.js 5.1 KB

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