Feature.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. Ext.define('erp.view.pm.bom.Feature',{
  2. extend: 'Ext.Viewport',
  3. layout: 'anchor',
  4. initComponent : function(){
  5. var me = this;
  6. Ext.apply(me, {
  7. items: [{
  8. xtype: 'erpFormPanel',
  9. anchor: '100% 28%',
  10. saveUrl: 'pm/bom/saveFeature.action',
  11. deleteUrl: 'pm/bom/deleteFeature.action',
  12. updateUrl: 'pm/bom/updateFeature.action',
  13. auditUrl: 'pm/bom/auditFeature.action',
  14. resAuditUrl: 'pm/bom/resAuditFeature.action',
  15. submitUrl: 'pm/bom/submitFeature.action',
  16. resSubmitUrl: 'pm/bom/resSubmitFeature.action',
  17. getIdUrl: 'common/getId.action?seq=FEATURE_SEQ',
  18. keyField: 'fe_id',
  19. fename:'',//记录初始特征名称
  20. codeField: 'fe_code',
  21. },{
  22. xtype: 'erpGridPanel2',
  23. anchor: '100% 72%',
  24. id:'grid',
  25. detno: 'fd_detno',
  26. keyField: 'fd_id',
  27. mainField: 'fd_feid',
  28. plugins: [Ext.create('Ext.grid.plugin.CellEditing', {
  29. clicksToEdit: 1
  30. })],
  31. tbar:[{
  32. xtype:'tbtext',
  33. text:'允许特征值列表',
  34. },'->',{
  35. xtype:'button',
  36. id: 'toyf',
  37. text:'转非标准'
  38. },'-',{
  39. xtype:'button',
  40. id: 'tobz',
  41. text:'转标准'
  42. },'-',{
  43. xtype:'button',
  44. id:'addDetail',
  45. text:'新增明细'
  46. },'-',{
  47. xtype:'button',
  48. id:'forbidden',
  49. text:'禁用明细'
  50. },'-',{
  51. xtype:'button',
  52. id:'noforbidden',
  53. text:'反禁用明细'
  54. },'-',{
  55. xtype:'button',
  56. id:'updateRemark',
  57. text:'修改明细备注'
  58. }]
  59. }]
  60. });
  61. me.callParent(arguments);
  62. }
  63. });