prodAppDetail.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Ext.define('erp.view.scm.product.ProductApprovals.prodAppDetail',{
  2. extend: 'Ext.form.Panel',
  3. alias: 'widget.prodAppDetail',
  4. id: 'prodAppDetail',
  5. columnWidth:1,
  6. frame : true,
  7. layout : 'column',
  8. autoScroll : true,
  9. defaultType : 'textfield',
  10. labelSeparator : ':',
  11. buttonAlign : 'center',
  12. /*tools:[{xtype:'ProdAppDetailsaveButton',id:'prodAppDetailsave'}],//
  13. */ fieldDefaults : {
  14. margin : '2 2 2 2',
  15. fieldStyle : "background:#FFFAFA;color:#515151;",
  16. focusCls: 'x-form-field-cir-focus',
  17. labelAlign : "right",
  18. msgTarget: 'side',
  19. blankText : $I18N.common.form.blankText
  20. },
  21. FormUtil: Ext.create('erp.util.FormUtil'),
  22. BaseUtil: Ext.create('erp.util.BaseUtil'),
  23. saveUrl: '',
  24. updateUrl: '',
  25. deleteUrl: '',
  26. auditUrl: '',
  27. resAuditUrl: '',
  28. submitUrl: '',
  29. resSubmitUrl: '',
  30. bannedUrl: '',
  31. resBannedUrl: '',
  32. postUrl:'',
  33. printUrl: '',
  34. getIdUrl: '',
  35. keyField: '',
  36. codeField: '',
  37. statusField: '',
  38. params: null,
  39. caller: 'prodAppDetail',
  40. formCondition:null,
  41. Contextvalue:null,
  42. LastValue:null,
  43. enableTools: true,
  44. enableKeyEvents: true,
  45. _noc: 0,
  46. initComponent : function(){
  47. formCondition = getUrlParam('formCondition');//从url解析参数
  48. formCondition = (formCondition == null) ? "" : formCondition.replace(/IS/g,"=");
  49. //集团版
  50. var master=getUrlParam('newMaster');
  51. var param = {caller: this.caller || caller, condition: this.formCondition || formCondition, _noc: (getUrlParam('_noc') || this._noc)};
  52. if(master){
  53. param.master=master;
  54. }
  55. this.FormUtil.getItemsAndButtons(this, 'common/singleFormItems.action', this.params || param);//从后台拿到formpanel的items
  56. this.callParent(arguments);
  57. }
  58. });