FeatureValueSet.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. Ext.define('erp.view.pm.bom.FeatureValueSet',{
  2. extend: 'Ext.Viewport',
  3. layout: 'fit',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. id:'FeatureProductViewport',
  10. layout: 'anchor',
  11. items: [{
  12. anchor: '100% 38%',
  13. xtype:'panel',
  14. frame : true,
  15. autoScroll : true,
  16. fieldDefaults : {
  17. margin : '2 2 2 2',
  18. fieldStyle : "background:#FFFAFA;color:#515151;",
  19. focusCls: 'x-form-field-cir',//fieldCls
  20. labelAlign : "right",
  21. msgTarget: 'side',
  22. blankText : $I18N.common.form.blankText
  23. },
  24. layout: 'column',
  25. items:[{
  26. xtype:'dbfindtrigger',
  27. columnWidth: 0.3,
  28. cls: "form-field-allowBlank",
  29. fieldLabel:'虚拟特征料号',
  30. name:'pr_code',
  31. id:'pr_code'
  32. },{
  33. xtype:'textfield',
  34. columnWidth: 0.3,
  35. cls: "form-field-allowBlank",
  36. fieldLabel:'物料名称',
  37. readOnly: true,
  38. name:'pr_name',
  39. id:'pr_name'
  40. },{
  41. xtype:'textfield',
  42. columnWidth: 0.2,
  43. cls: "form-field-allowBlank",
  44. fieldLabel:'ID',
  45. hidden:true,
  46. readOnly:true,
  47. id:'id'
  48. },{
  49. xtype:'textfield',
  50. columnWidth: 1,
  51. height:'1px',
  52. fieldStyle: 'background:#FFFAFA;padding:2px 2px;vertical-align:middle;border-top:none;border-right:none;border-bottom:none;border-left:none; ',
  53. readOnly:true
  54. },{
  55. xtype:'dbfindtrigger',
  56. columnWidth: 0.5,
  57. cls: "form-field-allowBlank",
  58. fieldLabel:'参考特征件',
  59. name:'othercode',
  60. id:'othercode'
  61. },{
  62. xtype:'button',
  63. columnWidth: 0.1,
  64. text:'设为参考',
  65. name:'refer',
  66. id:'refer1'
  67. },{
  68. xtype:'textfield',
  69. columnWidth: 0.1,
  70. cls: "form-field-allowBlank",
  71. // fieldLabel:'ID',
  72. hidden:true,
  73. readOnly:true,
  74. name:'pr_specdescription',
  75. id:'pr_specdescription'
  76. },{
  77. xtype:'textfield',
  78. columnWidth: 1,
  79. height:'1px',
  80. fieldStyle: 'background:#FFFAFA;padding:2px 2px;vertical-align:middle;border-top:none;border-right:none;border-bottom:none;border-left:none; ',
  81. readOnly:true
  82. },{
  83. xtype:'multifield',
  84. columnWidth: 0.5,
  85. split:true,
  86. cls: "form-field-allowBlank",
  87. fieldLabel:'参考销售订单',
  88. name:'sacode',
  89. id:'sacode',
  90. secondname: 'sadetno',//另外的一个字段
  91. },{
  92. xtype:'button',
  93. columnWidth: 0.1,
  94. text:'设为参考',
  95. name:'refer',
  96. id:'refer2'
  97. },{
  98. xtype:'textfield',
  99. columnWidth: 0.1,
  100. cls: "form-field-allowBlank",
  101. // fieldLabel:'ID',
  102. hidden:true,
  103. readOnly:true,
  104. name:'sd_specdescription',
  105. id:'sd_specdescription'
  106. },{
  107. xtype:'textfield',
  108. columnWidth: 1,
  109. height:'1px',
  110. fieldStyle: 'background:#FFFAFA;padding:2px 2px;vertical-align:middle;border-top:none;border-right:none;border-bottom:none;border-left:none; ',
  111. readOnly:true
  112. },{
  113. xtype:'multifield',
  114. columnWidth: 0.5,
  115. cls: "form-field-allowBlank",
  116. fieldLabel:'参考销售预测',
  117. name:'sfcode',
  118. id:'sfcode',
  119. secondname: 'sfdetno',//另外的一个字段
  120. },{
  121. xtype:'button',
  122. columnWidth: 0.1,
  123. text:'设为参考',
  124. name:'refer',
  125. id:'refer3'
  126. },{
  127. xtype:'textfield',
  128. columnWidth: 0.1,
  129. cls: "form-field-allowBlank",
  130. // fieldLabel:'ID',
  131. hidden:true,
  132. readOnly:true,
  133. name:'sfd_specdescription',
  134. id:'sfd_specdescription'
  135. }],
  136. tbar:['->',{
  137. text:'确定',
  138. name:'ok',
  139. id:'ok'
  140. },{
  141. text:'关闭',
  142. name:'cancel',
  143. id:'cancel'
  144. }],
  145. },{
  146. xtype: 'erpGridPanel2',
  147. anchor: '100% 62%',
  148. // title:'特征值明细',
  149. caller:'FeatureValueSet',
  150. bbar:[{
  151. xtype:'textfield',
  152. readOnly: true,
  153. fieldLabel:'特征件料号',
  154. id: 'RealCode',
  155. name : 'RealCode'
  156. },'-',{
  157. text:'保存',
  158. id:'save'
  159. },'-',{
  160. text:'生成料号',
  161. id:'getrealcode'
  162. },'->',{
  163. text:'查看BOM',
  164. id:'find',
  165. disabled: true
  166. }]
  167. }]
  168. }]
  169. });
  170. me.callParent(arguments);
  171. }
  172. });