ProdShareForm.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Ext.define('erp.view.scm.sale.ProdShareForm',{
  2. extend: 'Ext.form.Panel',
  3. alias: 'widget.ProdShare',
  4. id: 'form',
  5. title: '<font color=#a1a1a1; size=3>料工费分摊</font>',
  6. frame : true,
  7. autoScroll : true,
  8. buttonAlign : 'center',
  9. FormUtil: Ext.create('erp.util.FormUtil'),
  10. fieldDefaults : {
  11. margin : '4 2 4 2',
  12. fieldStyle : "background:#FFFAFA;color:#515151;",
  13. labelAlign : "right",
  14. msgTarget: 'side',
  15. blankText : $I18N.common.form.blankText
  16. },
  17. initComponent : function(){
  18. this.callParent(arguments);
  19. /*this.title = this.FormUtil.getActiveTab().title;*/
  20. },
  21. items: [{
  22. xtype:'dbfindtrigger',
  23. fieldLabel:'估价单号',
  24. allowBlank: true,
  25. id: 'ev_code',
  26. name: 'evaluationcode'
  27. },{
  28. xtype:'textfield',
  29. fieldLabel:'材料分摊金额',
  30. allowBlank: true,
  31. id: 'money',
  32. name: 'money'
  33. },{
  34. xtype:'textfield',
  35. fieldLabel:'人工分摊金额',
  36. allowBlank: true,
  37. id: 'peomoney',
  38. name: 'peomoney'
  39. },{
  40. xtype:'textfield',
  41. fieldLabel:'制造费用分摊金额',
  42. allowBlank: true,
  43. id: 'makemoney',
  44. name: 'makemoney'
  45. }],
  46. buttons: [{
  47. xtype: 'erpConfirmButton'
  48. },{
  49. xtype:'erpCloseButton'
  50. }]
  51. });