UpdateProcessInfo.js 964 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. Ext.define('erp.view.core.button.UpdateProcessInfo', {
  2. extend : 'Ext.Button',
  3. alias : 'widget.erpUpdateProcessInfoButton',
  4. iconCls : 'x-button-icon-save',
  5. cls : 'x-btn-gray',
  6. text : '修改审批内容',
  7. style : {
  8. marginLeft : '10px'
  9. },
  10. width : 120,
  11. initComponent : function() {
  12. this.callParent(arguments);
  13. },
  14. handler: function(btn) {
  15. var updateValue=Ext.getCmp('clobtext').items.items[0].getValue();
  16. var keyValue=Ext.getCmp('ap_id').value;
  17. this.UpdateProcessInfo(keyValue,updateValue);
  18. },
  19. UpdateProcessInfo: function(keyValue,updateValue) {
  20. var r="{ap_id:"+keyValue+"}";
  21. Ext.Ajax.request({
  22. url: basePath + '/common/updateAutoJprocess.action',
  23. params: {
  24. clobtext:updateValue,
  25. formStore:r
  26. },
  27. callback: function(opt, s, r) {
  28. var rs = Ext.decode(r.responseText);
  29. if(rs.exceptionInfo) {
  30. showError(rs.exceptionInfo);
  31. } else {
  32. showMessage('提示','更新成功!',1000);
  33. }
  34. }
  35. });
  36. }
  37. });