DeviceInApply.js 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. Ext.define('erp.view.b2c.DeviceInApply',{
  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:'BrandInApplyViewport',
  10. layout: 'anchor',
  11. autoScroll: true,
  12. items: [{
  13. xtype: 'form',
  14. autoScroll:true,
  15. bodyStyle: 'background: #E8E8E8;',
  16. items:[{
  17. allowBlank: false,
  18. allowDecimals: true,
  19. border: false,
  20. group: 0,
  21. html: "<div onclick='javascript:collapse(0);' class='x-form-group-label' id='group0' style='background-color: #E8E8E8;height:22px;width:80%;!important;' title='收拢'><h6>商品基本信息</h6></div>",
  22. xtype: "container",
  23. },{
  24. defaults:{
  25. xtype:'textfield',
  26. beforeLabelTextTpl:'<span style="color:red;font-weight:bold" data-qtip="Required">*</span>',
  27. //labelAlign : "center"
  28. },
  29. bodyStyle: 'background: #E8E8E8;',
  30. layout:'column',
  31. border: false,
  32. margin:'10 0 0 0',
  33. items:[{
  34. name:'de_oldspec',
  35. id:'de_oldspec',
  36. fieldLabel:'原厂型号',
  37. columnWidth:.3,
  38. },{
  39. name:'de_packingspec',
  40. id:'de_packingspec',
  41. fieldLabel:'封装规格',
  42. columnWidth:.3,
  43. },{
  44. xtype:'textfield',
  45. name:'de_weight',
  46. id:'de_weight',
  47. minValue:0,
  48. fieldLabel:'净重量',
  49. columnWidth:.3,
  50. },{
  51. xtype : 'displayfield',
  52. value : '(g/个)'
  53. },{
  54. xtype:'triggerfield',
  55. triggerCls:'x-form-search-trigger',
  56. name:'de_brand',
  57. id:'de_brand',
  58. fieldLabel:'品牌',
  59. columnWidth:.3,
  60. },{
  61. xtype:'triggerfield',
  62. triggerCls:'x-form-search-trigger',
  63. name:'de_kind',
  64. id:'de_kind',
  65. fieldLabel:'所属类目',
  66. columnWidth:.3,
  67. }],
  68. },{
  69. allowBlank: false,
  70. allowDecimals: true,
  71. group: 1,
  72. border: false,
  73. html: "<div onclick='javascript:collapse(1);' class='x-form-group-label' id='group1' style='background-color: #bfbfbe;height:22px;width:80%;!important;' title='收拢'><h6>图片和详细说明</h6></div>",
  74. xtype: "container",
  75. },{
  76. bodyStyle: 'background: #E8E8E8;',
  77. margin:'10 0 0 0',
  78. border: false,
  79. defaults:{
  80. xtype:'textfield',
  81. beforeLabelTextTpl:'<span style="color:red;font-weight:bold" data-qtip="Required">*</span>',
  82. //labelAlign : "center"
  83. },items:[{
  84. xtype: 'filefield',
  85. columnWidth:.4,
  86. id:'de_image',
  87. name: 'file',
  88. fieldLabel:'器件图片',
  89. allowBlank: false,
  90. buttonOnly:true,
  91. buttonConfig:{
  92. text:'选择图片',
  93. iconCls:'x-button-icon-pic'
  94. },
  95. listeners: {
  96. change: function(field){
  97. // field.ownerCt.upload(field);
  98. }
  99. }
  100. },{
  101. xtype: 'image',
  102. width: 155,
  103. height: 96,
  104. id:'logo',
  105. hidden:true
  106. },{
  107. xtype:'htmleditor',
  108. fieldLabel:'详细描述',
  109. width:1220,
  110. height:200,
  111. id:'de_description',
  112. name:'de_description',
  113. }]
  114. },{
  115. allowBlank: false,
  116. allowDecimals: true,
  117. group: 2,
  118. html: "<div onclick='javascript:collapse(2);' class='x-form-group-label' id='group2' style='background-color: #bfbfbe;height:22px;width:80%;!important;' title='收拢'><h6>器件属性</h6></div>",
  119. xtype: "container",
  120. },{
  121. margin:'10 0 0 0',
  122. layout:'column',
  123. border: false,
  124. bodyStyle: 'background: #E8E8E8;',
  125. defaults:{
  126. xtype:'textfield'
  127. // labelAlign : "right",
  128. },
  129. items:[{
  130. name:'de_brand',
  131. columnWidth:.4,
  132. fieldLabel:'商标',
  133. },{
  134. name:'43',
  135. columnWidth:.4,
  136. fieldLabel:'RoHS',
  137. },{
  138. name:'de_brand',
  139. columnWidth:.4,
  140. fieldLabel:'端接类型',
  141. },{
  142. name:'de_brand',
  143. columnWidth:.4,
  144. fieldLabel:'VSWR',
  145. },{
  146. name:'de_brand',
  147. columnWidth:.4,
  148. fieldLabel:'功率额定值',
  149. },{
  150. name:'de_brand',
  151. columnWidth:.4,
  152. fieldLabel:'产品',
  153. },{
  154. name:'de_brand',
  155. columnWidth:.4,
  156. fieldLabel:'频率范围',
  157. },{
  158. name:'de_brand',
  159. columnWidth:.4,
  160. fieldLabel:'频率',
  161. },{
  162. name:'de_brand',
  163. columnWidth:.4,
  164. fieldLabel:'增益',
  165. },{
  166. name:'de_brand',
  167. columnWidth:.4,
  168. fieldLabel:'长度',
  169. },{
  170. name:'de_brand',
  171. columnWidth:.4,
  172. fieldLabel:'零件号别名',
  173. },{
  174. name:'de_brand',
  175. columnWidth:.4,
  176. fieldLabel:'IP 等级',
  177. },{
  178. name:'de_brand',
  179. columnWidth:.4,
  180. fieldLabel:'极性',
  181. },{
  182. name:'de_brand',
  183. columnWidth:.4,
  184. fieldLabel:'应用',
  185. },{
  186. name:'de_brand',
  187. columnWidth:.4,
  188. fieldLabel:'阻抗',
  189. },{
  190. name:'de_brand',
  191. columnWidth:.4,
  192. labelWidth:120,
  193. fieldLabel:'天线连接器类型',
  194. },{
  195. name:'de_brand',
  196. columnWidth:.4,
  197. fieldLabel:'包装方式',
  198. },{
  199. name:'de_brand',
  200. columnWidth:.4,
  201. fieldLabel:'带宽',
  202. },{
  203. name:'de_brand',
  204. columnWidth:.4,
  205. fieldLabel:'安装风格',
  206. },{
  207. name:'de_brand',
  208. columnWidth:.4,
  209. fieldLabel:'工厂包装数量',
  210. },{
  211. name:'de_brand',
  212. columnWidth:.4,
  213. fieldLabel:'产品种类',
  214. },{
  215. name:'de_brand',
  216. columnWidth:.4,
  217. fieldLabel:'技术',
  218. },{
  219. name:'de_brand',
  220. columnWidth:.4,
  221. fieldLabel:'商标名',
  222. },{
  223. name:'de_brand',
  224. columnWidth:.4,
  225. fieldLabel:'最小工作温度',
  226. },{
  227. name:'de_brand',
  228. columnWidth:.4,
  229. fieldLabel:'用于',
  230. },{
  231. name:'de_brand',
  232. columnWidth:.4,
  233. fieldLabel:'系列',
  234. },{
  235. name:'de_brand',
  236. columnWidth:.4,
  237. fieldLabel:'高度',
  238. },{
  239. name:'de_brand',
  240. columnWidth:.4,
  241. fieldLabel:'宽度',
  242. },{
  243. name:'de_brand',
  244. columnWidth:.4,
  245. fieldLabel:'直径',
  246. },{
  247. name:'de_brand',
  248. columnWidth:.4,
  249. fieldLabel:'电缆长度',
  250. },{
  251. name:'de_brand',
  252. columnWidth:.4,
  253. fieldLabel:'单位重量',
  254. },{
  255. name:'de_brand',
  256. columnWidth:.4,
  257. fieldLabel:'类型',
  258. },{
  259. name:'de_brand',
  260. columnWidth:.4,
  261. fieldLabel:'最大工作温度',
  262. }]
  263. }]
  264. }],
  265. buttonAlign:'center',
  266. buttons:[{
  267. xtype:'erpSaveButton'
  268. },{
  269. xtype:'erpSubmitButton'
  270. },{
  271. xtype:'erpAuditButton'
  272. }]
  273. }]
  274. });
  275. me.callParent(arguments);
  276. }
  277. });