123456789101112131415161718192021 |
- Ext.define('erp.view.core.button.SaleForecastChange',{
- extend: 'Ext.Button',
- alias: 'widget.erpSaleForecastChangeButton',
- text:$I18N.common.button.erpSaleForecastChangeButton,
- iconCls: 'x-button-icon-save',
- cls: 'x-btn-gray',
- width: 100,
- style: {
- marginLeft: '10px'
- },
- handler: function(btn){
- var status=Ext.getCmp('sf_statuscode').getValue();
- if(status =='AUDITED'){
- Ext.create('erp.util.FormUtil').onAdd('addSaleForecastChange', '销售预测变更单', 'jsps/pm/mps/saleForecastChange.jsp?code='+Ext.getCmp('sf_code').value);
- }else showMessage('提示','当前状态不允许新增变更单',1000);
-
- },
- initComponent : function(){
- this.callParent(arguments);
- }
- });
|